From 3988f6bf30e84434310048159f27573c21f459eb Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 13 Apr 2016 21:54:44 +0200 Subject: Send temporary password Signed-off-by: Szczepan Zalega --- unittest/test_HOTP.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unittest/test_HOTP.cc') 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); } -- cgit v1.2.1