]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_toolkit_compat.h: Fold #if checks to enable OCSP
authorJoe Orton <jorton@apache.org>
Wed, 28 Oct 2009 14:19:32 +0000 (14:19 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 28 Oct 2009 14:19:32 +0000 (14:19 +0000)
  stapling support, and also check that HAVE_OCSP is defined.

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

modules/ssl/ssl_toolkit_compat.h

index 7fbc082a750dc7e0c77a4ae00cf4afe8d2786fe7..f1bdebdc3cac24598320fcf01aaa89e49922f626 100644 (file)
@@ -147,11 +147,10 @@ typedef int (modssl_read_bio_cb_fn)(char*,int,int,void*);
 
 #define HAVE_SSL_X509V3_EXT_d2i
 
-#if (OPENSSL_VERSION_NUMBER >= 0x00908080)
-#ifndef OPENSSL_NO_TLSEXT
+#if OPENSSL_VERSION_NUMBER >= 0x00908080 && defined(HAVE_OCSP) \
+    && !defined(OPENSSL_NO_TLSEXT)
 #define HAVE_OCSP_STAPLING
 #endif
-#endif
 
 #ifndef PEM_F_DEF_CALLBACK
 #ifdef PEM_F_PEM_DEF_CALLBACK