From: Doug MacEachern Date: Wed, 27 Mar 2002 03:46:36 +0000 (+0000) Subject: adjust to another const char vs char mismatch between OpenSSL and sslc X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfb9854635567b7d8557ce40d3a063c8c128740c;p=thirdparty%2Fapache%2Fhttpd.git adjust to another const char vs char mismatch between OpenSSL and sslc git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@94212 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_toolkit_compat.h b/ssl_toolkit_compat.h index f297947f0be..dc94f053c77 100644 --- a/ssl_toolkit_compat.h +++ b/ssl_toolkit_compat.h @@ -44,6 +44,7 @@ #define SSL_set_state(ssl,val) (ssl)->state = val #define MODSSL_BIO_CB_ARG_TYPE const char +#define MODSSL_CRYPTO_CB_ARG_TYPE const char #define modssl_X509_verify_cert(c) X509_verify_cert(c) @@ -61,6 +62,7 @@ #endif #define MODSSL_BIO_CB_ARG_TYPE char +#define MODSSL_CRYPTO_CB_ARG_TYPE char #define modssl_X509_verify_cert(c) X509_verify_cert(c, NULL) diff --git a/ssl_util.c b/ssl_util.c index 3ef632a81d9..f617096600e 100644 --- a/ssl_util.c +++ b/ssl_util.c @@ -404,7 +404,9 @@ static apr_thread_mutex_t **lock_cs; CRYPT_num_locks() [Ben, Jan 2002] */ static long lock_count[CRYPTO_NUM_LOCKS]; -static void ssl_util_thr_lock(int mode, int type, const char *file, int line) +static void ssl_util_thr_lock(int mode, int type, + MODSSL_CRYPTO_CB_ARG_TYPE *file, + int line) { if (mode & CRYPTO_LOCK) { apr_thread_mutex_lock(lock_cs[type]);