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

Unified Diff: net/cert/ct_verify_result.h

Issue 71633002: Convert SignedCertificateClass to be ref_counted, and add an SCTStore in which to store them. Add S… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: few lint fixes 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.cc ('k') | net/cert/sct_status_flags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/ct_verify_result.h
diff --git a/net/cert/ct_verify_result.h b/net/cert/ct_verify_result.h
index a9f1be3993d6fe29619457b8f713bf617f7c1a61..c938f9eaf7f97dd6978f0528c568e1a5a70d77bc 100644
--- a/net/cert/ct_verify_result.h
+++ b/net/cert/ct_verify_result.h
@@ -7,12 +7,15 @@
#include <vector>
+#include "base/memory/ref_counted.h"
#include "net/cert/signed_certificate_timestamp.h"
namespace net {
namespace ct {
+typedef std::vector<scoped_refptr<SignedCertificateTimestamp> > SCTList;
+
// XXX(rsleevi): Track more information for verified SCTs, such as each of
// the computed entry types (since both x509_cert and pre_cert are valid entry
// types during verification), as well as their respective Merkle leaf hashes
@@ -24,8 +27,8 @@ struct NET_EXPORT CTVerifyResult {
CTVerifyResult();
~CTVerifyResult();
- std::vector<SignedCertificateTimestamp> verified_scts;
- std::vector<SignedCertificateTimestamp> unverified_scts;
+ SCTList verified_scts;
+ SCTList unverified_scts;
};
} // namespace ct
« no previous file with comments | « net/cert/ct_serialization.cc ('k') | net/cert/sct_status_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698