aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-26 10:59:24 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commit8a938be4ffa97490d89206cc1fd079a057cfc65c (patch)
tree5f2794b8858551eb8cd9f1574d1682567674a04e /include
parentb37e5990aa409689e5d6162776583616ac03e0ac (diff)
downloadlibnitrokey-8a938be4ffa97490d89206cc1fd079a057cfc65c.tar.gz
libnitrokey-8a938be4ffa97490d89206cc1fd079a057cfc65c.tar.bz2
Manage retry counts of user and admin passwords
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include')
-rw-r--r--include/NitrokeyManager.h3
-rw-r--r--include/stick10_commands.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/include/NitrokeyManager.h b/include/NitrokeyManager.h
index 6f4ab75..6588711 100644
--- a/include/NitrokeyManager.h
+++ b/include/NitrokeyManager.h
@@ -44,6 +44,9 @@ namespace nitrokey {
void get_password_safe_slot_status();
+ uint8_t get_admin_retry_count();
+ uint8_t get_user_retry_count();
+
private:
NitrokeyManager();
~NitrokeyManager();
diff --git a/include/stick10_commands.h b/include/stick10_commands.h
index c8eda03..31041d0 100644
--- a/include/stick10_commands.h
+++ b/include/stick10_commands.h
@@ -313,7 +313,7 @@ class GetPasswordRetryCount : Command<CommandID::GET_PASSWORD_RETRY_COUNT> {
bool isValid() const { return true; }
std::string dissect() const {
std::stringstream ss;
- ss << " password_retry_count\t" << password_retry_count << std::endl;
+ ss << " password_retry_count\t" << (int)password_retry_count << std::endl;
return ss.str();
}
} __packed;
@@ -331,7 +331,7 @@ class GetUserPasswordRetryCount
bool isValid() const { return true; }
std::string dissect() const {
std::stringstream ss;
- ss << " password_retry_count\t" << password_retry_count << std::endl;
+ ss << " password_retry_count\t" << (int)password_retry_count << std::endl;
return ss.str();
}
} __packed;