summaryrefslogtreecommitdiff
path: root/www/cherokee/files/patch-cherokee-socket.c
blob: c3d2ffb4922253b8dbd39fee562f4e462a02b95e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- cherokee/socket.c.orig	Thu Dec  7 09:46:29 2006
+++ cherokee/socket.c	Thu Dec 14 10:35:48 2006
@@ -1153,13 +1153,17 @@
 cherokee_socket_init_client_tls (cherokee_socket_t *socket)
 {
 #ifdef HAVE_TLS
-	int re;
-
 # ifdef HAVE_GNUTLS
+
 	const int                        kx_priority[] = {GNUTLS_KX_ANON_DH, 0};
 	gnutls_anon_client_credentials   anoncred;
-	
+
+#endif
+
+	int re;	
 	socket->is_tls = TLS;
+
+# ifdef HAVE_GNUTLS
 
 	/* Acredentials
 	 */