summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-07-24 20:51:03 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2011-07-24 20:51:03 (GMT)
commit14030eaee370dcc42a96e7f30b0a9f63a2530266 (patch)
tree6f797c9099ceaa6f1460345fee98f50c4e163e3f /gweb
parent155b96630ae27ae417f30a6a09491b8e2663572f (diff)
downloadconnman-14030eaee370dcc42a96e7f30b0a9f63a2530266.zip
connman-14030eaee370dcc42a96e7f30b0a9f63a2530266.tar.gz
connman-14030eaee370dcc42a96e7f30b0a9f63a2530266.tar.bz2
gweb: Fix gnutls_priority_set_direct() for various GnuTLS versions
Diffstat (limited to 'gweb')
-rw-r--r--gweb/giognutls.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gweb/giognutls.c b/gweb/giognutls.c
index db061b1..a9b734f 100644
--- a/gweb/giognutls.c
+++ b/gweb/giognutls.c
@@ -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,