]> granicus.if.org Git - apache/commitdiff
OpenSSL should be included as "openssl/ssl.h" and not "ssl.h" (and rely on the
authorMadhusudan Mathihalli <madhum@apache.org>
Fri, 14 Mar 2003 02:20:50 +0000 (02:20 +0000)
committerMadhusudan Mathihalli <madhum@apache.org>
Fri, 14 Mar 2003 02:20:50 +0000 (02:20 +0000)
INCLUDE path to be defined properly)

PR: 11310
Submitted by: Geoff Thrope <geoff@geoffthrope.net>
Reviewed by: Madhusudan Mathihalli

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99008 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/ssl/mod_ssl.h
modules/ssl/ssl_toolkit_compat.h

diff --git a/CHANGES b/CHANGES
index 43515f94328319d375b52a1f575b634638fa77be..8164aaedb1d0b0716315e32bb8bdf7b658116069 100644 (file)
--- 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 <geoff@geoffthorpe.net>]
+
   *) Modify APACHE_CHECK_SSL_TOOLKIT to detect SSL-C. [Madhusudan Mathihalli]
      
   *) Replace the APACHE_CHECK_SSL_TOOLKIT method with a cleaner one, using
index bd451a9064eb888a7438403eb9138df4d2b9beb5..0e87525f5f19a445e81303f894f3ffdf24ed136d 100644 (file)
 
 #define MOD_SSL_VERSION AP_SERVER_BASEREVISION
 
-/* OpenSSL headers */
-#include <ssl.h>
-#include <err.h>
-#include <x509.h>
-#include <pem.h>
-#include <crypto.h>
-#include <evp.h>
-#include <rand.h>
-#ifdef SSL_EXPERIMENTAL_ENGINE
-#include <engine.h>
-#endif
-
 #include "ssl_toolkit_compat.h"
 
-#ifdef HAVE_SSL_X509V3_H
-#include <x509v3.h>
-#endif
-
 /* mod_ssl headers */
 #include "ssl_expr.h"
 #include "ssl_util_ssl.h"
index 8d89646b0139ddc12b10c5c5b841af63d65e4f51..f2519005dec636204a4f3d30873f276c47404c0c 100644 (file)
  * between OpenSSL and RSA sslc
  */
 
-#ifdef OPENSSL_VERSION_NUMBER
+#ifdef HAVE_OPENSSL
+
+/* OpenSSL headers */
+#include <openssl/ssl.h>
+#include <openssl/err.h>
+#include <openssl/x509.h>
+#include <openssl/pem.h>
+#include <openssl/crypto.h>
+#include <openssl/evp.h>
+#include <openssl/rand.h>
+#include <openssl/x509v3.h>
+#ifdef SSL_EXPERIMENTAL_ENGINE
+#include <openssl/engine.h>
+#endif
 
 /*
  * rsa sslc uses incomplete types for most structures
 
 #define HAVE_SSL_X509V3_EXT_d2i
 
-#else /* RSA sslc */
+#else /* HAVE_SSLC */
+
+#include <sslc.h>
+
+#if SSLC_VERSION > 0x1FFF
+#include <x509v3.h>
+#endif
 
 /* sslc does not support this function, OpenSSL has since 9.5.1 */
 #define RAND_status() 1
 #define modssl_set_verify(ssl, verify, cb) \
     SSL_set_verify(ssl, verify)
 
-#define NO_SSL_X509V3_H
-
 #endif
 
 /* BEGIN GENERATED SECTION */
     SSL_set_verify(ssl, verify, cb)
 #endif
 
-#ifndef NO_SSL_X509V3_H
-#define HAVE_SSL_X509V3_H
-#endif
-
 #endif /* SSL_TOOLKIT_COMPAT_H */