From: Jeff Trawick Date: Fri, 4 Apr 2003 03:57:10 +0000 (+0000) Subject: Fix a compile failure with recent OpenSSL and picky compilers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8739b4c6256f2c4c5f53399268fba2304f64a22b;p=thirdparty%2Fapache%2Fhttpd.git Fix a compile failure with recent OpenSSL and picky compilers (e.g., OpenSSL 0.9.7a and xlc_r on AIX). The OpenSSL info callback field changed recently from a generic function pointer to a specific one, and ssl_callback_LogTracingState wasn't quite right. old: ssl.h: void (*info_callback)(); new: ssl.h: void (*info_callback)(const SSL *ssl,int type,int val); git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@99201 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/mod_ssl.h b/mod_ssl.h index c9132033269..00075d906f7 100644 --- a/mod_ssl.h +++ b/mod_ssl.h @@ -588,7 +588,7 @@ int ssl_callback_proxy_cert(SSL *ssl, MODSSL_CLIENT_CERT_CB_ARG_TYPE ** int ssl_callback_NewSessionCacheEntry(SSL *, SSL_SESSION *); SSL_SESSION *ssl_callback_GetSessionCacheEntry(SSL *, unsigned char *, int, int *); void ssl_callback_DelSessionCacheEntry(SSL_CTX *, SSL_SESSION *); -void ssl_callback_LogTracingState(SSL *, int, int); +void ssl_callback_LogTracingState(const SSL *, int, int); /* Session Cache Support */ void ssl_scache_init(server_rec *, apr_pool_t *); diff --git a/ssl_engine_kernel.c b/ssl_engine_kernel.c index c4cb37880e5..429ed18841e 100644 --- a/ssl_engine_kernel.c +++ b/ssl_engine_kernel.c @@ -1745,7 +1745,7 @@ void ssl_callback_DelSessionCacheEntry(SSL_CTX *ctx, * SSL handshake and does SSL record layer stuff. We use it to * trace OpenSSL's processing in out SSL logfile. */ -void ssl_callback_LogTracingState(SSL *ssl, int where, int rc) +void ssl_callback_LogTracingState(const SSL *ssl, int where, int rc) { conn_rec *c; server_rec *s;