Blame SOURCES/mod_nss-httpd24.patch

90ca4f
diff -ru mod_nss/mod_nss.c mod_nss-1.0.8/mod_nss.c
90ca4f
--- mod_nss/mod_nss.c	2012-06-12 12:23:29.961000000 -0700
90ca4f
+++ mod_nss-1.0.8/mod_nss.c	2012-06-12 12:00:35.957002099 -0700
90ca4f
@@ -349,7 +349,7 @@
90ca4f
     ap_log_error(APLOG_MARK, APLOG_INFO, 0, c->base_server,
90ca4f
                  "Connection to child %ld established "
90ca4f
                  "(server %s, client %s)", c->id, sc->vhost_id, 
90ca4f
-                 c->remote_ip ? c->remote_ip : "unknown");
90ca4f
+                 c->client_ip ? c->client_ip : "unknown");
90ca4f
 
90ca4f
     mctx = sslconn->is_proxy ? sc->proxy : sc->server;
90ca4f
 
90ca4f
diff -ru mod_nss/mod_nss.h mod_nss-1.0.8/mod_nss.h
90ca4f
--- mod_nss/mod_nss.h	2012-06-12 12:23:29.962000000 -0700
90ca4f
+++ mod_nss-1.0.8/mod_nss.h	2012-06-12 12:00:35.955002240 -0700
90ca4f
@@ -27,7 +27,6 @@
90ca4f
 #include "http_protocol.h"
90ca4f
 #include "util_script.h"
90ca4f
 #include "util_filter.h"
90ca4f
-#include "mpm.h"
90ca4f
 #include "apr.h"
90ca4f
 #include "apr_strings.h"
90ca4f
 #define APR_WANT_STRFUNC
90ca4f
@@ -490,7 +489,7 @@
90ca4f
 SECStatus nss_Init_Tokens(server_rec *s);
90ca4f
 
90ca4f
 /* Logging */
90ca4f
-void nss_log_nss_error(const char *file, int line, int level, server_rec *s);
90ca4f
+void nss_log_nss_error(const char *file, int line, int module_index, int level, server_rec *s);
90ca4f
 void nss_die(void);
90ca4f
 
90ca4f
 /* NSS callback */
90ca4f
diff -ru mod_nss/nss_engine_init.c mod_nss-1.0.8/nss_engine_init.c
90ca4f
--- mod_nss/nss_engine_init.c	2012-06-12 12:23:29.962000000 -0700
90ca4f
+++ mod_nss-1.0.8/nss_engine_init.c	2012-06-12 12:00:35.955002240 -0700
90ca4f
@@ -15,7 +15,7 @@
90ca4f
 
90ca4f
 #include "mod_nss.h"
90ca4f
 #include "apr_thread_proc.h"
90ca4f
-#include "ap_mpm.h"
90ca4f
+#include "mpm_common.h"
90ca4f
 #include "secmod.h"
90ca4f
 #include "sslerr.h"
90ca4f
 #include "pk11func.h"
90ca4f
diff -ru mod_nss/nss_engine_io.c mod_nss-1.0.8/nss_engine_io.c
90ca4f
--- mod_nss/nss_engine_io.c	2012-06-12 12:23:29.963000000 -0700
90ca4f
+++ mod_nss-1.0.8/nss_engine_io.c	2012-06-12 12:00:35.956002167 -0700
90ca4f
@@ -621,13 +621,13 @@
90ca4f
     PR_Close(ssl);
90ca4f
 
90ca4f
     /* log the fact that we've closed the connection */
90ca4f
-    if (c->base_server->loglevel >= APLOG_INFO) {
90ca4f
+    if (c->base_server->log.level >= APLOG_INFO) {
90ca4f
         ap_log_error(APLOG_MARK, APLOG_INFO, 0, c->base_server,
90ca4f
                      "Connection to child %ld closed "
90ca4f
                      "(server %s, client %s)",
90ca4f
                      c->id,
90ca4f
                      nss_util_vhostid(c->pool, c->base_server),
90ca4f
-                     c->remote_ip ? c->remote_ip : "unknown");
90ca4f
+                     c->client_ip ? c->client_ip : "unknown");
90ca4f
     }
90ca4f
 
90ca4f
     /* deallocate the SSL connection */
90ca4f
@@ -1165,7 +1165,7 @@
90ca4f
     filter_ctx = (nss_filter_ctx_t *)(fd->secret);
90ca4f
     c = filter_ctx->c;
90ca4f
 
90ca4f
-    return PR_StringToNetAddr(c->remote_ip, addr);
90ca4f
+    return PR_StringToNetAddr(c->client_ip, addr);
90ca4f
 }
90ca4f
 
90ca4f
 /* 
90ca4f
diff -ru mod_nss/nss_engine_kernel.c mod_nss-1.0.8/nss_engine_kernel.c
90ca4f
--- mod_nss/nss_engine_kernel.c	2012-06-12 12:23:29.963000000 -0700
90ca4f
+++ mod_nss-1.0.8/nss_engine_kernel.c	2012-06-12 12:00:35.954002314 -0700
90ca4f
@@ -73,7 +73,7 @@
90ca4f
     /*
90ca4f
      * Log information about incoming HTTPS requests
90ca4f
      */
90ca4f
-    if (r->server->loglevel >= APLOG_INFO && ap_is_initial_req(r)) {
90ca4f
+    if (r->server->log.level >= APLOG_INFO && ap_is_initial_req(r)) {
90ca4f
         ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server,
90ca4f
                      "%s HTTPS request received for child %ld (server %s)",
90ca4f
                      (r->connection->keepalives <= 0 ?
90ca4f
@@ -530,7 +530,7 @@
90ca4f
             ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server,
90ca4f
                          "Access to %s denied for %s "
90ca4f
                          "(requirement expression not fulfilled)",
90ca4f
-                         r->filename, r->connection->remote_ip);
90ca4f
+                         r->filename, r->connection->client_ip);
90ca4f
 
90ca4f
             ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server,
90ca4f
                          "Failed expression: %s", req->cpExpr);
90ca4f
diff -ru mod_nss/nss_engine_log.c mod_nss-1.0.8/nss_engine_log.c
90ca4f
--- mod_nss/nss_engine_log.c	2012-06-12 12:23:29.964000000 -0700
90ca4f
+++ mod_nss-1.0.8/nss_engine_log.c	2012-06-12 12:00:35.955002240 -0700
90ca4f
@@ -321,7 +321,7 @@
90ca4f
     exit(1); 
90ca4f
 }
90ca4f
 
90ca4f
-void nss_log_nss_error(const char *file, int line, int level, server_rec *s)
90ca4f
+void nss_log_nss_error(const char *file, int line, int module_index, int level, server_rec *s)
90ca4f
 {
90ca4f
     const char *err;
90ca4f
     PRInt32 error;
90ca4f
@@ -340,7 +340,7 @@
90ca4f
          err = "Unknown";
90ca4f
     }
90ca4f
 
90ca4f
-    ap_log_error(file, line, level, 0, s,
90ca4f
+    ap_log_error(file, line, module_index, level, 0, s,
90ca4f
                  "SSL Library Error: %d %s",
90ca4f
                  error, err);
90ca4f
 }
90ca4f
diff -ru mod_nss/nss_engine_vars.c mod_nss-1.0.8/nss_engine_vars.c
90ca4f
--- mod_nss/nss_engine_vars.c	2012-06-12 12:23:29.965000000 -0700
90ca4f
+++ mod_nss-1.0.8/nss_engine_vars.c	2012-06-12 12:00:35.948002812 -0700
90ca4f
@@ -178,7 +178,7 @@
90ca4f
                  && sslconn && sslconn->ssl)
90ca4f
             result = nss_var_lookup_ssl(p, c, var+4);
90ca4f
         else if (strcEQ(var, "REMOTE_ADDR"))
90ca4f
-            result = c->remote_ip;
90ca4f
+            result = c->client_ip;
90ca4f
         else if (strcEQ(var, "HTTPS")) {
90ca4f
             if (sslconn && sslconn->ssl)
90ca4f
                 result = "on";
90ca4f
@@ -194,7 +194,7 @@
90ca4f
         if (strlen(var) > 12 && strcEQn(var, "SSL_VERSION_", 12))
90ca4f
             result = nss_var_lookup_nss_version(p, var+12);
90ca4f
         else if (strcEQ(var, "SERVER_SOFTWARE"))
90ca4f
-            result = (char *)ap_get_server_version();
90ca4f
+            result = (char *)ap_get_server_banner();
90ca4f
         else if (strcEQ(var, "API_VERSION")) {
90ca4f
             result = apr_psprintf(p, "%d", MODULE_MAGIC_NUMBER);
90ca4f
             resdup = FALSE;