From 342bc8e5120917150fc6981e60e83208edbe3a68 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 16 Feb 2017 21:41:55 +0000 Subject: [PATCH] Preserve OpenSSL 1.0.2 compatibility, following up on r1783305 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1783310 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_util_ocsp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ssl/ssl_util_ocsp.c b/modules/ssl/ssl_util_ocsp.c index b11a6e924e5..d038980bc27 100644 --- a/modules/ssl/ssl_util_ocsp.c +++ b/modules/ssl/ssl_util_ocsp.c @@ -357,7 +357,11 @@ static STACK_OF(X509) *modssl_read_ocsp_certificates(const char *file) unsigned long err; STACK_OF(X509) *other_certs = NULL; +#if OPENSSL_VERSION_NUMBER < 0x10100000L + if ((bio = BIO_new(BIO_s_file_internal())) == NULL) +#else if ((bio = BIO_new(BIO_s_file())) == NULL) +#endif return NULL; if (BIO_read_filename(bio, file) <= 0) { BIO_free(bio); -- 2.47.3