]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
minor polishing fixes
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 18 Mar 2016 11:19:44 +0000 (13:19 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 18 Mar 2016 11:19:44 +0000 (13:19 +0200)
src/ssl/PeerConnector.cc

index 3c49c5a5f73819e201ed5a30cb417c00fa173b62..28e105054fec9bc5c5ab4265925f03a20a9a6a8e 100644 (file)
@@ -654,8 +654,7 @@ Ssl::PeerConnector::certDownloadingDone(SBuf &obj, int downloadStatus)
     BIO *b = SSL_get_rbio(ssl);
     Ssl::ServerBio *srvBio = static_cast<Ssl::ServerBio *>(b->ptr);
 
-    // Parse Certificate. Assume that it is in DER format. Probably we
-    // should handle PEM or other formats too
+    // Parse Certificate. Assume that it is in DER format.
     const unsigned char *raw = (const unsigned char*)obj.rawContent();
     if (X509 *cert = d2i_X509(NULL, &raw, obj.length())) {
         char buffer[1024];
@@ -667,7 +666,7 @@ Ssl::PeerConnector::certDownloadingDone(SBuf &obj, int downloadStatus)
         Ssl::SSL_add_untrusted_cert(ssl, cert);
     }
 
-    // Check if has uri to donwload and add it to urlsOfMissingCerts
+    // Check if has uri to download from and if yes add it to urlsOfMissingCerts
     if (urlsOfMissingCerts.size() && certsDownloads <= MaxCertsDownloads) {
         startCertDownloading(urlsOfMissingCerts.front());
         urlsOfMissingCerts.pop();