]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
backport of r1718514,1721313
authorStefan Eissing <icing@apache.org>
Thu, 28 Jan 2016 16:29:47 +0000 (16:29 +0000)
committerStefan Eissing <icing@apache.org>
Thu, 28 Jan 2016 16:29:47 +0000 (16:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1727399 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/arch/netware/mod_nw_ssl.c
modules/ssl/ssl_engine_config.c
modules/ssl/ssl_private.h

diff --git a/STATUS b/STATUS
index eae1d9e9076419fce0783aa7e973f332bb60f97b..a00a76f77cab3b90646b7fa09038551f8ee50aec 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -112,13 +112,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) mod_ssl: Constify + save a few bytes in conf pool when parsing SSLRequire
-     mod_nw_ssl: Save a few bytes in conf pool when processing 'NWSSLTrustedCerts'
-     trunk patch: http://svn.apache.org/r1718514
-                  http://svn.apache.org/r1721313 (untested because I don't have this system)
-     2.4.x patch: trunk works
-     +1: jailletc36, jim, icing
-     
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
 
index d34430023e4e3c7ab806faab461b821d28401d9d..8e392a7f01c1840cfd0955196bff7e454c0dd1da 100644 (file)
@@ -404,7 +404,7 @@ static int SSLize_Socket(SOCKET socketHnd, char *key, request_rec *r)
     ulFlag = SO_TLS_ENABLE;
     rcode = WSAIoctl(socketHnd, SO_TLS_SET_FLAGS, &ulFlag,
                      sizeof(unsigned long), NULL, 0, NULL, NULL, NULL);
-    if(rcode) {
+    if (rcode) {
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server, APLOGNO(02126)
                      "Error: %d with WSAIoctl(SO_TLS_SET_FLAGS, SO_TLS_ENABLE)",
                      WSAGetLastError());
@@ -635,7 +635,7 @@ static const char *set_trusted_certs(cmd_parms *cmd, void *dummy, char *arg)
 {
     char **ptr = (char **)apr_array_push(certlist);
 
-    *ptr = apr_pstrdup(cmd->pool, arg);
+    *ptr = arg;
     return NULL;
 }
 
index e68e6d230df8bf504d6aa39458d071aec799bee8..746f16698d2133e9a01922fb55ecaa159e11c167 100644 (file)
@@ -1295,7 +1295,7 @@ const char *ssl_cmd_SSLRequire(cmd_parms *cmd,
     }
 
     require = apr_array_push(dc->aRequirement);
-    require->cpExpr = apr_pstrdup(cmd->pool, arg);
+    require->cpExpr = arg;
     require->mpExpr = info;
 
     return NULL;
index a70208aa41d4db0cf1683d47890121bab2e652ee..ef12f1aaac92ac58bf481a284f77dee81ce4c38b 100644 (file)
@@ -385,7 +385,7 @@ typedef enum {
  * Define the SSL requirement structure
  */
 typedef struct {
-    char           *cpExpr;
+    const char     *cpExpr;
     ap_expr_info_t *mpExpr;
 } ssl_require_t;