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

Unified Diff: net/cert/ct_known_logs.h

Issue 1888463003: DO NOT REVIEW: CT policy enforcement WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | net/cert/ct_known_logs.cc » ('j') | net/cert/ct_known_logs_static.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/ct_known_logs.h
diff --git a/net/cert/ct_known_logs.h b/net/cert/ct_known_logs.h
index 48904c2cc54771c4a0da73a8e9c622cc850222fe..22c2e8035a9b7703e5aa1bb79270465b57921c80 100644
--- a/net/cert/ct_known_logs.h
+++ b/net/cert/ct_known_logs.h
@@ -12,6 +12,10 @@
#include "build/build_config.h"
#include "net/base/net_export.h"
+namespace base {
+class Time;
+} // namespace base
+
namespace net {
class CTLogVerifier;
@@ -20,13 +24,23 @@ namespace ct {
#if !defined(OS_NACL)
// CreateLogVerifiersForKnownLogs returns a vector of CT logs for all the known
-// and trusted logs.
+// logs. This set includes logs that are presently qualified for inclusion and
+// logs which were previously qualifying, but have since been removed. To
+// determine the status of a given log, use |IsLogDisqualified()|.
NET_EXPORT std::vector<scoped_refptr<const CTLogVerifier>>
CreateLogVerifiersForKnownLogs();
#endif
NET_EXPORT bool IsLogOperatedByGoogle(base::StringPiece log_id);
+// Returns true if the CT log identified by |log_id| has been disqualified
+// from inclusion, and sets |*disqualification_date| to the date of
+// disqualification. Any SCTs which have embedded in certificates issued
+// after this date should not count towards any uniqueness/freshness
+// requirements.
+NET_EXPORT bool IsLogDisqualified(base::StringPiece log_id,
+ base::Time* disqualification_date);
+
} // namespace ct
} // namespace net
« no previous file with comments | « no previous file | net/cert/ct_known_logs.cc » ('j') | net/cert/ct_known_logs_static.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698