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

Unified Diff: net/cert/ct_verify_result.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_verify_result.h
diff --git a/net/cert/ct_verify_result.h b/net/cert/ct_verify_result.h
new file mode 100644
index 0000000000000000000000000000000000000000..ac0a74bd9da5b87f48e55296170fac62e53fd4ea
--- /dev/null
+++ b/net/cert/ct_verify_result.h
@@ -0,0 +1,37 @@
+// 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_VERIFY_RESULT_H_
+#define NET_CERT_CT_VERIFY_RESULT_H_
+
+#include <vector>
+
+#include "net/cert/signed_certificate_timestamp.h"
+
+namespace net {
+
+namespace ct {
+
+typedef std::vector<scoped_refptr<SignedCertificateTimestamp> > SCTList;
+
+// Holds Signed Certificate Timestamps, depending on their verification results.
+// More information could be tracked here about SCTs, but for the current UI
+// this categorization is enough.
+struct NET_EXPORT CTVerifyResult {
+ CTVerifyResult();
+ ~CTVerifyResult();
+
+ // SCTs from known logs where the signature verified correctly.
+ SCTList verified_scts;
+ // SCTs from known logs where the signature failed to verify.
+ SCTList unverified_scts;
+ // SCTs from unknown logs.
+ SCTList unknown_logs_scts;
+};
+
+} // namespace ct
+
+} // namespace net
+
+#endif // NET_CERT_CT_VERIFY_RESULT_H_

Powered by Google App Engine
This is Rietveld 408576698