summaryrefslogtreecommitdiff
path: root/net-nntp/tin/files/tin-2.6.2-gnutls.patch
blob: b7f7de0956a2313e1d1bbb4d0518404a47e833fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Upstream patch to allow GnuTLS support without debug definitions.

--- a/src/nntps.c
+++ b/src/nntps.c
@@ -41,8 +41,8 @@
 #endif /* USE_LIBTLS */

 #ifdef USE_GNUTLS
-#	ifdef DEBUG
 static int verification_func(gnutls_session_t session);
+#	ifdef DEBUG
 static void log_func(int level, const char *msg);
 #	endif /* DEBUG */
 #else
@@ -933,8 +933,7 @@
 #endif /* USE_OPENSSL */


-#ifdef DEBUG
-#	ifdef USE_GNUTLS
+#ifdef USE_GNUTLS
 static int
 verification_func(
 	gnutls_session_t session)
@@ -953,8 +952,11 @@

 	return gnutls_verification_status;
 }
+#endif /* USE_GNUTLS */


+#ifdef DEBUG
+#	ifdef USE_GNUTLS
 static void
 log_func(
 	int level,