]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Remove warnings seen with Sun's Forte compiler.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 15 Sep 2002 00:00:48 +0000 (00:00 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 15 Sep 2002 00:00:48 +0000 (00:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@96818 13f79535-47bb-0310-9956-ffa450edef68

mod_ssl.c
ssl_expr_parse.y
ssl_util_ssl.c

index 14e971ce79c751e3221554289e119e2afad36dd1..0365adfb3adcfccd8691ce32a0cd4e511682ecfc 100644 (file)
--- 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))
index c063b2bbee41d19cc366a8aa3a905f3cd9396ca8..13eb5085052e60cd556b00c34ab40a6283858384 100644 (file)
@@ -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);
             }
index b3e866fd5ac6d8018ecf492466c9e90a3407db0c..b11bc0da7b2470421f6e0797a360929b92713fa7 100644 (file)
@@ -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);