Index: net/test/ct_test_util.cc |
diff --git a/net/test/ct_test_util.cc b/net/test/ct_test_util.cc |
index 4e95e190daec1888cc1c252e74dbf2d85204984a..ed78a9d926a59a014fb3fd0678bb5955be1a4cd4 100644 |
--- a/net/test/ct_test_util.cc |
+++ b/net/test/ct_test_util.cc |
@@ -115,8 +115,8 @@ const char kFakeOCSPResponse[] = |
"74300d06092a864886f70d0101050500038181003586ffcf0794e64eb643d52a3d570a1c93" |
"836395986a2f792dd4e9c70b05161186c55c1658e0607dc9ec0d0924ac37fb99506c870579" |
"634be1de62ba2fced5f61f3b428f959fcee9bddf6f268c8e14c14fdf3b447786e638a5c8cc" |
- "b610893df17a60e4cff30f4780aeffe0086ef19910f0d9cd7414bc93d1945686f88ad0a3c3" |
- ; |
+ "b610893df17a60e4cff30f4780aeffe0086ef19910f0d9cd7414bc93d1945686f88ad0a3c" |
+ "3"; |
const char kFakeOCSPResponseCert[] = |
"3082022930820192a003020102021001aef99bdee0bb58c6f2b816bc3ae02f300d06092a86" |
@@ -151,7 +151,6 @@ const char kFakeOCSPResponseIssuerCert[] = |
"3ea1e11df2ccb357a5fed5220f9c6239e8946b9b7517707631d51ab996833d58a022cff5a6" |
"2169ac9258ec110efee78da9ab4a641e3b3c9ee5e8bd291460"; |
- |
const char kFakeOCSPExtensionValue[] = "74657374"; // "test" |
} // namespace |
@@ -161,7 +160,9 @@ void GetX509CertLogEntry(LogEntry* entry) { |
entry->leaf_certificate = HexToBytes(kDefaultDerCert); |
} |
-std::string GetDerEncodedX509Cert() { return HexToBytes(kDefaultDerCert); } |
+std::string GetDerEncodedX509Cert() { |
+ return HexToBytes(kDefaultDerCert); |
+} |
void GetPrecertLogEntry(LogEntry* entry) { |
entry->type = ct::LogEntry::LOG_ENTRY_TYPE_PRECERT; |
@@ -189,13 +190,13 @@ std::string GetTestPublicKeyId() { |
void GetX509CertSCT(scoped_refptr<SignedCertificateTimestamp>* sct_ref) { |
CHECK(sct_ref != NULL); |
*sct_ref = new SignedCertificateTimestamp(); |
- SignedCertificateTimestamp *const sct(sct_ref->get()); |
+ SignedCertificateTimestamp* const sct(sct_ref->get()); |
sct->version = ct::SignedCertificateTimestamp::SCT_VERSION_1; |
sct->log_id = HexToBytes(kTestKeyId); |
// Time the log issued a SCT for this certificate, which is |
// Fri Apr 5 10:04:16.089 2013 |
sct->timestamp = base::Time::UnixEpoch() + |
- base::TimeDelta::FromMilliseconds(GG_INT64_C(1365181456089)); |
+ base::TimeDelta::FromMilliseconds(GG_INT64_C(1365181456089)); |
sct->extensions.clear(); |
sct->signature.hash_algorithm = ct::DigitallySigned::HASH_ALGO_SHA256; |
@@ -206,13 +207,13 @@ void GetX509CertSCT(scoped_refptr<SignedCertificateTimestamp>* sct_ref) { |
void GetPrecertSCT(scoped_refptr<SignedCertificateTimestamp>* sct_ref) { |
CHECK(sct_ref != NULL); |
*sct_ref = new SignedCertificateTimestamp(); |
- SignedCertificateTimestamp *const sct(sct_ref->get()); |
+ SignedCertificateTimestamp* const sct(sct_ref->get()); |
sct->version = ct::SignedCertificateTimestamp::SCT_VERSION_1; |
sct->log_id = HexToBytes(kTestKeyId); |
// Time the log issued a SCT for this Precertificate, which is |
// Fri Apr 5 10:04:16.275 2013 |
sct->timestamp = base::Time::UnixEpoch() + |
- base::TimeDelta::FromMilliseconds(GG_INT64_C(1365181456275)); |
+ base::TimeDelta::FromMilliseconds(GG_INT64_C(1365181456275)); |
sct->extensions.clear(); |
sct->signature.hash_algorithm = ct::DigitallySigned::HASH_ALGO_SHA256; |
@@ -225,7 +226,7 @@ std::string GetDefaultIssuerKeyHash() { |
} |
std::string GetDerEncodedFakeOCSPResponse() { |
-return HexToBytes(kFakeOCSPResponse); |
+ return HexToBytes(kFakeOCSPResponse); |
} |
std::string GetFakeOCSPExtensionValue() { |