From 2c14c598c3061ac2533f997352aa06a2266f44d9 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Thu, 22 Sep 2016 13:05:59 +0000 Subject: Import OpenSSL 1.0.1u. --- crypto/pkcs12/p12_mutl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/pkcs12/p12_mutl.c') diff --git a/crypto/pkcs12/p12_mutl.c b/crypto/pkcs12/p12_mutl.c index a9277827ff2d..cbf34da05ada 100644 --- a/crypto/pkcs12/p12_mutl.c +++ b/crypto/pkcs12/p12_mutl.c @@ -179,7 +179,7 @@ int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen, } p12->mac->salt->length = saltlen; 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); -- cgit v1.2.3