changeset 9514:eecb23d78acf HEAD

verbose_ssl: Don't log SSL info messages with "BIO failed" prefix.
author Timo Sirainen <tss@iki.fi>
date Wed, 16 Dec 2009 22:50:36 -0500
parents 0342a6f137bd
children b934756a3714
files src/login-common/ssl-proxy-openssl.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/login-common/ssl-proxy-openssl.c	Wed Dec 16 15:35:35 2009 -0500
+++ b/src/login-common/ssl-proxy-openssl.c	Wed Dec 16 22:50:36 2009 -0500
@@ -733,8 +733,12 @@
 			  where, ret, SSL_alert_type_string_long(ret),
 			  SSL_alert_desc_string_long(ret),
 			  net_ip2addr(&proxy->ip));
+	} else if (ret == 0) {
+		i_warning("SSL failed: where=0x%x: %s [%s]",
+			  where, SSL_state_string_long(ssl),
+			  net_ip2addr(&proxy->ip));
 	} else {
-		i_warning("SSL BIO failed: where=0x%x, ret=%d: %s [%s]",
+		i_warning("SSL: where=0x%x, ret=%d: %s [%s]",
 			  where, ret, SSL_state_string_long(ssl),
 			  net_ip2addr(&proxy->ip));
 	}