Mercurial > ~mikael > mcabber > hg
diff mcabber/connwrap/connwrap.c @ 134:e19ad58c3cad
[/trunk] Changeset 147 by mikael
* Enable the connwrap module to compile when using gnutls-openssl.
author | mikael |
---|---|
date | Thu, 28 Apr 2005 17:39:57 +0000 |
parents | edb5591e2e64 |
children | f7f07794d2df |
line wrap: on
line diff
--- 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 <openssl/ssl.h> #include <openssl/err.h> -#elif HAVE_GNUTLS - -#include <gnutls/openssl.h> -#define HAVE_OPENSSL - +#else +# ifdef HAVE_GNUTLS +# include <gnutls/openssl.h> +# 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);