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

Side by Side Diff: net/quic/quic_crypto_client_stream.cc

Issue 22647002: Add support to QUIC for QUIC_VERSION_8: for RSA-PSS signatures, set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/quic_crypto_client_stream.h" 5 #include "net/quic/quic_crypto_client_stream.h"
6 6
7 #include "net/base/completion_callback.h" 7 #include "net/base/completion_callback.h"
8 #include "net/base/net_errors.h" 8 #include "net/base/net_errors.h"
9 #include "net/quic/crypto/crypto_protocol.h" 9 #include "net/quic/crypto/crypto_protocol.h"
10 #include "net/quic/crypto/crypto_utils.h" 10 #include "net/quic/crypto/crypto_utils.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 DCHECK(verifier); 255 DCHECK(verifier);
256 next_state_ = STATE_VERIFY_PROOF_COMPLETE; 256 next_state_ = STATE_VERIFY_PROOF_COMPLETE;
257 generation_counter_ = cached->generation_counter(); 257 generation_counter_ = cached->generation_counter();
258 258
259 ProofVerifierCallbackImpl* proof_verify_callback = 259 ProofVerifierCallbackImpl* proof_verify_callback =
260 new ProofVerifierCallbackImpl(this); 260 new ProofVerifierCallbackImpl(this);
261 261
262 verify_ok_ = false; 262 verify_ok_ = false;
263 263
264 ProofVerifier::Status status = verifier->VerifyProof( 264 ProofVerifier::Status status = verifier->VerifyProof(
265 session()->connection()->version(),
265 server_hostname_, 266 server_hostname_,
266 cached->server_config(), 267 cached->server_config(),
267 cached->certs(), 268 cached->certs(),
268 cached->signature(), 269 cached->signature(),
269 &verify_error_details_, 270 &verify_error_details_,
270 &verify_details_, 271 &verify_details_,
271 proof_verify_callback); 272 proof_verify_callback);
272 273
273 switch (status) { 274 switch (status) {
274 case ProofVerifier::PENDING: 275 case ProofVerifier::PENDING:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 } 364 }
364 case STATE_IDLE: 365 case STATE_IDLE:
365 // This means that the peer sent us a message that we weren't expecting. 366 // This means that the peer sent us a message that we weren't expecting.
366 CloseConnection(QUIC_INVALID_CRYPTO_MESSAGE_TYPE); 367 CloseConnection(QUIC_INVALID_CRYPTO_MESSAGE_TYPE);
367 return; 368 return;
368 } 369 }
369 } 370 }
370 } 371 }
371 372
372 } // namespace net 373 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698