summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2024-05-01 18:48:01 +0200
committerTomas Mraz <tomas@openssl.org>2024-05-09 09:20:58 +0200
commitaf0561d7e7769504356e04f4b591ce79aace3ac2 (patch)
tree7f05b7f7583a41170933db35ab509fbcc0b9c9d2 /ssl
parenta0084946f5fae86170d0169bdf1e5cc121531c22 (diff)
Set SSL_CONF_FLAG_SHOW_ERRORS when conf_diagnostics is enabled
Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24275)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl_mcnf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/ssl_mcnf.c b/ssl/ssl_mcnf.c
index 66416b61cf..b7eb87b6b8 100644
--- a/ssl/ssl_mcnf.c
+++ b/ssl/ssl_mcnf.c
@@ -65,6 +65,8 @@ static int ssl_do_config(SSL *s, SSL_CTX *ctx, const char *name, int system)
libctx = ctx->libctx;
}
conf_diagnostics = OSSL_LIB_CTX_get_conf_diagnostics(libctx);
+ if (conf_diagnostics)
+ flags |= SSL_CONF_FLAG_SHOW_ERRORS;
if (meth->ssl_accept != ssl_undefined_function)
flags |= SSL_CONF_FLAG_SERVER;
if (meth->ssl_connect != ssl_undefined_function)