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

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

Issue 230713002: Certificate Transparency: Parse Signed Tree Heads and validate them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing more of Ryan's comments Created 6 years, 7 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
« no previous file with comments | « net/cert/signed_certificate_timestamp.h ('k') | net/cert/signed_tree_head.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 void LogEntry::Reset() { 82 void LogEntry::Reset() {
83 type = LogEntry::LOG_ENTRY_TYPE_X509; 83 type = LogEntry::LOG_ENTRY_TYPE_X509;
84 leaf_certificate.clear(); 84 leaf_certificate.clear();
85 tbs_certificate.clear(); 85 tbs_certificate.clear();
86 } 86 }
87 87
88 DigitallySigned::DigitallySigned() {} 88 DigitallySigned::DigitallySigned() {}
89 89
90 DigitallySigned::~DigitallySigned() {} 90 DigitallySigned::~DigitallySigned() {}
91 91
92 bool DigitallySigned::SignatureParametersMatch(
93 HashAlgorithm other_hash_algorithm,
94 SignatureAlgorithm other_signature_algorithm) const {
95 return (hash_algorithm == other_hash_algorithm) &&
96 (signature_algorithm == other_signature_algorithm);
97 }
92 } // namespace ct 98 } // namespace ct
93 99
94 } // namespace net 100 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/signed_certificate_timestamp.h ('k') | net/cert/signed_tree_head.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698