add zero strenght arguments to BN and RAND RNG calls
[openssl.git] / crypto / asn1 / asn_mime.c
index 8d7094d0354d43f3626e4e85c7b2a4c05214764f..1c1f72f80016e4a143bcb01290a529b49b501183 100644 (file)
@@ -251,7 +251,7 @@ int SMIME_write_ASN1_ex(BIO *bio, ASN1_VALUE *val, BIO *data, int flags,
     if ((flags & SMIME_DETACHED) && data) {
         /* We want multipart/signed */
         /* Generate a random boundary */
-        if (RAND_bytes_ex(libctx, (unsigned char *)bound, 32) <= 0)
+        if (RAND_bytes_ex(libctx, (unsigned char *)bound, 32, 0) <= 0)
             return 0;
         for (i = 0; i < 32; i++) {
             c = bound[i] & 0xf;