# HG changeset patch # User mikael # Date 1114709997 0 # Node ID e19ad58c3cadd06bfebfc8527cf476ba222ad164 # Parent a27b22e3b3a1cc11009ddadcaf1783bebffff93a [/trunk] Changeset 147 by mikael * Enable the connwrap module to compile when using gnutls-openssl. diff -r a27b22e3b3a1 -r e19ad58c3cad mcabber/connwrap/connwrap.c --- a/mcabber/connwrap/connwrap.c Thu Apr 28 14:47:56 2005 +0000 +++ b/mcabber/connwrap/connwrap.c Thu Apr 28 17:39:57 2005 +0000 @@ -18,11 +18,11 @@ #include #include -#elif HAVE_GNUTLS - -#include -#define HAVE_OPENSSL - +#else +# ifdef HAVE_GNUTLS +# include +# define HAVE_OPENSSL +# endif #endif static int in_http_connect = 0; @@ -62,7 +62,8 @@ OpenSSL_add_all_algorithms(); #endif - ctx = SSL_CTX_new(SSLv23_method()); + //ctx = SSL_CTX_new(SSLv23_method()); + ctx = SSL_CTX_new(SSLv23_client_method()); } p->ssl = SSL_new(ctx);