Index: net/cert/signed_certificate_timestamp.h |
diff --git a/net/cert/signed_certificate_timestamp.h b/net/cert/signed_certificate_timestamp.h |
index 96eded2c54bd95abf7738f275c0fa9904129e513..abccf782fb89b7f0960c9bea31e9e31ae8432f60 100644 |
--- a/net/cert/signed_certificate_timestamp.h |
+++ b/net/cert/signed_certificate_timestamp.h |
@@ -24,7 +24,12 @@ namespace net { |
// Structures related to Certificate Transparency (RFC6962). |
namespace ct { |
-// LogEntry struct in RFC 6962, Section 3.1 |
+// Similar to LogEntry struct in RFC 6962, Section 3.1, with the following |
+// differences: |
+// 1. Only contains end-entities, no chains. |
+// 2. Instead of a Precertificate, it contains a PreCert(from Section 3.2). |
+// (Precertificate = Certificate with poison extension |
+// PreCert = issuer_key_hash + TBSCertificate without poison extension) |
Ryan Sleevi
2017/04/18 14:53:29
Right, this is actually the signed_entry of an SCT
Eran Messeri
2017/04/19 10:42:07
Nit: The precertificate isn't being verified - it
mattm
2017/04/21 21:12:15
Done.
|
struct NET_EXPORT LogEntry { |
// LogEntryType enum in RFC 6962, Section 3.1 |
enum Type { |
@@ -41,6 +46,7 @@ struct NET_EXPORT LogEntry { |
// Set if type == LOG_ENTRY_TYPE_X509 |
std::string leaf_certificate; |
+ // PreCert struct in RFC 6962, Section 3.2. |
// Set if type == LOG_ENTRY_TYPE_PRECERT |
SHA256HashValue issuer_key_hash; |
std::string tbs_certificate; |