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

Unified Diff: net/cert/signed_certificate_timestamp.cc

Issue 2337983006: Initialize SCT fields. (Closed)
Patch Set: Created 4 years, 3 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.cc
diff --git a/net/cert/signed_certificate_timestamp.cc b/net/cert/signed_certificate_timestamp.cc
index f5f9c946481ead42932d80b107b4d79445daf856..489c88c6c1941bd568772fa2ad80ec66d3b54967 100644
--- a/net/cert/signed_certificate_timestamp.cc
+++ b/net/cert/signed_certificate_timestamp.cc
@@ -28,7 +28,8 @@ bool SignedCertificateTimestamp::LessThan::operator()(
return lhs->version < rhs->version;
}
-SignedCertificateTimestamp::SignedCertificateTimestamp() {}
+SignedCertificateTimestamp::SignedCertificateTimestamp()
+ : version(V1), origin(SCT_EMBEDDED) {}
SignedCertificateTimestamp::~SignedCertificateTimestamp() {}
@@ -77,7 +78,7 @@ SignedCertificateTimestamp::CreateFromPickle(base::PickleIterator* iter) {
return sct;
}
-LogEntry::LogEntry() {}
+LogEntry::LogEntry() : type(LOG_ENTRY_TYPE_X509) {}
LogEntry::~LogEntry() {}
@@ -87,7 +88,8 @@ void LogEntry::Reset() {
tbs_certificate.clear();
}
-DigitallySigned::DigitallySigned() {}
+DigitallySigned::DigitallySigned()
+ : hash_algorithm(HASH_ALGO_NONE), signature_algorithm(SIG_ALGO_ANONYMOUS) {}
DigitallySigned::~DigitallySigned() {}
« 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