mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
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)
This commit is contained in:
parent
a0084946f5
commit
af0561d7e7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user