From: Doug MacEachern Date: Wed, 27 Mar 2002 01:58:15 +0000 (+0000) Subject: 3rd arg of BIO callbacks in 'const char' in OpenSSL and 'char' in sslc, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58d38f59790febd9d066377e435808838838ece6;p=apache 3rd arg of BIO callbacks in 'const char' in OpenSSL and 'char' in sslc, make both happy. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94198 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/mod_ssl.h b/modules/ssl/mod_ssl.h index f6bae69b39..ac05130603 100644 --- a/modules/ssl/mod_ssl.h +++ b/modules/ssl/mod_ssl.h @@ -364,6 +364,8 @@ typedef enum { #define SSL_set_state(ssl,val) (ssl)->state = val +#define MODSSL_BIO_CB_ARG_TYPE const char + #else /* support some OpenSSL-izms for compat with ssl */ @@ -372,6 +374,8 @@ typedef enum { #define STACK_OF(type) STACK #endif +#define MODSSL_BIO_CB_ARG_TYPE char + #endif /* OPENSSL_VERSION_NUMBER */ #define ssl_verify_error_is_optional(errnum) \ @@ -753,7 +757,7 @@ void ssl_ext_proxy_register(apr_pool_t *p); /* I/O */ void ssl_io_filter_init(conn_rec *, SSL *); void ssl_io_filter_register(apr_pool_t *); -long ssl_io_data_cb(BIO *, int, const char *, int, long, long); +long ssl_io_data_cb(BIO *, int, MODSSL_BIO_CB_ARG_TYPE *, int, long, long); /* PRNG */ int ssl_rand_seed(server_rec *, apr_pool_t *, ssl_rsctx_t, char *); diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index cd3212546d..92201ca4c5 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/ssl_engine_io.c @@ -913,7 +913,9 @@ void ssl_io_filter_register(apr_pool_t *p) #define DUMP_WIDTH 16 -static void ssl_io_data_dump(server_rec *srvr, const char *s, long len) +static void ssl_io_data_dump(server_rec *srvr, + MODSSL_BIO_CB_ARG_TYPE *s, + long len) { char buf[256]; char tmp[64]; @@ -961,7 +963,9 @@ static void ssl_io_data_dump(server_rec *srvr, const char *s, long len) return; } -long ssl_io_data_cb(BIO *bio, int cmd, const char *argp, int argi, long argl, long rc) +long ssl_io_data_cb(BIO *bio, int cmd, + MODSSL_BIO_CB_ARG_TYPE *argp, + int argi, long argl, long rc) { SSL *ssl; conn_rec *c;