[dovecot-cvs] dovecot/src/login-common ssl-proxy-gnutls.c,1.5,1.6 ssl-proxy-openssl.c,1.12,1.13

cras at procontrol.fi cras at procontrol.fi
Sun May 18 20:37:07 EEST 2003


Update of /home/cvs/dovecot/src/login-common
In directory danu:/tmp/cvs-serv27890/login-common

Modified Files:
	ssl-proxy-gnutls.c ssl-proxy-openssl.c 
Log Message:
s/host/addr/ in a few network functions



Index: ssl-proxy-gnutls.c
===================================================================
RCS file: /home/cvs/dovecot/src/login-common/ssl-proxy-gnutls.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ssl-proxy-gnutls.c	4 Mar 2003 02:18:09 -0000	1.5
+++ ssl-proxy-gnutls.c	18 May 2003 16:37:05 -0000	1.6
@@ -68,11 +68,11 @@
 		if (error == GNUTLS_E_WARNING_ALERT_RECEIVED) {
 			i_warning("Received SSL warning alert: %s [%s]",
 				  get_alert_text(proxy),
-				  net_ip2host(&proxy->ip));
+				  net_ip2addr(&proxy->ip));
 		} else {
 			i_warning("Non-fatal SSL error: %s: %s",
 				  get_alert_text(proxy),
-				  net_ip2host(&proxy->ip));
+				  net_ip2addr(&proxy->ip));
 		}
 		return 0;
 	}
@@ -82,11 +82,11 @@
 		if (error == GNUTLS_E_FATAL_ALERT_RECEIVED) {
 			i_warning("Received SSL fatal alert: %s [%s]",
 				  get_alert_text(proxy),
-				  net_ip2host(&proxy->ip));
+				  net_ip2addr(&proxy->ip));
 		} else {
 			i_warning("Error reading from SSL client: %s [%s]",
 				  gnutls_strerror(error),
-				  net_ip2host(&proxy->ip));
+				  net_ip2addr(&proxy->ip));
 		}
 	}
 

Index: ssl-proxy-openssl.c
===================================================================
RCS file: /home/cvs/dovecot/src/login-common/ssl-proxy-openssl.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- ssl-proxy-openssl.c	11 May 2003 14:43:16 -0000	1.12
+++ ssl-proxy-openssl.c	18 May 2003 16:37:05 -0000	1.13
@@ -198,7 +198,7 @@
 			}
 
 			i_warning("%s syscall failed: %s [%s]",
-				  func, errstr, net_ip2host(&proxy->ip));
+				  func, errstr, net_ip2addr(&proxy->ip));
 		}
 		ssl_proxy_destroy(proxy);
 		break;
@@ -209,13 +209,13 @@
 	case SSL_ERROR_SSL:
 		if (verbose_ssl) {
 			i_warning("%s failed: %s [%s]", func, ssl_last_error(),
-				  net_ip2host(&proxy->ip));
+				  net_ip2addr(&proxy->ip));
 		}
 		ssl_proxy_destroy(proxy);
 		break;
 	default:
 		i_warning("%s failed: unknown failure %d (%s) [%s]",
-			  func, err, ssl_last_error(), net_ip2host(&proxy->ip));
+			  func, err, ssl_last_error(), net_ip2addr(&proxy->ip));
 		ssl_proxy_destroy(proxy);
 		break;
 	}



More information about the dovecot-cvs mailing list