[or-cvs] r19089: {torbutton} Add code to clear the SSL Session ID cache on toggle. (torbutton/trunk/src/chrome/content)

mikeperry at seul.org mikeperry at seul.org
Fri Mar 20 07:28:07 UTC 2009


Author: mikeperry
Date: 2009-03-20 03:28:07 -0400 (Fri, 20 Mar 2009)
New Revision: 19089

Modified:
   torbutton/trunk/src/chrome/content/torbutton.js
Log:

Add code to clear the SSL Session ID cache on toggle.



Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js	2009-03-19 20:30:30 UTC (rev 19088)
+++ torbutton/trunk/src/chrome/content/torbutton.js	2009-03-20 07:28:07 UTC (rev 19089)
@@ -1203,6 +1203,14 @@
         auth.clearAll();
     }
 
+    // This clears the SSL Identifier Cache.
+    // See https://bugzilla.mozilla.org/show_bug.cgi?id=448747 and
+    // http://mxr.mozilla.org/security/source/security/manager/ssl/src/nsNSSComponent.cpp#2057
+    m_tb_prefs.setBoolPref("security.enable_ssl2", 
+            !m_tb_prefs.getBoolPref("security.enable_ssl2"));
+    m_tb_prefs.setBoolPref("security.enable_ssl2", 
+            !m_tb_prefs.getBoolPref("security.enable_ssl2"));
+
     var lp = m_tb_prefs.getIntPref("network.cookie.lifetimePolicy");
 
     if(lp == 1) {



More information about the tor-commits mailing list