]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/x509/x509_req.c
Fix usages of const EVP_MD.
[thirdparty/openssl.git] / crypto / x509 / x509_req.c
index 29dec4e657bc23aa48b01f927e77facab8bc0fad..e3f5c2add18dd6514d952b9b3ba207199815f9c9 100644 (file)
@@ -26,7 +26,7 @@ X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
     int i;
     EVP_PKEY *pktmp;
 
-    ret = X509_REQ_new();
+    ret = X509_REQ_new_ex(x->libctx, x->propq);
     if (ret == NULL) {
         ERR_raise(ERR_LIB_X509, ERR_R_MALLOC_FAILURE);
         goto err;