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

Unified Diff: net/cert/signed_certificate_timestamp.h

Issue 2824983002: Rename net::ct::LogEntry to SignedEntryData and clarify the comment. (Closed)
Patch Set: . Created 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698