projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change usage of RAND_pseudo_bytes to RAND_bytes
[openssl.git]
/
crypto
/
pkcs12
/
p12_mutl.c
diff --git
a/crypto/pkcs12/p12_mutl.c
b/crypto/pkcs12/p12_mutl.c
index a9277827ff2df57792398b5a9d45d93e973f8f69..cbf34da05adadb6790d35b7f578b51e4a8680692 100644
(file)
--- a/
crypto/pkcs12/p12_mutl.c
+++ b/
crypto/pkcs12/p12_mutl.c
@@
-179,7
+179,7
@@
int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen,
}
p12->mac->salt->length = saltlen;
if (!salt) {
- if (RAND_
pseudo_bytes(p12->mac->salt->data, saltlen) <
0)
+ if (RAND_
bytes(p12->mac->salt->data, saltlen) <=
0)
return 0;
} else
memcpy(p12->mac->salt->data, salt, saltlen);