projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RAND_bytes updates
[openssl.git]
/
crypto
/
pkcs12
/
p12_mutl.c
diff --git
a/crypto/pkcs12/p12_mutl.c
b/crypto/pkcs12/p12_mutl.c
index d5eb8ffe74eb207d0f14a768d50e9fda90e07a11..252aca0021f06a39b7cb3bd524699708ece1c3d7 100644
(file)
--- a/
crypto/pkcs12/p12_mutl.c
+++ b/
crypto/pkcs12/p12_mutl.c
@@
-177,7
+177,7
@@
int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen,
return 0;
}
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);