]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Polish: warn on every ssl-bump disable, with port details
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 16 Aug 2011 00:01:21 +0000 (18:01 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 16 Aug 2011 00:01:21 +0000 (18:01 -0600)
src/client_side.cc

index 66108570869e037769a364979e4e5717879da2b0..0ef0442094db19033305cfc443b945e38de56267 100644 (file)
@@ -3605,9 +3605,6 @@ static void
 clientHttpConnectionsOpen(void)
 {
     http_port_list *s = NULL;
-#if USE_SSL
-    int bumpCount = 0; // counts http_ports with sslBump option
-#endif
 
     for (s = Config.Sockaddr.http; s; s = s->next) {
         if (MAXHTTPPORTS == NHttpSockets) {
@@ -3617,14 +3614,16 @@ clientHttpConnectionsOpen(void)
         }
 
 #if USE_SSL
-        if (s->sslBump &&
-                !s->staticSslContext && !s->generateHostCertificates) {
-            debugs(1, 1, "Will not bump SSL at http_port " <<
-                   s->http.s << " due to SSL initialization failure.");
+        if (s->sslBump && !Config.accessList.ssl_bump) {
+            debugs(33, DBG_IMPORTANT, "WARNING: No ssl_bump configured. Disabling ssl-bump on " << s->protocol << "_port " << s->http.s);
+            s->sslBump = 0;
+        }
+
+        if (s->sslBump && !s->staticSslContext && !s->generateHostCertificates) {
+            debugs(1, DBG_IMPORTANT, "Will not bump SSL at http_port " << s->http.s << " due to SSL initialization failure.");
             s->sslBump = 0;
         }
         if (s->sslBump) {
-            ++bumpCount;
             // Create ssl_ctx cache for this port.
             Ssl::TheGlobalContextStorage.addLocalStorage(s->s, s->dynamicCertMemCacheSize == std::numeric_limits<size_t>::max() ? 4194304 : s->dynamicCertMemCacheSize);
         }
@@ -3647,13 +3646,6 @@ clientHttpConnectionsOpen(void)
 
         HttpSockets[NHttpSockets++] = -1; // set in clientListenerConnectionOpened
     }
-
-#if USE_SSL
-    if (bumpCount && !Config.accessList.ssl_bump)
-        debugs(33, 1, "WARNING: http_port(s) with SslBump found, but no " <<
-               std::endl << "\tssl_bump ACL configured. No requests will be " <<
-               "bumped.");
-#endif
 }
 
 #if USE_SSL