aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-17 11:16:48 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:47 +0100
commit4e26fdee0c1435016d6642cf8c1f88c3dd5495fa (patch)
tree28a8f76ddfd99719c4ff92a5201562284d7f38de
parent8617a13371d087b1eb67bd066926038d289ab331 (diff)
downloadlibnitrokey-4e26fdee0c1435016d6642cf8c1f88c3dd5495fa.tar.gz
libnitrokey-4e26fdee0c1435016d6642cf8c1f88c3dd5495fa.tar.bz2
Return SD card size as get from the device
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--NitrokeyManager.cc2
-rw-r--r--include/NitrokeyManager.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 176f516..20d1a98 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -787,7 +787,7 @@ namespace nitrokey{
misc::execute_password_command<stick20::DisableHiddenEncryptedPartition>(device, "");
}
- int NitrokeyManager::get_SD_card_size() {
+ uint8_t NitrokeyManager::get_SD_card_size() {
auto data = stick20::ProductionTest::CommandTransaction::run(device);
return data.data().SD_Card_Size_u8;
}
diff --git a/include/NitrokeyManager.h b/include/NitrokeyManager.h
index 2200955..7cf55c7 100644
--- a/include/NitrokeyManager.h
+++ b/include/NitrokeyManager.h
@@ -106,7 +106,7 @@ namespace nitrokey {
void fill_SD_card_with_random_data(const char *admin_pin);
- int get_SD_card_size();
+ uint8_t get_SD_card_size();
void change_update_password(const char *current_update_password, const char *new_update_password);