From: Jeff Trawick Date: Thu, 1 May 2003 13:10:36 +0000 (+0000) Subject: tweak the const-ness of MODSSL_INFO_CB_ARG_TYPE based on the OpenSSL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=664f2cdea6d3ba04e34183670d54d70931ea6baf;p=thirdparty%2Fapache%2Fhttpd.git tweak the const-ness of MODSSL_INFO_CB_ARG_TYPE based on the OpenSSL version this resolves some warnings with RH 8 (OpenSSL 0.9.6) and some errors with AIX's native compiler (OpenSSL 0.9.6) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@99678 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_toolkit_compat.h b/ssl_toolkit_compat.h index 8cd99f0d64e..8cd69e6f698 100644 --- a/ssl_toolkit_compat.h +++ b/ssl_toolkit_compat.h @@ -107,7 +107,11 @@ #define MODSSL_BIO_CB_ARG_TYPE const char #define MODSSL_CRYPTO_CB_ARG_TYPE const char +#if (OPENSSL_VERSION_NUMBER < 0x00907000) +#define MODSSL_INFO_CB_ARG_TYPE SSL* +#else #define MODSSL_INFO_CB_ARG_TYPE const SSL* +#endif #define MODSSL_CLIENT_CERT_CB_ARG_TYPE X509 #define MODSSL_PCHAR_CAST