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-Tag: pre_ajp_proxy~1753 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85d6c41e63951061966266fb51c529816797f829;p=apache 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@99678 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_toolkit_compat.h b/modules/ssl/ssl_toolkit_compat.h index 8cd99f0d64..8cd69e6f69 100644 --- a/modules/ssl/ssl_toolkit_compat.h +++ b/modules/ssl/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