Lines 1-27
Link Here
|
1 |
--- cherokee/socket.c.orig Tue Aug 2 05:32:12 2005 |
1 |
--- cherokee/socket.c.orig Wed Sep 13 21:48:51 2006 |
2 |
+++ cherokee/socket.c Thu Aug 4 21:17:27 2005 |
2 |
+++ cherokee/socket.c Wed Sep 13 22:06:35 2006 |
3 |
@@ -1052,15 +1052,20 @@ |
3 |
@@ -1122,13 +1122,17 @@ |
4 |
cherokee_socket_init_client_tls (cherokee_socket_t *socket) |
4 |
cherokee_socket_init_client_tls (cherokee_socket_t *socket) |
5 |
{ |
5 |
{ |
6 |
#ifdef HAVE_TLS |
6 |
#ifdef HAVE_TLS |
7 |
- int re; |
7 |
- int re; |
8 |
- |
8 |
- |
9 |
- socket->is_tls = TLS; |
|
|
10 |
- |
11 |
# ifdef HAVE_GNUTLS |
9 |
# ifdef HAVE_GNUTLS |
12 |
+ |
10 |
+ |
13 |
const int kx_priority[] = {GNUTLS_KX_ANON_DH, 0}; |
11 |
const int kx_priority[] = {GNUTLS_KX_ANON_DH, 0}; |
14 |
|
|
|
15 |
gnutls_anon_client_credentials anoncred; |
12 |
gnutls_anon_client_credentials anoncred; |
|
|
13 |
- |
16 |
+ |
14 |
+ |
17 |
+# endif |
15 |
+#endif |
18 |
+ |
16 |
+ |
19 |
+ int re; |
17 |
+ int re; |
20 |
|
18 |
socket->is_tls = TLS; |
21 |
+ socket->is_tls = TLS; |
|
|
22 |
+ |
19 |
+ |
23 |
+# ifdef HAVE_GNUTLS |
20 |
+# ifdef HAVE_GNUTLS |
24 |
+ |
21 |
|
25 |
/* Acredentials |
22 |
/* Acredentials |
26 |
*/ |
23 |
*/ |
27 |
gnutls_anon_allocate_client_credentials(&anoncred); |
|
|