]> granicus.if.org Git - apache/commitdiff
Merge r1609936 from trunk:
authorJeff Trawick <trawick@apache.org>
Mon, 14 Jul 2014 00:24:33 +0000 (00:24 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 14 Jul 2014 00:24:33 +0000 (00:24 +0000)
mod_ssl: Set an error note for requests rejected due to
SSLStrictSNIVHostCheck

Submitted by: trawick
Reviewed by: minfrin, rjung

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1610327 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/ssl/ssl_engine_kernel.c

diff --git a/CHANGES b/CHANGES
index 1653c1157efb90a9263b5817723ba81cfa2127c7..e1ffee56e3870c8b5bf5d3584528d8bbdb90703a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 
 Changes with Apache 2.4.10
 
+  *) mod_ssl: Set an error note for requests rejected due to
+     SSLStrictSNIVHostCheck.  [Jeff Trawick]
+
   *) mod_ssl: Fix issue with redirects to error documents when handling
      SNI errors.  [Jeff Trawick]
 
diff --git a/STATUS b/STATUS
index fe15441bc0250b8e92ceae0dac0a81c313d6dea3..8ca7663400e597a5cc942ea2071b829032ad824a 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -122,12 +122,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
      ylavic: does not depend on r1572092 or r1572655 and al above,
              these proposals can be backported in any order.
 
-   * mod_ssl: Set an error note for requests rejected due to
-     SSLStrictSNIVHostCheck
-     trunk patch: http://svn.apache.org/r1609936
-     2.4.x patch: Trunk patch works modulo CHANGES.
-     +1: trawick, minfrin, rjung
-
    * core: Include any error notes set by modules in the canned error
      response for 403 errors.
      trunk patch: http://svn.apache.org/r1609938
index 7a7348e45fe5b8bfbc0b230bef24f68d92537368..3f905e7b865328f51355cff52f0a3f952ad1e313 100644 (file)
@@ -219,6 +219,10 @@ int ssl_hook_ReadReq(request_rec *r)
             ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server, APLOGNO(02033)
                          "No hostname was provided via SNI for a name based"
                          " virtual host");
+            apr_table_setn(r->notes, "error-notes",
+                           "Reason: The client software did not provide a "
+                           "hostname using Server Name Indication (SNI), "
+                           "which is required to access this server.<br />\n");
             return HTTP_FORBIDDEN;
         }
     }