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

Unified Diff: net/cert/ct_verifier.h

Issue 27026002: CT: Adding preliminary Certificate Transparency support to Chromium. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Distinguish between SCTs from unknown logs and unverified ones 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_serialization_unittest.cc ('k') | net/cert/ct_verify_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..808914e385dbe1e2fe6e471264ac691151e6166f
--- /dev/null
+++ b/net/cert/ct_verifier.h
@@ -0,0 +1,34 @@
+// Copyright (c) 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/completion_callback.h"
+#include "net/base/net_export.h"
+
+namespace net {
+
+namespace ct {
+struct CTVerifyResult;
+} // namespace ct
+
+class BoundNetLog;
+class X509Certificate;
+
+class NET_EXPORT CTVerifier {
+ public:
+ virtual ~CTVerifier() {}
+
+ virtual int Verify(X509Certificate* server_cert,
+ X509Certificate* verified_cert,
+ ct::CTVerifyResult* result,
+ const CompletionCallback& callback,
+ const BoundNetLog& net_log) = 0;
+
+};
+
+} // namespace net
+
+#endif // NET_CERT_CT_VERIFIER_H_
« no previous file with comments | « net/cert/ct_serialization_unittest.cc ('k') | net/cert/ct_verify_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698