| OLD | NEW |
| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // sending a client hello. | 52 // sending a client hello. |
| 53 std::vector<std::string> cached_certs; | 53 std::vector<std::string> cached_certs; |
| 54 // client_key_exchange is used by clients to store the ephemeral KeyExchange | 54 // client_key_exchange is used by clients to store the ephemeral KeyExchange |
| 55 // for the connection. | 55 // for the connection. |
| 56 scoped_ptr<KeyExchange> client_key_exchange; | 56 scoped_ptr<KeyExchange> client_key_exchange; |
| 57 // channel_id is set by servers to a ChannelID key when the client correctly | 57 // channel_id is set by servers to a ChannelID key when the client correctly |
| 58 // proves possession of the corresponding private key. It consists of 32 | 58 // proves possession of the corresponding private key. It consists of 32 |
| 59 // bytes of x coordinate, followed by 32 bytes of y coordinate. Both values | 59 // bytes of x coordinate, followed by 32 bytes of y coordinate. Both values |
| 60 // are big-endian and the pair is a P-256 public key. | 60 // are big-endian and the pair is a P-256 public key. |
| 61 std::string channel_id; | 61 std::string channel_id; |
| 62 // client_address is set by clients to the kCADR value provided by the server | |
| 63 // in ServerHello. It is a serialized form of an IP address and port. | |
| 64 std::string client_address; | |
| 65 }; | 62 }; |
| 66 | 63 |
| 67 // QuicCryptoConfig contains common configuration between clients and servers. | 64 // QuicCryptoConfig contains common configuration between clients and servers. |
| 68 class NET_EXPORT_PRIVATE QuicCryptoConfig { | 65 class NET_EXPORT_PRIVATE QuicCryptoConfig { |
| 69 public: | 66 public: |
| 70 // kInitialLabel is a constant that is used when deriving the initial | 67 // kInitialLabel is a constant that is used when deriving the initial |
| 71 // (non-forward secure) keys for the connection in order to tie the resulting | 68 // (non-forward secure) keys for the connection in order to tie the resulting |
| 72 // key to this protocol. | 69 // key to this protocol. |
| 73 static const char kInitialLabel[]; | 70 static const char kInitialLabel[]; |
| 74 | 71 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 92 | 89 |
| 93 const CommonCertSets* common_cert_sets; | 90 const CommonCertSets* common_cert_sets; |
| 94 | 91 |
| 95 private: | 92 private: |
| 96 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); | 93 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); |
| 97 }; | 94 }; |
| 98 | 95 |
| 99 } // namespace net | 96 } // namespace net |
| 100 | 97 |
| 101 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ | 98 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ |
| OLD | NEW |