aboutsummaryrefslogtreecommitdiff
path: root/include/stick10_commands.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 09:55:06 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 10:19:25 +0200
commitbc5261c18a4608806dcb866afb73f7a979e2e90f (patch)
tree77a71206566c9217f4cba40963ba8c6524451cbc /include/stick10_commands.h
parent7c1c040bc57dcfd4ef8abdb481ef7b3df2b116b6 (diff)
downloadlibnitrokey-bc5261c18a4608806dcb866afb73f7a979e2e90f.tar.gz
libnitrokey-bc5261c18a4608806dcb866afb73f7a979e2e90f.tar.bz2
Allow user to choose new user PIN when unlocking
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/stick10_commands.h')
-rw-r--r--include/stick10_commands.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/stick10_commands.h b/include/stick10_commands.h
index f275993..051547e 100644
--- a/include/stick10_commands.h
+++ b/include/stick10_commands.h
@@ -686,7 +686,8 @@ class UserAuthorize : Command<CommandID::USER_AUTHORIZE> {
class UnlockUserPassword : Command<CommandID::UNLOCK_USER_PASSWORD> {
public:
struct CommandPayload {
- uint8_t admin_password[20];
+ uint8_t admin_password[25];
+ uint8_t user_new_password[25];
std::string dissect() const {
std::stringstream ss;
ss << " admin_password:\t" << admin_password<< std::endl;