OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_CERT_CT_VERIFIER_H_ |
| 6 #define NET_CERT_CT_VERIFIER_H_ |
| 7 |
| 8 #include "net/base/completion_callback.h" |
| 9 #include "net/base/net_export.h" |
| 10 |
| 11 namespace net { |
| 12 |
| 13 namespace ct { |
| 14 struct CTVerifyResult; |
| 15 } // namespace ct |
| 16 |
| 17 class BoundNetLog; |
| 18 class X509Certificate; |
| 19 |
| 20 // High-level interface for verifying Signed Certificate Timestamps |
| 21 // over a certificate. |
| 22 class NET_EXPORT CTVerifier { |
| 23 public: |
| 24 virtual ~CTVerifier() {} |
| 25 |
| 26 // Verifies either embedded SCTs or SCTs obtained via TLS handshake/ |
| 27 // OCSP stapling on the given |verified_cert| |
| 28 // |result| will be filled with these SCTs, divided into categories based on |
| 29 // the verification result. |
| 30 virtual int Verify(X509Certificate* verified_cert, |
| 31 const std::string& sct_list_from_ocsp, |
| 32 const std::string& sct_list_from_tls_handshake, |
| 33 ct::CTVerifyResult* result, |
| 34 const CompletionCallback& callback, |
| 35 const BoundNetLog& net_log) = 0; |
| 36 |
| 37 }; |
| 38 |
| 39 } // namespace net |
| 40 |
| 41 #endif // NET_CERT_CT_VERIFIER_H_ |
OLD | NEW |