RAND_pseudo_bytes is deprecated in OpenSSL 1.1.0

This commit is contained in:
Jakub Jelen
2017-10-20 11:16:18 +02:00
parent ad4e93a462
commit d2ffc41a6c
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -478,7 +478,7 @@ ykpiv_rc ykpiv_authenticate(ykpiv_state *state, unsigned const char *key) {
dataptr += 8;
*dataptr++ = 0x81;
*dataptr++ = 8;
if(RAND_pseudo_bytes(dataptr, 8) == -1) {
if(RAND_bytes(dataptr, 8) == -1) {
if(state->verbose) {
fprintf(stderr, "Failed getting randomness for authentication.\n");
}