summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/p5_pbe.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-03-02 22:29:38 +0000
committerBodo Möller <bodo@openssl.org>2000-03-02 22:29:38 +0000
commit7c472f706e370f9d0c4d7bde3c9f9edf90cfaece (patch)
tree278edfbb4babf5cc9e16e7cde86de0fe0216fa7a /crypto/asn1/p5_pbe.c
parentdf83eeb71015fd49970955fa5ecc1b784c3ac43c (diff)
Use RAND_pseudo_bytes, not RAND_bytes, for IVs/salts.
Diffstat (limited to 'crypto/asn1/p5_pbe.c')
-rw-r--r--crypto/asn1/p5_pbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/p5_pbe.c b/crypto/asn1/p5_pbe.c
index 64e90237cc..380c5283b1 100644
--- a/crypto/asn1/p5_pbe.c
+++ b/crypto/asn1/p5_pbe.c
@@ -129,7 +129,7 @@ X509_ALGOR *PKCS5_pbe_set(int alg, int iter, unsigned char *salt,
}
pbe->salt->length = saltlen;
if (salt) memcpy (pbe->salt->data, salt, saltlen);
- else if (RAND_bytes (pbe->salt->data, saltlen) <= 0)
+ else if (RAND_pseudo_bytes (pbe->salt->data, saltlen) <= 0)
return NULL;
if (!(astype = ASN1_TYPE_new())) {