Add X509 related libctx changes.
[openssl.git] / apps / ca.c
index d0309ae15c8baf2f8c08c61283789873ccffb928..e001a34190e1a733a81ab60c3d4105d56bbf89b8 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -1643,7 +1643,7 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509,
         BIO_printf(bio_err,
                    "Everything appears to be ok, creating and signing the certificate\n");
 
-    if ((ret = X509_new()) == NULL)
+    if ((ret = X509_new_with_libctx(app_get0_libctx(), app_get0_propq())) == NULL)
         goto end;
 
 #ifdef X509_V3