| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_DO_NOTHING_CT_VERIFIER_H_ | 5 #ifndef NET_CERT_DO_NOTHING_CT_VERIFIER_H_ |
| 6 #define NET_CERT_DO_NOTHING_CT_VERIFIER_H_ | 6 #define NET_CERT_DO_NOTHING_CT_VERIFIER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 #include "net/cert/ct_verifier.h" | 10 #include "net/cert/ct_verifier.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // expected that classes which expect a CTVerifier will require one to be | 43 // expected that classes which expect a CTVerifier will require one to be |
| 44 // supplied, forcing the caller to make an intentional and explicit decision | 44 // supplied, forcing the caller to make an intentional and explicit decision |
| 45 // about the appropriate security policy, rather than leaving it ambiguous, | 45 // about the appropriate security policy, rather than leaving it ambiguous, |
| 46 // such as via a nullptr. This class is intended to indicate an intentional | 46 // such as via a nullptr. This class is intended to indicate an intentional |
| 47 // consideration of CT, and a decision to not support it. | 47 // consideration of CT, and a decision to not support it. |
| 48 class NET_EXPORT DoNothingCTVerifier : public CTVerifier { | 48 class NET_EXPORT DoNothingCTVerifier : public CTVerifier { |
| 49 public: | 49 public: |
| 50 DoNothingCTVerifier(); | 50 DoNothingCTVerifier(); |
| 51 ~DoNothingCTVerifier() override; | 51 ~DoNothingCTVerifier() override; |
| 52 | 52 |
| 53 int Verify(X509Certificate* cert, | 53 void Verify(X509Certificate* cert, |
| 54 const std::string& stapled_ocsp_response, | 54 base::StringPiece stapled_ocsp_response, |
| 55 const std::string& sct_list_from_tls_extension, | 55 base::StringPiece sct_list_from_tls_extension, |
| 56 SignedCertificateTimestampAndStatusList* output_scts, | 56 SignedCertificateTimestampAndStatusList* output_scts, |
| 57 const NetLogWithSource& net_log) override; | 57 const NetLogWithSource& net_log) override; |
| 58 |
| 59 void SetObserver(Observer* observer) override; |
| 58 | 60 |
| 59 private: | 61 private: |
| 60 DISALLOW_COPY_AND_ASSIGN(DoNothingCTVerifier); | 62 DISALLOW_COPY_AND_ASSIGN(DoNothingCTVerifier); |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 } // namespace net | 65 } // namespace net |
| 64 | 66 |
| 65 #endif // NET_CERT_DO_NOTHING_CT_VERIFIER_H_ | 67 #endif // NET_CERT_DO_NOTHING_CT_VERIFIER_H_ |
| OLD | NEW |