1
0
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:
Klas Lindfors 2012-06-08 13:20:07 +02:00
parent 6db8c640ef
commit a5f2e9e333

View File

@ -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;