mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-27 06:54:15 +01:00
Merge branch 'pr-162'
This commit is contained in:
commit
13ce1b6f52
5
util.c
5
util.c
@ -508,7 +508,10 @@ write_chalresp_state(FILE *f, CR_STATE *state)
|
|||||||
iterations = state->iterations;
|
iterations = state->iterations;
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_random(salt, CR_SALT_SIZE);
|
if (generate_random(salt, CR_CHALLENGE_SIZE)) {
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
yk_pbkdf2(response_hex, salt, CR_SALT_SIZE, iterations,
|
yk_pbkdf2(response_hex, salt, CR_SALT_SIZE, iterations,
|
||||||
hash, CR_RESPONSE_SIZE, &prf_method);
|
hash, CR_RESPONSE_SIZE, &prf_method);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user