aboutsummaryrefslogtreecommitdiffstats
path: root/www/cherokee-devel/files/patch-cherokee-socket.c
blob: 27451dba8e0c652b9912f88b5da64b09dd252aec (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  Wed Sep 13 21:48:51 2006
+++ cherokee/socket.c   Wed Sep 13 22:06:35 2006
@@ -1122,13 +1122,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
     */