[Commits] ssl.c 1.9.2.51 1.9.2.52

claws at claws-mail.org claws at claws-mail.org
Wed May 30 15:22:39 CEST 2012


Update of /home/claws-mail/claws/src/common
In directory srv:/tmp/cvs-serv32334/src/common

Modified Files:
      Tag: gtk2
	ssl.c 
Log Message:
2012-05-30 [paul]	3.8.0cvs49

	* src/common/ssl.c
		don't do TLS if not requested by user. fixes connecting to
		servers which, for example, want SSL 3 only 

Index: ssl.c
===================================================================
RCS file: /home/claws-mail/claws/src/common/ssl.c,v
retrieving revision 1.9.2.51
retrieving revision 1.9.2.52
diff -u -d -r1.9.2.51 -r1.9.2.52
--- ssl.c	27 May 2012 17:31:02 -0000	1.9.2.51
+++ ssl.c	30 May 2012 13:22:37 -0000	1.9.2.52
@@ -267,7 +267,10 @@
 #if GNUTLS_VERSION_NUMBER < 0x030003
 	gnutls_transport_set_lowat (session, 0); 
 #endif
-	gnutls_priority_set_direct(session, "NORMAL", NULL);
+	if (method == 0)
+		gnutls_priority_set_direct(session, "NORMAL:-VERS-TLS1.0:-VERS-TLS1.1:-VERS-TLS1.2", NULL);
+	else
+		gnutls_priority_set_direct(session, "NORMAL", NULL);
 	gnutls_record_disable_padding(session);
 
 	gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, xcred);



More information about the Commits mailing list