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

Side by Side Diff: net/cert/signed_certificate_timestamp.cc

Issue 1772603002: Addition of Certificate Transparency details to Security panel of DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/cert/signed_certificate_timestamp.h" 5 #include "net/cert/signed_certificate_timestamp.h"
6 6
7 #include "base/pickle.h" 7 #include "base/pickle.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 LogEntry::~LogEntry() {} 82 LogEntry::~LogEntry() {}
83 83
84 void LogEntry::Reset() { 84 void LogEntry::Reset() {
85 type = LogEntry::LOG_ENTRY_TYPE_X509; 85 type = LogEntry::LOG_ENTRY_TYPE_X509;
86 leaf_certificate.clear(); 86 leaf_certificate.clear();
87 tbs_certificate.clear(); 87 tbs_certificate.clear();
88 } 88 }
89 89
90 DigitallySigned::DigitallySigned() {} 90 DigitallySigned::DigitallySigned() {}
91 91
92 DigitallySigned::DigitallySigned(HashAlgorithm hash_algorithm,
93 SignatureAlgorithm signature_algorithm,
94 std::string signature_data)
95 : hash_algorithm(hash_algorithm),
96 signature_algorithm(signature_algorithm),
97 signature_data(signature_data) {}
98
92 DigitallySigned::~DigitallySigned() {} 99 DigitallySigned::~DigitallySigned() {}
93 100
94 bool DigitallySigned::SignatureParametersMatch( 101 bool DigitallySigned::SignatureParametersMatch(
95 HashAlgorithm other_hash_algorithm, 102 HashAlgorithm other_hash_algorithm,
96 SignatureAlgorithm other_signature_algorithm) const { 103 SignatureAlgorithm other_signature_algorithm) const {
97 return (hash_algorithm == other_hash_algorithm) && 104 return (hash_algorithm == other_hash_algorithm) &&
98 (signature_algorithm == other_signature_algorithm); 105 (signature_algorithm == other_signature_algorithm);
99 } 106 }
100 } // namespace ct 107 } // namespace ct
101 108
102 } // namespace net 109 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698