apps: Switch to X509_REQ_verify_ex
authorPetr Gotthard <petr.gotthard@centrum.cz>
Sun, 2 May 2021 21:26:23 +0000 (23:26 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 4 May 2021 10:58:15 +0000 (12:58 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15118)

apps/lib/apps.c

index bfea59bdc86b693d1d5ea703baa58ffde83e5fad..b87f271ee80c4d071a86ada53537447a3c3ae382 100644 (file)
@@ -2282,7 +2282,8 @@ int do_X509_REQ_verify(X509_REQ *x, EVP_PKEY *pkey,
     int rv = 0;
 
     if (do_x509_req_init(x, vfyopts) > 0)
-        rv = (X509_REQ_verify(x, pkey) > 0);
+        rv = (X509_REQ_verify_ex(x, pkey,
+                                 app_get0_libctx(), app_get0_propq()) > 0);
     return rv;
 }