freebsd-ports/www/cherokee/files/patch-cherokee-socket.c
Michael Johnson 2cccf59476 - Update to 0.4.25
PR:		ports/85390
Submitted by:	Ports Fury
2005-08-30 01:33:56 +00:00

28 lines
517 B
C

--- cherokee/socket.c.orig Tue Aug 2 05:32:12 2005
+++ cherokee/socket.c Thu Aug 4 21:17:27 2005
@@ -1052,15 +1052,20 @@
cherokee_socket_init_client_tls (cherokee_socket_t *socket)
{
#ifdef HAVE_TLS
- int re;
-
- socket->is_tls = TLS;
-
# 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
*/
gnutls_anon_allocate_client_credentials(&anoncred);