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

Unified Diff: net/cert/ct_verifier.h

Issue 67513008: Certificate Transparency: Add the high-level interface for verifying SCTs over multiple logs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merging with master 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
Index: net/cert/ct_verifier.h
diff --git a/net/cert/ct_verifier.h b/net/cert/ct_verifier.h
new file mode 100644
index 0000000000000000000000000000000000000000..56685b8fe9a4da66cf0c99358614b1a39547fb6c
--- /dev/null
+++ b/net/cert/ct_verifier.h
@@ -0,0 +1,36 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_CERT_CT_VERIFIER_H_
+#define NET_CERT_CT_VERIFIER_H_
+
+#include "net/base/net_export.h"
+
+namespace net {
+
+namespace ct {
+struct CTVerifyResult;
+} // namespace ct
+
+class X509Certificate;
+
+// Interface for verifying Signed Certificate Timestamps over a certificate.
+class NET_EXPORT CTVerifier {
+ public:
+ virtual ~CTVerifier() {}
+
+ // Verifies either embedded SCTs or SCTs obtained via the
+ // signed_certificate_timestamp TLS extension or OCSP on the given |cert|
+ // |result| will be filled with these SCTs, divided into categories based on
+ // the verification result.
+ virtual int Verify(X509Certificate* cert,
+ const std::string& sct_list_from_ocsp,
+ const std::string& sct_list_from_tls_extension,
+ ct::CTVerifyResult* result) = 0;
+
+};
+
+} // namespace net
+
+#endif // NET_CERT_CT_VERIFIER_H_

Powered by Google App Engine
This is Rietveld 408576698