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

Side by Side Diff: net/cert/signed_tree_head.h

Issue 1845113003: Certificate Transparency: Start tracking logs' state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « net/cert/signed_certificate_timestamp.cc ('k') | net/cert/signed_tree_head.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef NET_CERT_SIGNED_TREE_HEAD_H_ 5 #ifndef NET_CERT_SIGNED_TREE_HEAD_H_
6 #define NET_CERT_SIGNED_TREE_HEAD_H_ 6 #define NET_CERT_SIGNED_TREE_HEAD_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <iosfwd> 10 #include <iosfwd>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 base::Time timestamp; 43 base::Time timestamp;
44 uint64_t tree_size; 44 uint64_t tree_size;
45 char sha256_root_hash[kSthRootHashLength]; 45 char sha256_root_hash[kSthRootHashLength];
46 DigitallySigned signature; 46 DigitallySigned signature;
47 47
48 // Added in RFC6962-bis, Appendix A. Needed to identify which log 48 // Added in RFC6962-bis, Appendix A. Needed to identify which log
49 // this STH belongs to. 49 // this STH belongs to.
50 std::string log_id; 50 std::string log_id;
51 }; 51 };
52 52
53 // Two STHs are considered equal if they are from the same log and have matching
54 // timestamps, since RFC6962 forbids a log from issuing two different STHs with
55 // the same timestamp.
56 NET_EXPORT bool operator==(const SignedTreeHead& sth1,
57 const SignedTreeHead& sth2);
58 NET_EXPORT bool operator!=(const SignedTreeHead& sth1,
59 const SignedTreeHead& sth2);
60
53 NET_EXPORT void PrintTo(const SignedTreeHead& sth, std::ostream* os); 61 NET_EXPORT void PrintTo(const SignedTreeHead& sth, std::ostream* os);
54 62
55 } // namespace ct 63 } // namespace ct
56 64
57 } // namespace net 65 } // namespace net
58 66
59 #endif 67 #endif // NET_CERT_SIGNED_TREE_HEAD_H_
OLDNEW
« no previous file with comments | « net/cert/signed_certificate_timestamp.cc ('k') | net/cert/signed_tree_head.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698