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

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

Issue 448313003: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0807
Patch Set: Created 6 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
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 #ifndef NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // sending a client hello. 117 // sending a client hello.
118 std::vector<std::string> cached_certs; 118 std::vector<std::string> cached_certs;
119 // client_key_exchange is used by clients to store the ephemeral KeyExchange 119 // client_key_exchange is used by clients to store the ephemeral KeyExchange
120 // for the connection. 120 // for the connection.
121 scoped_ptr<KeyExchange> client_key_exchange; 121 scoped_ptr<KeyExchange> client_key_exchange;
122 // channel_id is set by servers to a ChannelID key when the client correctly 122 // channel_id is set by servers to a ChannelID key when the client correctly
123 // proves possession of the corresponding private key. It consists of 32 123 // proves possession of the corresponding private key. It consists of 32
124 // bytes of x coordinate, followed by 32 bytes of y coordinate. Both values 124 // bytes of x coordinate, followed by 32 bytes of y coordinate. Both values
125 // are big-endian and the pair is a P-256 public key. 125 // are big-endian and the pair is a P-256 public key.
126 std::string channel_id; 126 std::string channel_id;
127
128 // Used when generating proof signature when sending server config updates.
129 bool x509_ecdsa_supported;
130
131 // Used to generate cert chain when sending server config updates.
132 std::string client_common_set_hashes;
133 std::string client_cached_cert_hashes;
127 }; 134 };
128 135
129 // QuicCryptoConfig contains common configuration between clients and servers. 136 // QuicCryptoConfig contains common configuration between clients and servers.
130 class NET_EXPORT_PRIVATE QuicCryptoConfig { 137 class NET_EXPORT_PRIVATE QuicCryptoConfig {
131 public: 138 public:
132 // kInitialLabel is a constant that is used when deriving the initial 139 // kInitialLabel is a constant that is used when deriving the initial
133 // (non-forward secure) keys for the connection in order to tie the resulting 140 // (non-forward secure) keys for the connection in order to tie the resulting
134 // key to this protocol. 141 // key to this protocol.
135 static const char kInitialLabel[]; 142 static const char kInitialLabel[];
136 143
(...skipping 17 matching lines...) Expand all
154 161
155 const CommonCertSets* common_cert_sets; 162 const CommonCertSets* common_cert_sets;
156 163
157 private: 164 private:
158 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); 165 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig);
159 }; 166 };
160 167
161 } // namespace net 168 } // namespace net
162 169
163 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 170 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_simulator.cc ('k') | net/quic/crypto/crypto_handshake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698