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

Side by Side Diff: net/quic/crypto/proof_verifier_chromium.cc

Issue 1994353002: Update CertVerifier::Verify to use RequestParams instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@request_params
Patch Set: Rebased Created 4 years, 6 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
« no previous file with comments | « net/cert_net/nss_ocsp_unittest.cc ('k') | net/quic/crypto/proof_verifier_chromium_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "net/quic/crypto/proof_verifier_chromium.h" 5 #include "net/quic/crypto/proof_verifier_chromium.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 callback->Run(rv == OK, error_details_, &verify_details); 274 callback->Run(rv == OK, error_details_, &verify_details);
275 // Will delete |this|. 275 // Will delete |this|.
276 proof_verifier_->OnJobComplete(this); 276 proof_verifier_->OnJobComplete(this);
277 } 277 }
278 } 278 }
279 279
280 int ProofVerifierChromium::Job::DoVerifyCert(int result) { 280 int ProofVerifierChromium::Job::DoVerifyCert(int result) {
281 next_state_ = STATE_VERIFY_CERT_COMPLETE; 281 next_state_ = STATE_VERIFY_CERT_COMPLETE;
282 282
283 return verifier_->Verify( 283 return verifier_->Verify(
284 cert_.get(), hostname_, std::string(), cert_verify_flags_, 284 CertVerifier::RequestParams(cert_, hostname_, cert_verify_flags_,
285 std::string(), CertificateList()),
285 SSLConfigService::GetCRLSet().get(), &verify_details_->cert_verify_result, 286 SSLConfigService::GetCRLSet().get(), &verify_details_->cert_verify_result,
286 base::Bind(&ProofVerifierChromium::Job::OnIOComplete, 287 base::Bind(&ProofVerifierChromium::Job::OnIOComplete,
287 base::Unretained(this)), 288 base::Unretained(this)),
288 &cert_verifier_request_, net_log_); 289 &cert_verifier_request_, net_log_);
289 } 290 }
290 291
291 int ProofVerifierChromium::Job::DoVerifyCertComplete(int result) { 292 int ProofVerifierChromium::Job::DoVerifyCertComplete(int result) {
292 cert_verifier_request_.reset(); 293 cert_verifier_request_.reset();
293 294
294 const CertVerifyResult& cert_verify_result = 295 const CertVerifyResult& cert_verify_result =
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 } 466 }
466 return status; 467 return status;
467 } 468 }
468 469
469 void ProofVerifierChromium::OnJobComplete(Job* job) { 470 void ProofVerifierChromium::OnJobComplete(Job* job) {
470 active_jobs_.erase(job); 471 active_jobs_.erase(job);
471 delete job; 472 delete job;
472 } 473 }
473 474
474 } // namespace net 475 } // namespace net
OLDNEW
« no previous file with comments | « net/cert_net/nss_ocsp_unittest.cc ('k') | net/quic/crypto/proof_verifier_chromium_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698