diff options
author | Bodo Möller <bodo@openssl.org> | 2000-03-02 22:29:38 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-03-02 22:29:38 +0000 |
commit | 7c472f706e370f9d0c4d7bde3c9f9edf90cfaece (patch) | |
tree | 278edfbb4babf5cc9e16e7cde86de0fe0216fa7a /crypto/pkcs12 | |
parent | df83eeb71015fd49970955fa5ecc1b784c3ac43c (diff) |
Use RAND_pseudo_bytes, not RAND_bytes, for IVs/salts.
Diffstat (limited to 'crypto/pkcs12')
-rw-r--r-- | crypto/pkcs12/p12_mutl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pkcs12/p12_mutl.c b/crypto/pkcs12/p12_mutl.c index f1094b3840..4e0a7cbed8 100644 --- a/crypto/pkcs12/p12_mutl.c +++ b/crypto/pkcs12/p12_mutl.c @@ -157,7 +157,7 @@ int PKCS12_setup_mac (PKCS12 *p12, int iter, unsigned char *salt, int saltlen, return 0; } if (!salt) { - if (RAND_bytes (p12->mac->salt->data, saltlen) <= 0) + if (RAND_pseudo_bytes (p12->mac->salt->data, saltlen) <= 0) return 0; } else memcpy (p12->mac->salt->data, salt, saltlen); |