Skip to content

Commit

Permalink
YubiHSM Auth: Add YubiKey firmware version check before getting devic…
Browse files Browse the repository at this point in the history
…e challenge
  • Loading branch information
aveenismail committed Sep 5, 2024
2 parents 497f6b9 + 2fb41db commit 3db76ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yubihsm-auth/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ static bool get_challenge(ykhsmauth_state *state, char *label, char *credpasswor
ykhsmauth_get_challenge_ex(state, label_parsed, cpw_parsed,
cpw_parsed_len, challenge, &challenge_len);
}

if (ykhsmauthrc != YKHSMAUTHR_SUCCESS) {
fprintf(stderr, "Unable to get challenge: %s\n",
ykhsmauth_strerror(ykhsmauthrc));
Expand Down

0 comments on commit 3db76ab

Please sign in to comment.