aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-11-09 18:25:36 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-12-03 16:01:41 +0100
commit17a1961704791c61fd69889867b3285c37539b59 (patch)
tree5ddc429c6d3bb3c82a3d275cacd596b176495747
parente647b0cf5def2c76958968ddad8f7808d966aa49 (diff)
downloadlibnitrokey-17a1961704791c61fd69889867b3285c37539b59.tar.gz
libnitrokey-17a1961704791c61fd69889867b3285c37539b59.tar.bz2
Authorize before write in WriteToSlot test
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--unittest/test3.cc1
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);