Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: net/cert/multi_log_ct_verifier.cc

Issue 76443006: Certificate Transparency: Threading the CT verifier into the SSL client socket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Follow-up Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/ct_verifier.h ('k') | net/http/http_network_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/multi_log_ct_verifier.cc
diff --git a/net/cert/multi_log_ct_verifier.cc b/net/cert/multi_log_ct_verifier.cc
index 5a19546f4f8991bd94361f4b4d3f17eb49287584..e88c21946bbe4404864f4f31fbfeb9e80c3a28ae 100644
--- a/net/cert/multi_log_ct_verifier.cc
+++ b/net/cert/multi_log_ct_verifier.cc
@@ -61,7 +61,7 @@ int MultiLogCTVerifier::Verify(
ct::LogEntry x509_entry;
if (!ct::GetX509LogEntry(cert->os_cert_handle(), &x509_entry))
- return has_verified_scts ? OK : ERR_FAILED;
+ return has_verified_scts ? OK : ERR_CT_LOG_ENTRY_CREATION_FAILED;
has_verified_scts |= VerifySCTs(
sct_list_from_ocsp,
@@ -78,7 +78,7 @@ int MultiLogCTVerifier::Verify(
if (has_verified_scts)
return OK;
- return ERR_FAILED;
+ return ERR_NO_SCTS_VERIFIED_OK;
}
bool MultiLogCTVerifier::VerifySCTs(
@@ -119,7 +119,6 @@ bool MultiLogCTVerifier::VerifySingleSCT(
ct::CTVerifyResult* result) {
// Assume this SCT is untrusted until proven otherwise.
-
IDToLogMap::iterator it = logs_.find(sct->log_id);
if (it == logs_.end()) {
DVLOG(1) << "SCT does not match any known log.";
« no previous file with comments | « net/cert/ct_verifier.h ('k') | net/http/http_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698