From 0ace5f655359373b4db8d2e937cfec926100ef56 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 10 Jun 2008 20:49:17 +0000 Subject: [PATCH] - I made the OpenSSL code build again with OpenSSL 0.9.6. The CRLFILE functionality killed it due to its unconditional use of X509_STORE_set_flags... --- CHANGES | 5 +++++ lib/ssluse.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGES b/CHANGES index e43a888..bfe49f4 100644 --- a/CHANGES +++ b/CHANGES @@ -7,6 +7,11 @@ Changelog +Daniel Stenberg (10 Jun 2008) +- I made the OpenSSL code build again with OpenSSL 0.9.6. The CRLFILE + functionality killed it due to its unconditional use of + X509_STORE_set_flags... + Daniel Stenberg (8 Jun 2008) - Due to the three new libcurl changes and the massive command line option change I decided we'll mark it by bumping the next release number to 7.19.0! diff --git a/lib/ssluse.c b/lib/ssluse.c index 4fff13d..f57828f 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -108,6 +108,13 @@ #define SSL_METHOD_QUAL #endif +#if OPENSSL_VERSION_NUMBER >= 0x00907000L +/* 0.9.6 didn't have X509_STORE_set_flags() */ +#define HAVE_X509_STORE_SET_FLAGS 1 +#else +#define X509_STORE_set_flags(x,y) +#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 -- 2.7.4