diff options
author | Robin Krahl <me@robin-krahl.de> | 2019-01-17 00:37:30 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2019-01-17 00:37:30 +0100 |
commit | f6ae756f421f668b53131f7d924a6303f3b99c73 (patch) | |
tree | a4269e4c5210339abfb31362e43d2bf29ee633b1 /libnitrokey | |
parent | dee882fd21cd932c2642d170620862e783284d3b (diff) | |
download | libnitrokey-f6ae756f421f668b53131f7d924a6303f3b99c73.tar.gz libnitrokey-f6ae756f421f668b53131f7d924a6303f3b99c73.tar.bz2 |
Return firmware version parts as uint8_t instead of int
The firmware version parts returned by the Nitrokey devices are uint8_t
values. This is part of the public API as part of the NK_storage_status
struct. For consistency with this API, this patch changes the functions
NK_get_major_firmware_version and NK_get_minor_firmware_version to
return uint8_t instead of int.
Diffstat (limited to 'libnitrokey')
-rw-r--r-- | libnitrokey/NitrokeyManager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libnitrokey/NitrokeyManager.h b/libnitrokey/NitrokeyManager.h index 6908143..2d8d1b6 100644 --- a/libnitrokey/NitrokeyManager.h +++ b/libnitrokey/NitrokeyManager.h @@ -215,7 +215,7 @@ char * strndup(const char* str, size_t maxlen); template <typename S, typename A, typename T> void authorize_packet(T &package, const char *admin_temporary_password, shared_ptr<Device> device); - int get_minor_firmware_version(); + uint8_t get_minor_firmware_version(); explicit NitrokeyManager(); void set_log_function(std::function<void(std::string)> log_function); @@ -278,7 +278,7 @@ char * strndup(const char* str, size_t maxlen); */ void set_encrypted_volume_read_write(const char *admin_pin); - int get_major_firmware_version(); + uint8_t get_major_firmware_version(); bool is_smartcard_in_use(); |