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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 | 497 |
497 return 0; | 498 return 0; |
498 } | 499 } |
499 | 500 |
500 } // namespace | 501 } // namespace |
501 } // namespace gcm | 502 } // namespace gcm |
502 | 503 |
503 int main(int argc, char* argv[]) { | 504 int main(int argc, char* argv[]) { |
504 return gcm::MCSProbeMain(argc, argv); | 505 return gcm::MCSProbeMain(argc, argv); |
505 } | 506 } |
OLD | NEW |