]> git.pld-linux.org Git - packages/curl.git/blame - gnutls3.patch
- added config patch to avoid errors when running `curl-config --cflags`
[packages/curl.git] / gnutls3.patch
CommitLineData
f2bd43e5
ER
1http://curl.haxx.se/mail/lib-2011-10/0176.html
2
3Curl: [PATCH] gtls: only call gnutls_transport_set_lowat with <gnutls-2.12.0
4From: Tim Harder <radhermit_at_gmail.com>
5Date: Wed, 19 Oct 2011 01:08:56 -0700
6
7The default lowat level for gnutls-2.12* is set to zero to avoid
8unnecessary system calls and the gnutls_transport_set_lowat function has
9been totally removed in >=gnutls-3 which causes build failures.
10Therefore, the function shouldn't be used except for versions that
11require it, <gnutls-2.12.0.
12
13---
14 lib/gtls.c | 2 ++
15 1 files changed, 2 insertions(+), 0 deletions(-)
16diff --git a/lib/gtls.c b/lib/gtls.c
17index f75a815..7ca46c8 100644
18--- a/lib/gtls.c
19+++ b/lib/gtls.c
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);
23
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);
27+#endif
28
29 /* This might be a reconnect, so we check for a session ID in the cache
30 to speed up things */ --
311.7.7
This page took 0.032736 seconds and 4 git commands to generate.