From: Petr Gotthard Date: Mon, 15 Feb 2021 19:07:27 +0000 (+0100) Subject: Replace SSL_CTX_new by SSL_CTX_new_ex in apps/s_server + s_client X-Git-Tag: openssl-3.0.0-alpha12~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=574ca403c81edc1f21229526e2a8a67bcdabeb99;p=thirdparty%2Fopenssl.git Replace SSL_CTX_new by SSL_CTX_new_ex in apps/s_server + s_client The `openssl s_server` and `openssl s_client` currently ignore the `-propquery` parameter. Fix patch fixes this. Reviewed-by: Matt Caswell Reviewed-by: Paul Dale Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/14195) --- diff --git a/apps/s_client.c b/apps/s_client.c index a6394462dbd..431df131dda 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1661,7 +1661,7 @@ int s_client_main(int argc, char **argv) } #endif - ctx = SSL_CTX_new(meth); + ctx = SSL_CTX_new_ex(app_get0_libctx(), app_get0_propq(), meth); if (ctx == NULL) { ERR_print_errors(bio_err); goto end; diff --git a/apps/s_server.c b/apps/s_server.c index 5d8fb990235..eee51f33254 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -1780,7 +1780,7 @@ int s_server_main(int argc, char *argv[]) s_key_file2 = NULL; } - ctx = SSL_CTX_new(meth); + ctx = SSL_CTX_new_ex(app_get0_libctx(), app_get0_propq(), meth); if (ctx == NULL) { ERR_print_errors(bio_err); goto end; @@ -1905,7 +1905,7 @@ int s_server_main(int argc, char *argv[]) } if (s_cert2) { - ctx2 = SSL_CTX_new(meth); + ctx2 = SSL_CTX_new_ex(app_get0_libctx(), app_get0_propq(), meth); if (ctx2 == NULL) { ERR_print_errors(bio_err); goto end;