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

Unified Diff: net/cert/ct_verify_result.h

Issue 2225223002: Certificate Transparency: Change CTVerifyResult to have a single list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: net/cert/ct_verify_result.h
diff --git a/net/cert/ct_verify_result.h b/net/cert/ct_verify_result.h
index ca163580d739be120956dad667d286db801e51d5..dd7c6cf30b11fcd2a7f6dffbfce583fecb821ba5 100644
--- a/net/cert/ct_verify_result.h
+++ b/net/cert/ct_verify_result.h
@@ -7,8 +7,9 @@
#include <vector>
+#include "net/base/net_export.h"
#include "net/cert/ct_policy_enforcer.h"
-#include "net/cert/signed_certificate_timestamp.h"
+#include "net/cert/signed_certificate_timestamp_and_status.h"
namespace net {
@@ -27,12 +28,8 @@ struct NET_EXPORT CTVerifyResult {
CTVerifyResult(const CTVerifyResult& other);
~CTVerifyResult();
- // SCTs from known logs where the signature verified correctly.
- SCTList verified_scts;
- // SCTs from known logs where the signature failed to verify.
- SCTList invalid_scts;
- // SCTs from unknown logs and as such are unverifiable.
- SCTList unknown_logs_scts;
+ // All SCTs and their statuses
+ SignedCertificateTimestampAndStatusList scts;
// True if any CT policies were applied on this connection.
bool ct_policies_applied;
@@ -44,6 +41,12 @@ struct NET_EXPORT CTVerifyResult {
EVPolicyCompliance ev_policy_compliance;
};
+// Return a list of SCTs from |sct_and_status_list| whose status matches
+// |match_status|.
+SCTList NET_EXPORT SCTsMatchingStatus(
+ const SignedCertificateTimestampAndStatusList& sct_and_status_list,
+ SCTVerifyStatus match_status);
+
} // namespace ct
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698