From 2b0e09b0f98e0f67417652dd7f4afd59bf895326 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 6 Dec 2011 14:22:45 +0100 Subject: OpenSSL: check for the SSLv2 function in configure If no SSLv2 was detected in OpenSSL by configure, then we enforce the OPENSSL_NO_SSL2 define as it seems some people report it not being defined properly in the OpenSSL headers. --- lib/ssluse.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/ssluse.c') diff --git a/lib/ssluse.c b/lib/ssluse.c index af70fe08b..8deea26ae 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -127,6 +127,11 @@ #define HAVE_ERR_REMOVE_THREAD_STATE 1 #endif +#ifndef HAVE_SSLV2_CLIENT_METHOD +#undef OPENSSL_NO_SSL2 /* undef first to avoid compiler warnings */ +#define OPENSSL_NO_SSL2 +#endif + /* * Number of bytes to read from the random number seed file. This must be * a finite value (because some entropy "files" like /dev/urandom have -- cgit v1.2.3