]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wolfssl: Log error number on failure
authorJuliusz Sosinowicz <juliusz@wolfssl.com>
Thu, 4 Apr 2024 18:16:21 +0000 (20:16 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Feb 2025 17:05:12 +0000 (19:05 +0200)
Log raw error number after wolfSSL_accept() or wolfSSL_connect() error.

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
src/crypto/tls_wolfssl.c

index 2dd28d618df0c5c6fc265ebc04ef093b4eb95a14..5ee8ec0b3bba0a964a0ec84591a84602881c4401 100644 (file)
@@ -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++;
                }