** Fix for bug #402925 from hggdh
authorSrinivasa Ragavan <sragavan@src.gnome.org>
Sat, 28 Jul 2007 20:02:31 +0000 (20:02 +0000)
committerSrinivasa Ragavan <sragavan@src.gnome.org>
Sat, 28 Jul 2007 20:02:31 +0000 (20:02 +0000)
svn path=/trunk/; revision=7884

camel/ChangeLog
camel/camel.c

index 2e18b39..9484e35 100644 (file)
@@ -1,3 +1,9 @@
+2007-07-29  Srinivasa Ragavan  <sragavan@novell.com>
+
+       ** Fix for bug #402925 from hggdh
+
+       * camel.c: (camel_init):
+
 2007-07-09  Gilles Dartiguelongue  <gdartigu@svn.gnome.org>
 
        * camel-folder.c: (camel_folder_change_info_add_update),
index 09625ec..b8d812a 100644 (file)
@@ -92,6 +92,7 @@ camel_init (const char *configdir, gboolean nss_init)
 #ifdef HAVE_NSS
        if (nss_init) {
                char *nss_configdir;
+               PRUint16 indx;
 
                PR_Init (PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 10);
                
@@ -110,6 +111,11 @@ camel_init (const char *configdir, gboolean nss_init)
                }
 
                NSS_SetDomesticPolicy ();
+               /* we must enable all ciphersuites */
+               for (indx = 0; indx < SSL_NumImplementedCiphers; indx++) {
+                       if (!SSL_IS_SSL2_CIPHER(SSL_ImplementedCiphers[indx]))
+                               SSL_CipherPrefSetDefault (SSL_ImplementedCiphers[indx], PR_TRUE);
+               }       
                
                SSL_OptionSetDefault (SSL_ENABLE_SSL2, PR_TRUE);
                SSL_OptionSetDefault (SSL_ENABLE_SSL3, PR_TRUE);