| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 // Used to generate cert chain when sending server config updates. | 142 // Used to generate cert chain when sending server config updates. |
| 143 std::string client_common_set_hashes; | 143 std::string client_common_set_hashes; |
| 144 std::string client_cached_cert_hashes; | 144 std::string client_cached_cert_hashes; |
| 145 | 145 |
| 146 // Default to false; set to true if the client indicates that it supports sct | 146 // Default to false; set to true if the client indicates that it supports sct |
| 147 // by sending CSCT tag with an empty value in client hello. | 147 // by sending CSCT tag with an empty value in client hello. |
| 148 bool sct_supported_by_client; | 148 bool sct_supported_by_client; |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 struct NET_EXPORT_PRIVATE QuicCryptoProof { | |
| 152 QuicCryptoProof(); | |
| 153 ~QuicCryptoProof(); | |
| 154 | |
| 155 std::string signature; | |
| 156 // QuicCryptoProof does not take ownership of |certs|. | |
| 157 const std::vector<std::string>* certs; | |
| 158 std::string cert_sct; | |
| 159 // The SCID of the server config whose signature is |signature|. | |
| 160 std::string primary_scid; | |
| 161 }; | |
| 162 | |
| 163 // QuicCryptoConfig contains common configuration between clients and servers. | 151 // QuicCryptoConfig contains common configuration between clients and servers. |
| 164 class NET_EXPORT_PRIVATE QuicCryptoConfig { | 152 class NET_EXPORT_PRIVATE QuicCryptoConfig { |
| 165 public: | 153 public: |
| 166 // kInitialLabel is a constant that is used when deriving the initial | 154 // kInitialLabel is a constant that is used when deriving the initial |
| 167 // (non-forward secure) keys for the connection in order to tie the resulting | 155 // (non-forward secure) keys for the connection in order to tie the resulting |
| 168 // key to this protocol. | 156 // key to this protocol. |
| 169 static const char kInitialLabel[]; | 157 static const char kInitialLabel[]; |
| 170 | 158 |
| 171 // kCETVLabel is a constant that is used when deriving the keys for the | 159 // kCETVLabel is a constant that is used when deriving the keys for the |
| 172 // encrypted tag/value block in the client hello. | 160 // encrypted tag/value block in the client hello. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 192 | 180 |
| 193 const CommonCertSets* common_cert_sets; | 181 const CommonCertSets* common_cert_sets; |
| 194 | 182 |
| 195 private: | 183 private: |
| 196 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); | 184 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); |
| 197 }; | 185 }; |
| 198 | 186 |
| 199 } // namespace net | 187 } // namespace net |
| 200 | 188 |
| 201 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ | 189 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ |
| OLD | NEW |