gweb: Fix gnutls_priority_set_direct() for various GnuTLS versions
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 24 Jul 2011 20:51:03 +0000 (22:51 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 24 Jul 2011 20:51:03 +0000 (22:51 +0200)
gweb/giognutls.c

index db061b1f42fdd46c966b320e76e2650d612123d8..a9b734fac1b9c00ac45263175dd727119d46f45a 100644 (file)
@@ -446,11 +446,13 @@ GIOChannel *g_io_channel_gnutls_new(int fd)
                                                g_io_gnutls_pull_func);
 #if GNUTLS_VERSION_NUMBER < 0x020c00
        gnutls_transport_set_lowat(gnutls_channel->session, 0);
-#endif
 
        gnutls_priority_set_direct(gnutls_channel->session,
-               "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0:+VERS-SSL3.0:%COMPAT",
-               NULL);
+                                               "NORMAL:%COMPAT", NULL);
+#else
+       gnutls_priority_set_direct(gnutls_channel->session,
+               "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0:+VERS-SSL3.0:%COMPAT", NULL);
+#endif
 
        gnutls_certificate_allocate_credentials(&gnutls_channel->cred);
        gnutls_credentials_set(gnutls_channel->session,