summaryrefslogtreecommitdiffstats
path: root/crypto/pem
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/pem
parentdf83eeb71015fd49970955fa5ecc1b784c3ac43c (diff)
Use RAND_pseudo_bytes, not RAND_bytes, for IVs/salts.
Diffstat (limited to 'crypto/pem')
-rw-r--r--crypto/pem/pem_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c
index 072211ba0f..b19ad2c818 100644
--- a/crypto/pem/pem_lib.c
+++ b/crypto/pem/pem_lib.c
@@ -373,7 +373,7 @@ int PEM_ASN1_write_bio(int (*i2d)(), const char *name, BIO *bp, char *x,
kstr=(unsigned char *)buf;
}
RAND_add(data,i,0);/* put in the RSA key. */
- if (RAND_bytes(iv,8) <= 0) /* Generate a salt */
+ if (RAND_pseudo_bytes(iv,8) <= 0) /* Generate a salt */
goto err;
/* The 'iv' is used as the iv and as a salt. It is
* NOT taken from the BytesToKey function */