From: Juliusz Sosinowicz Date: Thu, 4 Apr 2024 18:16:21 +0000 (+0200) Subject: wolfssl: Log error number on failure X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77f82dcb34a806106bf49ca26b0542805379bb93;p=thirdparty%2Fhostap.git wolfssl: Log error number on failure Log raw error number after wolfSSL_accept() or wolfSSL_connect() error. Signed-off-by: Juliusz Sosinowicz --- diff --git a/src/crypto/tls_wolfssl.c b/src/crypto/tls_wolfssl.c index 2dd28d618..5ee8ec0b3 100644 --- a/src/crypto/tls_wolfssl.c +++ b/src/crypto/tls_wolfssl.c @@ -1853,9 +1853,9 @@ static struct wpabuf * wolfssl_handshake(struct tls_connection *conn, char msg[80]; wpa_printf(MSG_DEBUG, - "SSL: %s - failed %s", + "SSL: %s - failed (%d) %s", server ? "wolfSSL_accept" : - "wolfSSL_connect", + "wolfSSL_connect", err, wolfSSL_ERR_error_string(err, msg)); conn->failed++; }