diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-12-14 16:09:20 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-12-14 16:09:20 +0200 |
commit | d986b1b6c113083c8701abc54fd0c912fba329a6 (patch) | |
tree | 874ec30f38619be25e49eb3b79b3b9575f7ef690 /src | |
parent | b57e086cc18e01336413bfb448ec1ce5d05280fb (diff) | |
download | external_wpa_supplicant_8_ti-d986b1b6c113083c8701abc54fd0c912fba329a6.zip external_wpa_supplicant_8_ti-d986b1b6c113083c8701abc54fd0c912fba329a6.tar.gz external_wpa_supplicant_8_ti-d986b1b6c113083c8701abc54fd0c912fba329a6.tar.bz2 |
OpenSSL: Silence "Failed to read possible Application Data"
This message from tls_connection_handshake() is not really an error in
most cases, so do not show it if there was indeed no Application Data
available (which is a normal scenario and not an indication of any
error).
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto/tls_openssl.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c index 52eb4fe..777405a 100644 --- a/src/crypto/tls_openssl.c +++ b/src/crypto/tls_openssl.c @@ -2060,9 +2060,18 @@ u8 * tls_connection_handshake(void *ssl_ctx, struct tls_connection *conn, if (*appl_data) { res = SSL_read(conn->ssl, *appl_data, in_len); if (res < 0) { - tls_show_errors(MSG_INFO, __func__, - "Failed to read possible " - "Application Data"); + int err = SSL_get_error(conn->ssl, res); + if (err == SSL_ERROR_WANT_READ || + err == SSL_ERROR_WANT_WRITE) { + wpa_printf(MSG_DEBUG, + "SSL: No Application Data " + "included"); + } else { + tls_show_errors(MSG_INFO, __func__, + "Failed to read " + "possible " + "Application Data"); + } os_free(*appl_data); *appl_data = NULL; } else { |