diff options
| author | Szczepan Zalega <szczepan.zalega@gmail.com> | 2016-04-13 21:54:44 +0200 | 
|---|---|---|
| committer | Szczepan Zalega <szczepan.zalega@gmail.com> | 2016-04-13 21:54:44 +0200 | 
| commit | 3988f6bf30e84434310048159f27573c21f459eb (patch) | |
| tree | a89c504643924eb232818c13066e5d3904861651 | |
| parent | b1e0ee5333c68adc39c6b0797cd85bc4cd45add9 (diff) | |
| download | libnitrokey-3988f6bf30e84434310048159f27573c21f459eb.tar.gz libnitrokey-3988f6bf30e84434310048159f27573c21f459eb.tar.bz2 | |
Send temporary password
Signed-off-by: Szczepan Zalega <szczepan.zalega@gmail.com>
| -rw-r--r-- | unittest/test_HOTP.cc | 4 | 
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);    } | 
