mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-20 21:54:16 +01:00
check for same response in pam module, output debug for the user
This commit is contained in:
parent
6db8c640ef
commit
a5f2e9e333
@ -579,6 +579,12 @@ do_challenge_response(pam_handle_t *pamh, struct cfg *cfg, const char *username)
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* 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 */
|
||||
if (memcmp(buf, state.response response_len) == 0) {
|
||||
D(("Same response for second challenge, YubiKey should be reconfigured with the option HMAC_LT64"));
|
||||
}
|
||||
|
||||
/* the yk_* functions leave 'junk' in errno */
|
||||
errno = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user