]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorSource Maintenance <squidadm@squid-cache.org>
Sun, 11 Oct 2015 18:12:00 +0000 (18:12 +0000)
committerSource Maintenance <squidadm@squid-cache.org>
Sun, 11 Oct 2015 18:12:00 +0000 (18:12 +0000)
src/format/Format.cc
src/security/ServerOptions.h
src/tests/stub_libsecurity.cc

index 1bf619dfe71d44880259063d973b8808a43f1fa1..44b1e878f68df8d5c24d7c66bee24ec007b77b0b 100644 (file)
@@ -1020,13 +1020,13 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
             break;
 
         case LFT_REQUEST_METHOD:
-            {
-                const SBuf s(al->getLogMethod());
-                sb.append(s.rawContent(), s.length());
-                out = sb.termedBuf();
-                quote = 1;
-            }
-            break;
+        {
+            const SBuf s(al->getLogMethod());
+            sb.append(s.rawContent(), s.length());
+            out = sb.termedBuf();
+            quote = 1;
+        }
+        break;
 
         case LFT_REQUEST_URI:
             out = al->url;
@@ -1168,7 +1168,7 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
             // for Ssl::bumpEnd, Ssl::bumpMode() returns NULL and we log '-'
             out = Ssl::bumpMode(mode);
         }
-            break;
+        break;
 
         case LFT_EXT_ACL_USER_CERT_RAW:
             if (al->request) {
@@ -1205,7 +1205,7 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
                 ConnStateData *conn = al->request->clientConnectionManager.get();
                 if (conn != NULL && Comm::IsConnOpen(conn->clientConnection)) {
                     if (SSL *ssl = fd_table[conn->clientConnection->fd].ssl)
-                       out = sslGetCAAttribute(ssl, format->data.header.header);
+                        out = sslGetCAAttribute(ssl, format->data.header.header);
                 }
             }
             break;
@@ -1381,7 +1381,8 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
                     newout = mbq.content();
                     mbq.stolen = 1;
                     newfree = 1;
-                    } break;
+                }
+                break;
 
                 case LOG_QUOTE_RAW:
                     break;
index 9c09ea21f5ef896f8a4fa86e85cb4a948394218e..e60566d63d10c78c03f865903b7f9977b7ef2449 100644 (file)
@@ -46,3 +46,4 @@ private:
 } // namespace Security
 
 #endif /* SQUID_SRC_SECURITY_SERVEROPTIONS_H */
+
index 2dd6a4be2323a31263048dcadd4d8321d4c3f1f5..72286b770f9bd37eb01d2be1a8cb54a4b0b5216a 100644 (file)
@@ -33,3 +33,4 @@ void parse_securePeerOptions(Security::PeerOptions *) STUB
 void Security::ServerOptions::parse(const char *) STUB
 void Security::ServerOptions::dumpCfg(Packable *, const char *) const STUB
 void Security::ServerOptions::updateContextEecdh(Security::ContextPointer &) STUB
+