+2011-08-05 Giuseppe Scrivano <giuseppe@southpole.se>
+
+ * gnutls.c (ssl_connect_wget): Use `gnutls_priority_set_direct' instead
+ of the deprecated `gnutls_protocol_set_priority'.
+
2011-08-02 Giuseppe Scrivano <giuseppe@southpole.se>
* cookies.c (parse_set_cookie): If the value is quoted, do not modify
struct wgnutls_transport_context *ctx;
gnutls_session session;
int err;
- int allowed_protocols[4] = {0, 0, 0, 0};
gnutls_init (&session, GNUTLS_CLIENT);
gnutls_set_default_priority (session);
gnutls_certificate_type_set_priority (session, cert_type_priority);
break;
case secure_protocol_sslv2:
case secure_protocol_sslv3:
- allowed_protocols[0] = GNUTLS_SSL3;
- err = gnutls_protocol_set_priority (session, allowed_protocols);
+ err = gnutls_priority_set_direct (session, "NORMAL:-VERS-TLS-ALL", NULL);
break;
case secure_protocol_tlsv1:
- allowed_protocols[0] = GNUTLS_TLS1_0;
- allowed_protocols[1] = GNUTLS_TLS1_1;
- allowed_protocols[2] = GNUTLS_TLS1_2;
- err = gnutls_protocol_set_priority (session, allowed_protocols);
+ err = gnutls_priority_set_direct (session, "NORMAL:-VERS-SSL3.0", NULL);
break;
default:
abort ();