From fcca2ae899689fca47b4176e57a45b92f7780eb6 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Sun, 15 Sep 2002 00:00:48 +0000 Subject: [PATCH] Remove warnings seen with Sun's Forte compiler. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@96818 13f79535-47bb-0310-9956-ffa450edef68 --- mod_ssl.c | 3 ++- ssl_expr_parse.y | 2 -- ssl_util_ssl.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mod_ssl.c b/mod_ssl.c index 14e971ce79c..0365adfb3ad 100644 --- a/mod_ssl.c +++ b/mod_ssl.c @@ -335,7 +335,8 @@ static int ssl_hook_pre_connection(conn_rec *c, void *csd) return DECLINED; /* XXX */ } - vhost_md5 = ap_md5_binary(c->pool, sc->vhost_id, sc->vhost_id_len); + vhost_md5 = ap_md5_binary(c->pool, (unsigned char *)sc->vhost_id, + sc->vhost_id_len); if (!SSL_set_session_id_context(ssl, (unsigned char *)vhost_md5, MD5_DIGESTSIZE*2)) diff --git a/ssl_expr_parse.y b/ssl_expr_parse.y index c063b2bbee4..13eb5085052 100644 --- a/ssl_expr_parse.y +++ b/ssl_expr_parse.y @@ -151,7 +151,6 @@ regex : T_REGEX { REG_EXTENDED|REG_NOSUB)) == NULL) { ssl_expr_error = "Failed to compile regular expression"; YYERROR; - regex = NULL; } $$ = ssl_expr_make(op_Regex, regex, NULL); } @@ -161,7 +160,6 @@ regex : T_REGEX { REG_EXTENDED|REG_NOSUB|REG_ICASE)) == NULL) { ssl_expr_error = "Failed to compile regular expression"; YYERROR; - regex = NULL; } $$ = ssl_expr_make(op_Regex, regex, NULL); } diff --git a/ssl_util_ssl.c b/ssl_util_ssl.c index b3e866fd5ac..b11bc0da7b2 100644 --- a/ssl_util_ssl.c +++ b/ssl_util_ssl.c @@ -386,7 +386,7 @@ BOOL SSL_X509_getCN(apr_pool_t *p, X509 *xs, char **cppCN) X509_NAME *xsn; X509_NAME_ENTRY *xsne; int i, nid; - char *data_ptr; + unsigned char *data_ptr; int data_len; xsn = X509_get_subject_name(xs); -- 2.47.2