]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Ensure ciphers command honours -propquery
authorMatt Caswell <matt@openssl.org>
Wed, 26 Jan 2022 12:35:30 +0000 (12:35 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 27 Jan 2022 16:28:13 +0000 (16:28 +0000)
Any propquery passed via the -propquery option to the ciphers command was
being ignored.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17595)

apps/ciphers.c

index dcf0d3fa1e13458ac4c9dd1f241234dbcbe8ce1a..d3453e915b55a780634a624d7f6a1c47c693ab1d 100644 (file)
@@ -186,7 +186,7 @@ int ciphers_main(int argc, char **argv)
         goto end;
     }
 
-    ctx = SSL_CTX_new(meth);
+    ctx = SSL_CTX_new_ex(app_get0_libctx(), app_get0_propq(), meth);
     if (ctx == NULL)
         goto err;
     if (SSL_CTX_set_min_proto_version(ctx, min_version) == 0)