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
/
asn1
/
p5_pbe.c
diff --git
a/crypto/asn1/p5_pbe.c
b/crypto/asn1/p5_pbe.c
index d54b0943fec24efe92e984227a206e90deb6db8f..a65b65945211775acdb94cb92d7e78d4b13db8a0 100644
(file)
--- a/
crypto/asn1/p5_pbe.c
+++ b/
crypto/asn1/p5_pbe.c
@@
-101,7
+101,7
@@
int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,
sstr = ASN1_STRING_data(pbe->salt);
if (salt)
memcpy(sstr, salt, saltlen);
- else if (RAND_
pseudo_bytes(sstr, saltlen) <
0)
+ else if (RAND_
bytes(sstr, saltlen) <=
0)
goto err;
if (!ASN1_item_pack(pbe, ASN1_ITEM_rptr(PBEPARAM), &pbe_str)) {