]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/pkcs7/pk7_doit.c
add zero strenght arguments to BN and RAND RNG calls
[thirdparty/openssl.git] / crypto / pkcs7 / pk7_doit.c
index c8e6c798b40957277668f22e9de6aab1ea39140f..8d4e95a3b4fc1bf3f924458d14f596a9bd81ce58 100644 (file)
@@ -300,7 +300,7 @@ BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio)
         ivlen = EVP_CIPHER_iv_length(evp_cipher);
         xalg->algorithm = OBJ_nid2obj(EVP_CIPHER_type(evp_cipher));
         if (ivlen > 0)
-            if (RAND_bytes_ex(libctx, iv, ivlen) <= 0)
+            if (RAND_bytes_ex(libctx, iv, ivlen, 0) <= 0)
                 goto err;
 
         (void)ERR_set_mark();