Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: google_apis/gcm/tools/mcs_probe.cc

Issue 1081913003: Route OCSP stapling through CertVerifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@boringnss
Patch Set: yet another CrOS-only Verify call Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc ('k') | net/cert/cert_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698