OLD | NEW |
---|---|
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_CT_VERIFIER_H_ | 5 #ifndef NET_CERT_CT_VERIFIER_H_ |
6 #define NET_CERT_CT_VERIFIER_H_ | 6 #define NET_CERT_CT_VERIFIER_H_ |
7 | 7 |
8 #include "net/base/net_export.h" | 8 #include "net/base/net_export.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
12 class BoundNetLog; | |
wtc
2013/11/27 16:00:58
Nit: move this to line 18, with the other forward
Eran M. (Google)
2013/11/27 22:08:50
Done.
| |
13 | |
12 namespace ct { | 14 namespace ct { |
13 struct CTVerifyResult; | 15 struct CTVerifyResult; |
14 } // namespace ct | 16 } // namespace ct |
15 | 17 |
16 class X509Certificate; | 18 class X509Certificate; |
17 | 19 |
18 // Interface for verifying Signed Certificate Timestamps over a certificate. | 20 // Interface for verifying Signed Certificate Timestamps over a certificate. |
19 class NET_EXPORT CTVerifier { | 21 class NET_EXPORT CTVerifier { |
20 public: | 22 public: |
21 virtual ~CTVerifier() {} | 23 virtual ~CTVerifier() {} |
22 | 24 |
23 // Verifies either embedded SCTs or SCTs obtained via the | 25 // Verifies either embedded SCTs or SCTs obtained via the |
24 // signed_certificate_timestamp TLS extension or OCSP on the given |cert| | 26 // signed_certificate_timestamp TLS extension or OCSP on the given |cert| |
25 // |result| will be filled with these SCTs, divided into categories based on | 27 // |result| will be filled with these SCTs, divided into categories based on |
26 // the verification result. | 28 // the verification result. |
27 virtual int Verify(X509Certificate* cert, | 29 virtual int Verify(X509Certificate* cert, |
28 const std::string& sct_list_from_ocsp, | 30 const std::string& sct_list_from_ocsp, |
29 const std::string& sct_list_from_tls_extension, | 31 const std::string& sct_list_from_tls_extension, |
30 ct::CTVerifyResult* result) = 0; | 32 ct::CTVerifyResult* result, |
33 const BoundNetLog& net_log) = 0; | |
wtc
2013/11/27 16:00:58
Nit: this may be OK. Please check whether |net_log
Eran M. (Google)
2013/11/27 22:08:50
It is the case for the CertVerifier (see ssl_clien
| |
31 }; | 34 }; |
32 | 35 |
33 } // namespace net | 36 } // namespace net |
34 | 37 |
35 #endif // NET_CERT_CT_VERIFIER_H_ | 38 #endif // NET_CERT_CT_VERIFIER_H_ |
OLD | NEW |