| 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 // A standalone tool for testing MCS connections and the MCS client on their | 5 // A standalone tool for testing MCS connections and the MCS client on their |
| 6 // own. | 6 // own. |
| 7 | 7 |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 #include <cstdio> | 9 #include <cstdio> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 // A cert verifier that access all certificates. | 166 // A cert verifier that access all certificates. |
| 167 class MyTestCertVerifier : public net::CertVerifier { | 167 class MyTestCertVerifier : public net::CertVerifier { |
| 168 public: | 168 public: |
| 169 MyTestCertVerifier() {} | 169 MyTestCertVerifier() {} |
| 170 ~MyTestCertVerifier() override {} | 170 ~MyTestCertVerifier() override {} |
| 171 | 171 |
| 172 int Verify(net::X509Certificate* cert, | 172 int Verify(net::X509Certificate* cert, |
| 173 const std::string& hostname, | 173 const std::string& hostname, |
| 174 const std::string& ocsp_response, |
| 174 int flags, | 175 int flags, |
| 175 net::CRLSet* crl_set, | 176 net::CRLSet* crl_set, |
| 176 net::CertVerifyResult* verify_result, | 177 net::CertVerifyResult* verify_result, |
| 177 const net::CompletionCallback& callback, | 178 const net::CompletionCallback& callback, |
| 178 RequestHandle* out_req, | 179 RequestHandle* out_req, |
| 179 const net::BoundNetLog& net_log) override { | 180 const net::BoundNetLog& net_log) override { |
| 180 return net::OK; | 181 return net::OK; |
| 181 } | 182 } |
| 182 | 183 |
| 183 void CancelRequest(RequestHandle req) override { | 184 void CancelRequest(RequestHandle req) override { |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 | 496 |
| 496 return 0; | 497 return 0; |
| 497 } | 498 } |
| 498 | 499 |
| 499 } // namespace | 500 } // namespace |
| 500 } // namespace gcm | 501 } // namespace gcm |
| 501 | 502 |
| 502 int main(int argc, char* argv[]) { | 503 int main(int argc, char* argv[]) { |
| 503 return gcm::MCSProbeMain(argc, argv); | 504 return gcm::MCSProbeMain(argc, argv); |
| 504 } | 505 } |
| OLD | NEW |