summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2018-01-12 12:34:19 -0500
committerOz Linden <oz@lindenlab.com>2018-01-12 12:34:19 -0500
commit47257bb010ef91ddd43a822738d529d5437c83df (patch)
tree3b89672c266f6830a2b6ba873f3467a87e8b087f /indra/newview
parent6d647df714c324e5504310de2bab394b53f71bb9 (diff)
remove warnings for bad certificates (too scary), add info
for the rejected count
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llsechandler_basic.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llsechandler_basic.cpp b/indra/newview/llsechandler_basic.cpp
index ffb9aa1585..814cfde75d 100644
--- a/indra/newview/llsechandler_basic.cpp
+++ b/indra/newview/llsechandler_basic.cpp
@@ -574,6 +574,7 @@ LLBasicCertificateStore::LLBasicCertificateStore(const std::string& filename)
void LLBasicCertificateStore::load_from_file(const std::string& filename)
{
int loaded = 0;
+ int rejected = 0;
// scan the PEM file extracting each certificate
if (LLFile::isfile(filename))
@@ -606,11 +607,13 @@ void LLBasicCertificateStore::load_from_file(const std::string& filename)
catch (LLCertException& cert_exception)
{
LLSD cert_info(cert_exception.getCertData());
- LL_WARNS("SECAPI") << "invalid certificate (" << cert_exception.what() << "): " << cert_info << LL_ENDL;
+ LL_DEBUGS("SECAPI_BADCERT","SECAPI") << "invalid certificate (" << cert_exception.what() << "): " << cert_info << LL_ENDL;
+ rejected++;
}
catch (...)
{
LOG_UNHANDLED_EXCEPTION("creating certificate from the certificate store file");
+ rejected++;
}
X509_free(cert_x509);
cert_x509 = NULL;
@@ -622,7 +625,7 @@ void LLBasicCertificateStore::load_from_file(const std::string& filename)
LL_WARNS("SECAPI") << "BIO read failed for " << filename << LL_ENDL;
}
- LL_INFOS("SECAPI") << "loaded " << loaded << " certificates from " << filename << LL_ENDL;
+ LL_INFOS("SECAPI") << "loaded " << loaded << " good certificates (rejected " << rejected << ") from " << filename << LL_ENDL;
}
else
{