aboutsummaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan.zalega@gmail.com>2016-04-13 21:54:44 +0200
committerSzczepan Zalega <szczepan.zalega@gmail.com>2016-04-13 21:54:44 +0200
commit3988f6bf30e84434310048159f27573c21f459eb (patch)
treea89c504643924eb232818c13066e5d3904861651 /unittest
parentb1e0ee5333c68adc39c6b0797cd85bc4cd45add9 (diff)
downloadlibnitrokey-3988f6bf30e84434310048159f27573c21f459eb.tar.gz
libnitrokey-3988f6bf30e84434310048159f27573c21f459eb.tar.bz2
Send temporary password
Signed-off-by: Szczepan Zalega <szczepan.zalega@gmail.com>
Diffstat (limited to 'unittest')
-rw-r--r--unittest/test_HOTP.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/test_HOTP.cc b/unittest/test_HOTP.cc
index d8c4bf3..9db23ca 100644
--- a/unittest/test_HOTP.cc
+++ b/unittest/test_HOTP.cc
@@ -46,7 +46,7 @@ TEST_CASE("Test HOTP codes according to RFC", "[HOTP]") {
{
FirstAuthenticate::CommandTransaction::CommandPayload authreq;
strcpy((char *)(authreq.card_password), "12345678");
- // strcpy((char *)(authreq.temporary_password), temporary_password);
+ strcpy((char *)(authreq.temporary_password), temporary_password);
FirstAuthenticate::CommandTransaction::run(stick, authreq);
}
@@ -65,7 +65,7 @@ TEST_CASE("Test HOTP codes according to RFC", "[HOTP]") {
//authorize writehotp first
{
Authorize::CommandTransaction::CommandPayload auth;
- // strcpy((char *)(auth.temporary_password), temporary_password);
+ strcpy((char *)(auth.temporary_password), temporary_password);
auth.crc_to_authorize = WriteToHOTPSlot::CommandTransaction::getCRC(hwrite);
Authorize::CommandTransaction::run(stick, auth);
}