From: Christos Tsantilas Date: Fri, 18 Mar 2016 11:19:44 +0000 (+0200) Subject: minor polishing fixes X-Git-Tag: SQUID_4_0_13~5^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25d0ea14d3c6f6f60317f1670c59e6a2e21163da;p=thirdparty%2Fsquid.git minor polishing fixes --- diff --git a/src/ssl/PeerConnector.cc b/src/ssl/PeerConnector.cc index 3c49c5a5f7..28e105054f 100644 --- a/src/ssl/PeerConnector.cc +++ b/src/ssl/PeerConnector.cc @@ -654,8 +654,7 @@ Ssl::PeerConnector::certDownloadingDone(SBuf &obj, int downloadStatus) BIO *b = SSL_get_rbio(ssl); Ssl::ServerBio *srvBio = static_cast(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();