--- a/ChangeLog Sat Jul 12 10:27:17 2014 +0200
+++ b/ChangeLog Sat Aug 16 16:35:40 2014 -0700
@@ -1,6 +1,10 @@
Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul
+ * Allow and prefer TLS 1.2 and 1.1 when using libnss. (Elrond and libpurple3 compatibility:
* Encrypted account passwords are preserved until the new one is set.
* Fix loading Google Talk and Facebook XMPP accounts.
@@ -234,7 +238,7 @@
this issue and suggesting solutions. (#15277)
* Updates to a number of dependencies, some of which have security
related fixes. Thanks again to Jacob Appelbaum and Jurre van Bergen
- for identifying the vulnerable libraries and to Dieter Verfaillie
+ for identifying the vulnerable libraries and to Dieter Verfaillie for helping getting the libraries updated. (#14571, #15285, #15286)
--- a/libpurple/plugins/ssl/ssl-nss.c Sat Jul 12 10:27:17 2014 +0200
+++ b/libpurple/plugins/ssl/ssl-nss.c Sat Aug 16 16:35:40 2014 -0700
@@ -133,6 +133,8 @@
+ SSLVersionRange supported, enabled; PR_Init(PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1);
@@ -150,6 +152,29 @@
SSL_CipherPrefSetDefault(SSL_DHE_RSA_WITH_DES_CBC_SHA, 1);
SSL_CipherPrefSetDefault(SSL_DHE_DSS_WITH_DES_CBC_SHA, 1);
+ /* Get the ranges of supported and enabled SSL versions */ + if ((SSL_VersionRangeGetSupported(ssl_variant_stream, &supported) == SECSuccess) && + (SSL_VersionRangeGetDefault(ssl_variant_stream, &enabled) == SECSuccess)) { + purple_debug_info("nss", "TLS supported versions: " + "%d through %d\n", supported.min, supported.max); + purple_debug_info("nss", "TLS versions allowed by default: " + "%d through %d\n", enabled.min, enabled.max); + /* Make sure all versions of TLS supported by the local library are + enabled. (For some reason NSS doesn't enable newer versions of TLS + by default -- more context in ticket #15909.) */ + if (supported.max > enabled.max) { + enabled.max = supported.max; + if (SSL_VersionRangeSetDefault(ssl_variant_stream, &enabled) == SECSuccess) { + purple_debug_info("nss", "Changed allowed TLS versions to " + "%d through %d\n", enabled.min, enabled.max); + purple_debug_error("nss", "Error setting allowed TLS versions to " + "%d through %d\n", enabled.min, enabled.max); _identity = PR_GetUniqueIdentity("Purple");
_nss_methods = PR_GetDefaultIOMethods();