summaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-09 13:11:01 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-09 18:34:00 +0200
commit95a4b415b76ff94cd270dcc3c6a53efd8b152914 (patch)
tree8e59280cf8bb043351fca5b091558e6f4aea6253 /NitrokeyManager.cc
parent344213284962aab6c21bc12331f5306f4a2c79ab (diff)
downloadlibnitrokey-95a4b415b76ff94cd270dcc3c6a53efd8b152914.tar.gz
libnitrokey-95a4b415b76ff94cd270dcc3c6a53efd8b152914.tar.bz2
Return string as char* instead of uint*
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 6d0a24c..14e31b2 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -204,11 +204,11 @@ namespace nitrokey{
return (const char *) get_slot_name(slot_number);
}
- uint8_t *NitrokeyManager::get_slot_name(uint8_t slot_number) { //FIXME -const s/uint/char:string
+ const char * NitrokeyManager::get_slot_name(uint8_t slot_number) {
auto payload = get_payload<GetSlotName>();
payload.slot_number = slot_number;
auto resp = GetSlotName::CommandTransaction::run(*device, payload);
- return (uint8_t *) strdup((const char *) resp.data().slot_name);
+ return strdup((const char *) resp.data().slot_name);
}
bool NitrokeyManager::first_authenticate(const char *pin, const char *temporary_password) {