Skip to content

Commit

Permalink
Merge pull request #9 from privacyidea/fix_counter_reset
Browse files Browse the repository at this point in the history
Reset the HOTP counter
  • Loading branch information
szszszsz committed Apr 19, 2016
2 parents ee12d43 + ab2658a commit c19dfe6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unittest/test_HOTP.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ TEST_CASE("Test HOTP codes according to RFC", "[HOTP]") {
//strcpy(reinterpret_cast<char *>(hwrite.slot_secret), "");
const char* secretHex = "3132333435363738393031323334353637383930";
hexStringToByte(hwrite.slot_secret, secretHex);
// reset the HOTP counter
memset(hwrite.slot_counter, 0, 8);
//hwrite.slot_config; //TODO check various configs in separate test cases
//strcpy(reinterpret_cast<char *>(hwrite.slot_token_id), "");
//strcpy(reinterpret_cast<char *>(hwrite.slot_counter), "");
Expand Down

0 comments on commit c19dfe6

Please sign in to comment.