From: | "Kacper Kowalik (xarthisius)" <xarthisius@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-libs/net6/files: net6-1.3.13-gnutls3.patch |
Date: | Sun, 30 Oct 2011 09:06:10 |
Message-Id: | 20111030090601.0BDD12004C@flycatcher.gentoo.org |
1 | xarthisius 11/10/30 09:06:01 |
2 | |
3 | Added: net6-1.3.13-gnutls3.patch |
4 | Log: |
5 | Backport upstream patch to fix building with gnutls-3. Fixes bug #388897 by Lars Wendler <polynomial-c@g.o> |
6 | |
7 | (Portage version: 2.2.0_alpha71/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-libs/net6/files/net6-1.3.13-gnutls3.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/net6/files/net6-1.3.13-gnutls3.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/net6/files/net6-1.3.13-gnutls3.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: net6-1.3.13-gnutls3.patch |
16 | =================================================================== |
17 | Backporting upstream patch to fix build failure with gnutls-3 |
18 | |
19 | https://bugs.gentoo.org/show_bug.cgi?id=388897 |
20 | |
21 | --- a/inc/encrypt.hpp |
22 | +++ b/inc/encrypt.hpp |
23 | @@ -34,7 +34,6 @@ |
24 | typedef gnutls_anon_server_credentials gnutls_anon_server_credentials_t; |
25 | typedef gnutls_transport_ptr gnutls_transport_ptr_t; |
26 | typedef gnutls_dh_params gnutls_dh_params_t; |
27 | -typedef gnutls_connection_end gnutls_connection_end_t; |
28 | |
29 | class dh_params: private net6::non_copyable |
30 | { |
31 | --- a/src/encrypt.cpp |
32 | +++ b/src/encrypt.cpp |
33 | @@ -25,7 +25,7 @@ |
34 | { |
35 | const unsigned int DH_BITS = 1024; |
36 | |
37 | - net6::gnutls_session_t create_session(net6::gnutls_connection_end_t end) |
38 | + net6::gnutls_session_t create_session(gnutls_connection_end_t end) |
39 | { |
40 | net6::gnutls_session_t session; |
41 | gnutls_init(&session, end); |
42 | @@ -202,7 +202,9 @@ |
43 | ); |
44 | #endif |
45 | |
46 | +#if GNUTLS_VERSION_NUMBER < 0x030003 |
47 | gnutls_transport_set_lowat(session, 0); |
48 | +#endif |
49 | } |
50 | |
51 | net6::tcp_encrypted_socket_base::~tcp_encrypted_socket_base() |