mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-07 18:54:20 +01:00
use errstr to communicate with the user
This commit is contained in:
parent
f1f6d54311
commit
2ffd54a24c
@ -581,8 +581,9 @@ do_challenge_response(pam_handle_t *pamh, struct cfg *cfg, const char *username)
|
|||||||
|
|
||||||
/* There is a bug that makes the YubiKey 2.2 send the same response for all challenges
|
/* There is a bug that makes the YubiKey 2.2 send the same response for all challenges
|
||||||
unless HMAC_LT64 is set, check for that here */
|
unless HMAC_LT64 is set, check for that here */
|
||||||
if (memcmp(buf, state.response response_len) == 0) {
|
if (memcmp(buf, state.response, response_len) == 0) {
|
||||||
D(("Same response for second challenge, YubiKey should be reconfigured with the option HMAC_LT64"));
|
errstr = "Same response for second challenge, YubiKey should be reconfigured with the option HMAC_LT64";
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* the yk_* functions leave 'junk' in errno */
|
/* the yk_* functions leave 'junk' in errno */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user