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

Unified Diff: net/cert/multi_log_ct_verifier.h

Issue 1216153010: Certificate Transparency: Add observer for Signed Certificate Timestamps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nits Created 5 years, 6 months 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/cert/multi_log_ct_verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/multi_log_ct_verifier.h
diff --git a/net/cert/multi_log_ct_verifier.h b/net/cert/multi_log_ct_verifier.h
index b18b680a08a9a88e18f4e557b517bb888186bf66..4546606112d305044a34d71e01abb0bf92fe8685 100644
--- a/net/cert/multi_log_ct_verifier.h
+++ b/net/cert/multi_log_ct_verifier.h
@@ -40,6 +40,8 @@ class NET_EXPORT MultiLogCTVerifier : public CTVerifier {
ct::CTVerifyResult* result,
const BoundNetLog& net_log) override;
+ void SetObserver(Observer* observer) override;
+
private:
// Verify a list of SCTs from |encoded_sct_list| over |expected_entry|,
// placing the verification results in |result|. The SCTs in the list
@@ -47,19 +49,22 @@ class NET_EXPORT MultiLogCTVerifier : public CTVerifier {
bool VerifySCTs(const std::string& encoded_sct_list,
const ct::LogEntry& expected_entry,
ct::SignedCertificateTimestamp::Origin origin,
+ X509Certificate* cert,
ct::CTVerifyResult* result);
// Verifies a single, parsed SCT against all logs.
- bool VerifySingleSCT(
- scoped_refptr<ct::SignedCertificateTimestamp> sct,
- const ct::LogEntry& expected_entry,
- ct::CTVerifyResult* result);
+ bool VerifySingleSCT(scoped_refptr<ct::SignedCertificateTimestamp> sct,
+ const ct::LogEntry& expected_entry,
+ X509Certificate* cert,
+ ct::CTVerifyResult* result);
// Mapping from a log's ID to the verifier for this log.
// A log's ID is the SHA-256 of the log's key, as defined in section 3.2.
// of RFC6962.
std::map<std::string, scoped_refptr<CTLogVerifier>> logs_;
+ Observer* observer_;
+
DISALLOW_COPY_AND_ASSIGN(MultiLogCTVerifier);
};
« no previous file with comments | « net/cert/ct_verifier.h ('k') | net/cert/multi_log_ct_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698