1 http://curl.haxx.se/mail/lib-2011-10/0176.html
3 Curl: [PATCH] gtls: only call gnutls_transport_set_lowat with <gnutls-2.12.0
4 From: Tim Harder <radhermit_at_gmail.com>
5 Date: Wed, 19 Oct 2011 01:08:56 -0700
7 The default lowat level for gnutls-2.12* is set to zero to avoid
8 unnecessary system calls and the gnutls_transport_set_lowat function has
9 been totally removed in >=gnutls-3 which causes build failures.
10 Therefore, the function shouldn't be used except for versions that
11 require it, <gnutls-2.12.0.
15 1 files changed, 2 insertions(+), 0 deletions(-)
16 diff --git a/lib/gtls.c b/lib/gtls.c
17 index f75a815..7ca46c8 100644
20 @@ -476,8 +476,10 @@ gtls_connect_step1(struct connectdata *conn,
21 gnutls_transport_set_push_function(session, Curl_gtls_push);
22 gnutls_transport_set_pull_function(session, Curl_gtls_pull);
24 +#if GNUTLS_VERSION_NUMBER < 0x020c00
25 /* lowat must be set to zero when using custom push and pull functions. */
26 gnutls_transport_set_lowat(session, 0);
29 /* This might be a reconnect, so we check for a session ID in the cache
30 to speed up things */ --