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

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

Issue 449273002: Along with sending the SCUP message, this CL includes small fixes which (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Trigger_QUIC_tracegraf_72571464
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
« no previous file with comments | « no previous file | net/quic/crypto/crypto_handshake.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 (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
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/string_piece.h"
12 #include "net/base/net_export.h" 13 #include "net/base/net_export.h"
13 #include "net/quic/quic_protocol.h" 14 #include "net/quic/quic_protocol.h"
14 15
15 namespace net { 16 namespace net {
16 17
17 class CommonCertSets; 18 class CommonCertSets;
18 class KeyExchange; 19 class KeyExchange;
19 class QuicDecrypter; 20 class QuicDecrypter;
20 class QuicEncrypter; 21 class QuicEncrypter;
21 22
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // sending a client hello. 118 // sending a client hello.
118 std::vector<std::string> cached_certs; 119 std::vector<std::string> cached_certs;
119 // client_key_exchange is used by clients to store the ephemeral KeyExchange 120 // client_key_exchange is used by clients to store the ephemeral KeyExchange
120 // for the connection. 121 // for the connection.
121 scoped_ptr<KeyExchange> client_key_exchange; 122 scoped_ptr<KeyExchange> client_key_exchange;
122 // channel_id is set by servers to a ChannelID key when the client correctly 123 // 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 124 // 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 125 // 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. 126 // are big-endian and the pair is a P-256 public key.
126 std::string channel_id; 127 std::string channel_id;
128
129 // Used when generating proof signature when sending server config updates.
130 bool x509_ecdsa_supported;
131
132 // Used to generate cert chain when sending server config updates.
133 base::StringPiece client_common_set_hashes;
134 base::StringPiece client_cached_cert_hashes;
127 }; 135 };
128 136
129 // QuicCryptoConfig contains common configuration between clients and servers. 137 // QuicCryptoConfig contains common configuration between clients and servers.
130 class NET_EXPORT_PRIVATE QuicCryptoConfig { 138 class NET_EXPORT_PRIVATE QuicCryptoConfig {
131 public: 139 public:
132 // kInitialLabel is a constant that is used when deriving the initial 140 // 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 141 // (non-forward secure) keys for the connection in order to tie the resulting
134 // key to this protocol. 142 // key to this protocol.
135 static const char kInitialLabel[]; 143 static const char kInitialLabel[];
136 144
(...skipping 17 matching lines...) Expand all
154 162
155 const CommonCertSets* common_cert_sets; 163 const CommonCertSets* common_cert_sets;
156 164
157 private: 165 private:
158 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); 166 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig);
159 }; 167 };
160 168
161 } // namespace net 169 } // namespace net
162 170
163 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 171 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/crypto/crypto_handshake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698