Do not explicitly disable SSLv3 if GnuTLS does it already.
[claws.git] / src / common / ssl.c
index c8b1b3da4051665613069ea558d4b4a5feba07d3..e25a42301fb73752a1d71b1cd7b6f1108ab31ce8 100644 (file)
@@ -330,9 +330,11 @@ gboolean ssl_init_socket(SockInfo *sockinfo)
                debug_print("Setting GnuTLS priority to %s, status = %d\n",
                            sockinfo->gnutls_priority, r);
        }
+#ifdef GNUTLS_VERSION_NUMBER < 0x030400
        else {
                gnutls_priority_set_direct(session, "NORMAL:-VERS-SSL3.0", NULL);
        }
+#endif
        gnutls_record_disable_padding(session);
 
        gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, xcred);