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

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

Issue 17385010: OpenSSL/NSS implementation of ProofVerfifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implemented agl's comments Created 7 years, 5 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/crypto_handshake.h" 5 #include "net/quic/crypto/crypto_handshake.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 hkdf_input.append(out_params->hkdf_input_suffix); 829 hkdf_input.append(out_params->hkdf_input_suffix);
830 830
831 CryptoUtils::DeriveKeys( 831 CryptoUtils::DeriveKeys(
832 out_params->forward_secure_premaster_secret, out_params->aead, 832 out_params->forward_secure_premaster_secret, out_params->aead,
833 out_params->client_nonce, out_params->server_nonce, hkdf_input, 833 out_params->client_nonce, out_params->server_nonce, hkdf_input,
834 CryptoUtils::CLIENT, &out_params->forward_secure_crypters); 834 CryptoUtils::CLIENT, &out_params->forward_secure_crypters);
835 835
836 return QUIC_NO_ERROR; 836 return QUIC_NO_ERROR;
837 } 837 }
838 838
839 const ProofVerifier* QuicCryptoClientConfig::proof_verifier() const { 839 ProofVerifier* QuicCryptoClientConfig::proof_verifier() const {
840 return proof_verifier_.get(); 840 return proof_verifier_.get();
841 } 841 }
842 842
843 void QuicCryptoClientConfig::SetProofVerifier(ProofVerifier* verifier) { 843 void QuicCryptoClientConfig::SetProofVerifier(ProofVerifier* verifier) {
844 proof_verifier_.reset(verifier); 844 proof_verifier_.reset(verifier);
845 } 845 }
846 846
847 ChannelIDSigner* QuicCryptoClientConfig::channel_id_signer() const { 847 ChannelIDSigner* QuicCryptoClientConfig::channel_id_signer() const {
848 return channel_id_signer_.get(); 848 return channel_id_signer_.get();
849 } 849 }
850 850
851 void QuicCryptoClientConfig::SetChannelIDSigner(ChannelIDSigner* signer) { 851 void QuicCryptoClientConfig::SetChannelIDSigner(ChannelIDSigner* signer) {
852 channel_id_signer_.reset(signer); 852 channel_id_signer_.reset(signer);
853 } 853 }
854 854
855 } // namespace net 855 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698