Add X509 related libctx changes.
[openssl.git] / apps / req.c
index 4ae828cd4568ba82d6b2d900d877a2ad1c318084..bee0329b2446d96a5884d1b3d9a4126907cf19f1 100644 (file)
@@ -742,7 +742,8 @@ int req_main(int argc, char **argv)
         if (x509) {
             EVP_PKEY *tmppkey;
             X509V3_CTX ext_ctx;
-            if ((x509ss = X509_new()) == NULL)
+            if ((x509ss = X509_new_with_libctx(app_get0_libctx(),
+                                               app_get0_propq())) == NULL)
                 goto end;
 
             /* Set version to V3 */