]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3012 fix: deprecate sslBump and support ssl-bump spelling in http_port
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 14 Aug 2010 16:38:27 +0000 (10:38 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sat, 14 Aug 2010 16:38:27 +0000 (10:38 -0600)
Also adds depricated support for sslbump spelling that was previously
documented in squid.conf but not supported.

src/cache_cf.cc
src/cf.data.pre

index c8da2f07929085e9b3bec65c36627b5a585ff071..79309ba84ed2e1423ae84691ba3f34d5bdf5d1d9 100644 (file)
@@ -3300,7 +3300,11 @@ parse_http_port_option(http_port_list * s, char *token)
             t = strchr(t, ',');
         }
 #if USE_SSL
-    } else if (strcmp(token, "sslBump") == 0) {
+    } else if (strcasecmp(token, "sslBump") == 0) {
+        debugs(3, DBG_CRITICAL, "WARNING: '" << token << "' is deprecated " <<
+           "in http_port. Use 'ssl-bump' instead.");
+        s->sslBump = 1; // accelerated when bumped, otherwise not
+    } else if (strcmp(token, "ssl-bump") == 0) {
         s->sslBump = 1; // accelerated when bumped, otherwise not
     } else if (strncmp(token, "cert=", 5) == 0) {
         safe_free(s->cert);
index 6d213ea6d3ff095e619652dae1e4305eee2b1f0f..0d63f7903c86cd36eecc48e019f41e2fd0c61030 100644 (file)
@@ -1221,7 +1221,7 @@ DOC_START
           accel        Accelerator mode. Also needs at least one of
                        vhost / vport / defaultsite.
 
-          sslbump      Intercept each CONNECT request matching ssl_bump ACL,
+          ssl-bump     Intercept each CONNECT request matching ssl_bump ACL,
                        establish secure connection with the client and with
                        the server, decrypt HTTP messages as they pass through
                        Squid, and treat them as unencrypted HTTP messages,