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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |