]> granicus.if.org Git - apache/commitdiff
OpenSSL 1.1.0 compat:
authorRainer Jung <rjung@apache.org>
Wed, 10 Aug 2016 20:58:22 +0000 (20:58 +0000)
committerRainer Jung <rjung@apache.org>
Wed, 10 Aug 2016 20:58:22 +0000 (20:58 +0000)
- move IDCONST macro outside of addition #if check.
  Otherwise we break compatibility with old
  OpenSSL 0.9.8 releases.

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

modules/ssl/ssl_private.h

index 6795aceee6d4bd2229e47fa0697708d7d0f9e5f3..459b6b34c2cbc724a258cdc787cd484e71470994 100644 (file)
 #define HAVE_SSL_CONF_CMD
 #endif
 
+/* session id constness */
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#define IDCONST
+#else
+#define IDCONST const
+#endif
+
 /**
   * The following features all depend on TLS extension support.
   * Within this block, check again for features (not version numbers).
 #endif /* if OPENSSL_VERSION_NUMBER < 0x10100000L */
 #endif /* if !defined(OPENSSL_NO_OCSP) && defined(SSL_CTX_set_tlsext_status_cb) */
 
-/* session id constness */
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
-#define IDCONST
-#else
-#define IDCONST const
-#endif
-
 /* TLS session tickets */
 #if defined(SSL_CTX_set_tlsext_ticket_key_cb)
 #define HAVE_TLS_SESSION_TICKETS