| 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 #include "net/cert/do_nothing_ct_verifier.h" | 5 #include "net/cert/do_nothing_ct_verifier.h" |
| 6 | 6 |
| 7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| 11 DoNothingCTVerifier::DoNothingCTVerifier() = default; | 11 DoNothingCTVerifier::DoNothingCTVerifier() = default; |
| 12 DoNothingCTVerifier::~DoNothingCTVerifier() = default; | 12 DoNothingCTVerifier::~DoNothingCTVerifier() = default; |
| 13 | 13 |
| 14 int DoNothingCTVerifier::Verify( | 14 void DoNothingCTVerifier::Verify( |
| 15 X509Certificate* cert, | 15 X509Certificate* cert, |
| 16 const std::string& stapled_ocsp_response, | 16 base::StringPiece stapled_ocsp_response, |
| 17 const std::string& sct_list_from_tls_extension, | 17 base::StringPiece sct_list_from_tls_extension, |
| 18 SignedCertificateTimestampAndStatusList* output_scts, | 18 SignedCertificateTimestampAndStatusList* output_scts, |
| 19 const NetLogWithSource& net_log) { | 19 const NetLogWithSource& net_log) { |
| 20 output_scts->clear(); | 20 output_scts->clear(); |
| 21 return ERR_CT_NO_SCTS_VERIFIED_OK; | |
| 22 } | 21 } |
| 23 | 22 |
| 23 void DoNothingCTVerifier::SetObserver(Observer* observer) {} |
| 24 |
| 24 } // namespace net | 25 } // namespace net |
| OLD | NEW |