summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-08 20:36:17 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-09 18:34:00 +0200
commit1015a97b988af86c6567059282e953705efff429 (patch)
treed146a5cf4fd70b25826b2264ce46c966bd257fc7
parent8346fe8134ccb243bf871c7ba21645b81a2fd3fd (diff)
downloadlibnitrokey-1015a97b988af86c6567059282e953705efff429.tar.gz
libnitrokey-1015a97b988af86c6567059282e953705efff429.tar.bz2
Remove incorrect const declaration
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 fb23ca1..83412b1 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -208,7 +208,7 @@ namespace nitrokey{
return (const char *) get_slot_name(slot_number);
}
- uint8_t *NitrokeyManager::get_slot_name(uint8_t slot_number) const { //FIXME -const s/uint/char:string
+ uint8_t *NitrokeyManager::get_slot_name(uint8_t slot_number) { //FIXME -const s/uint/char:string
auto payload = get_payload<GetSlotName>();
payload.slot_number = slot_number;
auto resp = GetSlotName::CommandTransaction::run(*device, payload);
diff --git a/include/NitrokeyManager.h b/include/NitrokeyManager.h
index ca8ce78..c362644 100644
--- a/include/NitrokeyManager.h
+++ b/include/NitrokeyManager.h
@@ -95,7 +95,7 @@ namespace nitrokey {
uint8_t get_internal_slot_number_for_hotp(uint8_t slot_number) const;
uint8_t get_internal_slot_number_for_totp(uint8_t slot_number) const;
bool erase_slot(uint8_t slot_number, const char *temporary_password);
- uint8_t *get_slot_name(uint8_t slot_number) const;
+ uint8_t *get_slot_name(uint8_t slot_number);
template <typename ProCommand, PasswordKind StoKind>
void change_PIN_general(char *current_PIN, char *new_PIN);