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

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

Issue 230713002: Certificate Transparency: Parse Signed Tree Heads and validate them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging with master 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
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 #ifndef NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ 5 #ifndef NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_
6 #define NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ 6 #define NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 enum SignatureAlgorithm { 59 enum SignatureAlgorithm {
60 SIG_ALGO_ANONYMOUS = 0, 60 SIG_ALGO_ANONYMOUS = 0,
61 SIG_ALGO_RSA = 1, 61 SIG_ALGO_RSA = 1,
62 SIG_ALGO_DSA = 2, 62 SIG_ALGO_DSA = 2,
63 SIG_ALGO_ECDSA = 3 63 SIG_ALGO_ECDSA = 3
64 }; 64 };
65 65
66 DigitallySigned(); 66 DigitallySigned();
67 ~DigitallySigned(); 67 ~DigitallySigned();
68 bool SignatureParametersMatch(
Ryan Sleevi 2014/05/08 01:11:54 nit: newline nit: Document
Eran Messeri 2014/05/12 20:33:55 Done and Done.
69 HashAlgorithm other_hash_algorithm,
70 SignatureAlgorithm other_signature_algorithm) const;
68 71
69 HashAlgorithm hash_algorithm; 72 HashAlgorithm hash_algorithm;
70 SignatureAlgorithm signature_algorithm; 73 SignatureAlgorithm signature_algorithm;
71 // 'signature' field. 74 // 'signature' field.
72 std::string signature_data; 75 std::string signature_data;
73 }; 76 };
74 77
75 // SignedCertificateTimestamp struct in RFC 6962, Section 3.2. 78 // SignedCertificateTimestamp struct in RFC 6962, Section 3.2.
76 struct NET_EXPORT SignedCertificateTimestamp 79 struct NET_EXPORT SignedCertificateTimestamp
77 : public base::RefCountedThreadSafe<SignedCertificateTimestamp> { 80 : public base::RefCountedThreadSafe<SignedCertificateTimestamp> {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ~SignedCertificateTimestamp(); 126 ~SignedCertificateTimestamp();
124 127
125 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp); 128 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp);
126 }; 129 };
127 130
128 } // namespace ct 131 } // namespace ct
129 132
130 } // namespace net 133 } // namespace net
131 134
132 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ 135 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698