diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-11-09 18:25:36 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-12-03 16:01:41 +0100 |
commit | 17a1961704791c61fd69889867b3285c37539b59 (patch) | |
tree | 5ddc429c6d3bb3c82a3d275cacd596b176495747 /unittest | |
parent | e647b0cf5def2c76958968ddad8f7808d966aa49 (diff) | |
download | libnitrokey-17a1961704791c61fd69889867b3285c37539b59.tar.gz libnitrokey-17a1961704791c61fd69889867b3285c37539b59.tar.bz2 |
Authorize before write in WriteToSlot test
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/test3.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittest/test3.cc b/unittest/test3.cc index 6395cb6..bd6f2a5 100644 --- a/unittest/test3.cc +++ b/unittest/test3.cc @@ -47,6 +47,7 @@ void authorize(Stick10 &stick) { TEST_CASE("write slot", "[pronew]"){ Stick10 stick; connect_and_setup(stick); + authorize(stick); auto p = get_payload<WriteToHOTPSlot>(); strcpyT(p.slot_secret, RFC_SECRET); |