Blob Blame History Raw
--- Source/GSTLS.orig.m	2016-03-09 14:16:16.000000000 +0100
+++ Source/GSTLS.m	2016-08-21 16:46:41.347996519 +0200
@@ -1474,7 +1474,7 @@
       /* By default we disable SSL3.0 as the 'POODLE' attack (Oct 2014)
        * renders it insecure.
        */
-      gnutls_priority_set_direct(session, "NORMAL:-VERS-SSL3.0", NULL);
+      gnutls_set_default_priority (session);
 #endif
 
       if (nil == str)
@@ -1503,8 +1503,7 @@
                 0 };
               gnutls_protocol_set_priority(session, proto_prio);
 #else
-              gnutls_priority_set_direct(session,
-                "NORMAL:-VERS-TLS-ALL:+VERS-SSL3.0", NULL);
+              gnutls_set_default_priority (session);
 #endif
               GSOnceMLog(@"NSStreamSocketSecurityLevelSSLv3 is insecure ..."
                 @" please change your code to stop using it");
@@ -1521,15 +1520,14 @@
                 0 };
               gnutls_protocol_set_priority(session, proto_prio);
 #else
-              gnutls_priority_set_direct(session,
-                "NORMAL:-VERS-SSL3.0:+VERS-TLS-ALL", NULL);
+              gnutls_set_default_priority (session);
 #endif
             }
         }
 #if GNUTLS_VERSION_NUMBER >= 0x020C00
       else
         {
-          gnutls_priority_set_direct(session, [str UTF8String], NULL);
+          gnutls_set_default_priority (session);
         }
 #endif