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

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

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 #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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 }; 60 };
61 61
62 enum SignatureAlgorithm { 62 enum SignatureAlgorithm {
63 SIG_ALGO_ANONYMOUS = 0, 63 SIG_ALGO_ANONYMOUS = 0,
64 SIG_ALGO_RSA = 1, 64 SIG_ALGO_RSA = 1,
65 SIG_ALGO_DSA = 2, 65 SIG_ALGO_DSA = 2,
66 SIG_ALGO_ECDSA = 3 66 SIG_ALGO_ECDSA = 3
67 }; 67 };
68 68
69 DigitallySigned(); 69 DigitallySigned();
70 DigitallySigned(HashAlgorithm hash_algorithm,
71 SignatureAlgorithm signature_algorithm,
72 std::string signature_data);
70 ~DigitallySigned(); 73 ~DigitallySigned();
71 74
72 // Returns true if |other_hash_algorithm| and |other_signature_algorithm| 75 // Returns true if |other_hash_algorithm| and |other_signature_algorithm|
73 // match this DigitallySigned hash and signature algorithms. 76 // match this DigitallySigned hash and signature algorithms.
74 bool SignatureParametersMatch( 77 bool SignatureParametersMatch(
75 HashAlgorithm other_hash_algorithm, 78 HashAlgorithm other_hash_algorithm,
76 SignatureAlgorithm other_signature_algorithm) const; 79 SignatureAlgorithm other_signature_algorithm) const;
77 80
78 HashAlgorithm hash_algorithm; 81 HashAlgorithm hash_algorithm;
79 SignatureAlgorithm signature_algorithm; 82 SignatureAlgorithm signature_algorithm;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ~SignedCertificateTimestamp(); 133 ~SignedCertificateTimestamp();
131 134
132 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp); 135 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp);
133 }; 136 };
134 137
135 } // namespace ct 138 } // namespace ct
136 139
137 } // namespace net 140 } // namespace net
138 141
139 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ 142 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698