summaryrefslogtreecommitdiff
path: root/gweb/giognutls.c
diff options
context:
space:
mode:
Diffstat (limited to 'gweb/giognutls.c')
-rw-r--r--gweb/giognutls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gweb/giognutls.c b/gweb/giognutls.c
index 6856a2ab..887109a2 100644
--- a/gweb/giognutls.c
+++ b/gweb/giognutls.c
@@ -444,7 +444,9 @@ GIOChannel *g_io_channel_gnutls_new(int fd)
g_io_gnutls_push_func);
gnutls_transport_set_pull_function(gnutls_channel->session,
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-TLS1.1:!VERS-TLS1.0", NULL);