CVS: sylpheedclaws/sylpheed-claws/src/common nntp.c,1.6.2.10,1.6.2.11 session.c,1.23.2.10,1.23.2.11

[email protected] Sat, 16 Dec 2006 16:38:20 +0000
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/common
In directory sunsite.dk:/tmp/cvs-serv18098/src/common

Modified Files:
      Tag: gtk2
	nntp.c session.c 
Log Message:
2006-12-16 [colin]	2.6.1cvs43

	* po/POTFILES.in
	* src/imap.c
	* src/common/nntp.c
	* src/common/session.c
		Log error when SSL handshakes fail. 
		Fixes bug 1082, 'incorrect / imprecise 
		error message when imap server provides 
		ssl only through STARTTLS but SSL is 
		selected'

Index: nntp.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/common/nntp.c,v
retrieving revision 1.6.2.10
retrieving revision 1.6.2.11
diff -u -d -r1.6.2.10 -r1.6.2.11
--- nntp.c	2006/11/07 10:40:05	1.6.2.10
+++ nntp.c	2006/12/16 16:38:13	1.6.2.11
@@ -77,6 +77,7 @@
 
 #if USE_OPENSSL
 	if (ssl_type == SSL_TUNNEL && !ssl_init_socket(sock)) {
+		log_error(_("SSL handshake failed\n"));
 		sock_close(sock);
 		return NULL;
 	}

Index: session.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/common/session.c,v
retrieving revision 1.23.2.10
retrieving revision 1.23.2.11
diff -u -d -r1.23.2.10 -r1.23.2.11
--- session.c	2006/11/07 10:40:09	1.23.2.10
+++ session.c	2006/12/16 16:38:14	1.23.2.11
@@ -24,6 +24,7 @@
 #include "defs.h"
 
 #include <glib.h>
+#include <glib/gi18n.h>
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -161,6 +162,7 @@
 		sock_set_nonblocking_mode(sock, FALSE);
 		if (!ssl_init_socket(sock)) {
 			g_warning("can't initialize SSL.");
+			log_error(_("SSL handshake failed\n"));
 			session->state = SESSION_ERROR;
 			return -1;
 		}