From: Jouni Malinen Date: Sat, 1 Mar 2025 18:15:08 +0000 (+0200) Subject: OpenSSL: Make debug log clearer on TLS initialization failure X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b5b19e9cf314a5e5d4f7b5c3b1af0c3dbddcdd3;p=thirdparty%2Fhostap.git OpenSSL: Make debug log clearer on TLS initialization failure This might fail with some OpenSSL FIPS cases, so make the debug log clearer for such a failure. Signed-off-by: Jouni Malinen --- diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c index 77f39c63d..aaf519be5 100644 --- a/src/crypto/tls_openssl.c +++ b/src/crypto/tls_openssl.c @@ -1236,6 +1236,7 @@ void * tls_init(const struct tls_config *conf) else ssl = NULL; if (ssl == NULL) { + tls_show_errors(MSG_INFO, "SSL_CTX_new", "init"); tls_openssl_ref_count--; if (context != tls_global) os_free(context);