From 5939e88fc241d4e13df317339d65efabd5a90562 Mon Sep 17 00:00:00 2001 From: Madhusudan Mathihalli Date: Fri, 14 Mar 2003 02:20:50 +0000 Subject: [PATCH] OpenSSL should be included as "openssl/ssl.h" and not "ssl.h" (and rely on the INCLUDE path to be defined properly) PR: 11310 Submitted by: Geoff Thrope Reviewed by: Madhusudan Mathihalli git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99008 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 4 ++++ modules/ssl/mod_ssl.h | 16 ---------------- modules/ssl/ssl_toolkit_compat.h | 29 +++++++++++++++++++++-------- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/CHANGES b/CHANGES index 43515f9432..8164aaedb1 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,10 @@ Changes with Apache 2.1.0-dev [Remove entries to the current 2.0 section below, when backported] + *) OpenSSL headers should be included as "openssl/ssl.h", and not rely on + the INCLUDE path to be defined properly. + PR 11310. [Geoff Thrope ] + *) Modify APACHE_CHECK_SSL_TOOLKIT to detect SSL-C. [Madhusudan Mathihalli] *) Replace the APACHE_CHECK_SSL_TOOLKIT method with a cleaner one, using diff --git a/modules/ssl/mod_ssl.h b/modules/ssl/mod_ssl.h index bd451a9064..0e87525f5f 100644 --- a/modules/ssl/mod_ssl.h +++ b/modules/ssl/mod_ssl.h @@ -107,24 +107,8 @@ #define MOD_SSL_VERSION AP_SERVER_BASEREVISION -/* OpenSSL headers */ -#include -#include -#include -#include -#include -#include -#include -#ifdef SSL_EXPERIMENTAL_ENGINE -#include -#endif - #include "ssl_toolkit_compat.h" -#ifdef HAVE_SSL_X509V3_H -#include -#endif - /* mod_ssl headers */ #include "ssl_expr.h" #include "ssl_util_ssl.h" diff --git a/modules/ssl/ssl_toolkit_compat.h b/modules/ssl/ssl_toolkit_compat.h index 8d89646b01..f2519005de 100644 --- a/modules/ssl/ssl_toolkit_compat.h +++ b/modules/ssl/ssl_toolkit_compat.h @@ -55,7 +55,20 @@ * between OpenSSL and RSA sslc */ -#ifdef OPENSSL_VERSION_NUMBER +#ifdef HAVE_OPENSSL + +/* OpenSSL headers */ +#include +#include +#include +#include +#include +#include +#include +#include +#ifdef SSL_EXPERIMENTAL_ENGINE +#include +#endif /* * rsa sslc uses incomplete types for most structures @@ -121,7 +134,13 @@ #define HAVE_SSL_X509V3_EXT_d2i -#else /* RSA sslc */ +#else /* HAVE_SSLC */ + +#include + +#if SSLC_VERSION > 0x1FFF +#include +#endif /* sslc does not support this function, OpenSSL has since 9.5.1 */ #define RAND_status() 1 @@ -171,8 +190,6 @@ #define modssl_set_verify(ssl, verify, cb) \ SSL_set_verify(ssl, verify) -#define NO_SSL_X509V3_H - #endif /* BEGIN GENERATED SECTION */ @@ -210,8 +227,4 @@ SSL_set_verify(ssl, verify, cb) #endif -#ifndef NO_SSL_X509V3_H -#define HAVE_SSL_X509V3_H -#endif - #endif /* SSL_TOOLKIT_COMPAT_H */ -- 2.40.0