]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorSource Maintenance <squidadm@squid-cache.org>
Thu, 9 Jul 2015 18:12:08 +0000 (18:12 +0000)
committerSource Maintenance <squidadm@squid-cache.org>
Thu, 9 Jul 2015 18:12:08 +0000 (18:12 +0000)
src/ssl/PeerConnector.cc
src/ssl/certificate_db.cc

index 1bfaac7973397677f748f1d9ffb5483fa57b68e6..87689b9c9c53f09629a20dd0c6837ef4f40ac2b4 100644 (file)
@@ -850,4 +850,3 @@ Ssl::PeekingPeerConnector::serverCertificateVerified()
     }
 }
 
-
index 4c4d6075bae3a469b173b9a50e4efb6b706f9e73..fc2cf6197bec3b9572bad892d61f517e50e7cbc2 100644 (file)
@@ -322,8 +322,8 @@ bool Ssl::CertificateDb::addCertAndPrivateKey(Ssl::X509_Pointer & cert, Ssl::EVP
     // check db size while trying to minimize calls to size()
     size_t dbSize = size();
     if ((dbSize == 0 && hasRows()) ||
-        (dbSize > 0 && !hasRows()) ||
-        (dbSize >  10 * max_db_size)) {
+            (dbSize > 0 && !hasRows()) ||
+            (dbSize >  10 * max_db_size)) {
         // Invalid database size, rebuild
         dbSize = rebuildSize();
     }
@@ -332,7 +332,7 @@ bool Ssl::CertificateDb::addCertAndPrivateKey(Ssl::X509_Pointer & cert, Ssl::EVP
         // and try to find another invalid certificate if needed
     }
     // there are no more invalid ones, but there must be valid certificates
-    while (dbSize > max_db_size){
+    while (dbSize > max_db_size) {
         if (!deleteOldestCertificate()) {
             rebuildSize(); // No certificates in database.Update the size file.
             save(); // Some entries may have been removed. Update the index file.