aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-27 08:40:57 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commitae8f2596895ba27539409b2399d985b2c613e2d7 (patch)
tree2ab661678c4bf838a79b0b4a4acd4942e8b34f36 /NK_C_API.cc
parent37d833828746b2437479123866d5c54ae78e2b14 (diff)
downloadlibnitrokey-ae8f2596895ba27539409b2399d985b2c613e2d7.tar.gz
libnitrokey-ae8f2596895ba27539409b2399d985b2c613e2d7.tar.bz2
Getting password safe data does not need admin temp
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index 6565b7c..441acb9 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -311,23 +311,23 @@ extern int NK_lock_device(){
});
}
-extern const char *NK_get_password_safe_slot_name(uint8_t slot_number, const char *temporary_password) {
+extern const char *NK_get_password_safe_slot_name(uint8_t slot_number) {
auto m = NitrokeyManager::instance();
return get_with_string_result([&](){
- return m->get_password_safe_slot_name(slot_number, temporary_password);
+ return m->get_password_safe_slot_name(slot_number);
});
}
-extern const char *NK_get_password_safe_slot_login(uint8_t slot_number, const char *temporary_password) {
+extern const char *NK_get_password_safe_slot_login(uint8_t slot_number) {
auto m = NitrokeyManager::instance();
return get_with_string_result([&](){
- return m->get_password_safe_slot_login(slot_number, temporary_password);
+ return m->get_password_safe_slot_login(slot_number);
});
}
-extern const char *NK_get_password_safe_slot_password(uint8_t slot_number, const char *temporary_password) {
+extern const char *NK_get_password_safe_slot_password(uint8_t slot_number) {
auto m = NitrokeyManager::instance();
return get_with_string_result([&](){
- return m->get_password_safe_slot_password(slot_number, temporary_password);
+ return m->get_password_safe_slot_password(slot_number);
});
}
extern int NK_write_password_safe_slot(uint8_t slot_number, const char *slot_name, const char *slot_login,