OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/quic_crypto_server_config.h" | 5 #include "net/quic/crypto/quic_crypto_server_config.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 p256_public_value.size()); | 285 p256_public_value.size()); |
286 } | 286 } |
287 | 287 |
288 msg.set_tag(kSCFG); | 288 msg.set_tag(kSCFG); |
289 if (options.p256) { | 289 if (options.p256) { |
290 msg.SetTaglist(kKEXS, kC255, kP256, 0); | 290 msg.SetTaglist(kKEXS, kC255, kP256, 0); |
291 } else { | 291 } else { |
292 msg.SetTaglist(kKEXS, kC255, 0); | 292 msg.SetTaglist(kKEXS, kC255, 0); |
293 } | 293 } |
294 if (FLAGS_quic_crypto_server_config_default_has_chacha20) { | 294 if (FLAGS_quic_crypto_server_config_default_has_chacha20) { |
295 if (FLAGS_quic_use_rfc7539 && | 295 if (ChaCha20Poly1305Rfc7539Encrypter::IsSupported()) { |
296 ChaCha20Poly1305Rfc7539Encrypter::IsSupported()) { | |
297 msg.SetTaglist(kAEAD, kAESG, kCC12, kCC20, 0); | 296 msg.SetTaglist(kAEAD, kAESG, kCC12, kCC20, 0); |
298 } else { | 297 } else { |
299 msg.SetTaglist(kAEAD, kAESG, kCC12, 0); | 298 msg.SetTaglist(kAEAD, kAESG, kCC12, 0); |
300 } | 299 } |
301 } else { | 300 } else { |
302 msg.SetTaglist(kAEAD, kAESG, 0); | 301 msg.SetTaglist(kAEAD, kAESG, 0); |
303 } | 302 } |
304 msg.SetStringPiece(kPUBS, encoded_public_values); | 303 msg.SetStringPiece(kPUBS, encoded_public_values); |
305 | 304 |
306 if (options.expiry_time.IsZero()) { | 305 if (options.expiry_time.IsZero()) { |
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1812 priority(0), | 1811 priority(0), |
1813 source_address_token_boxer(nullptr) {} | 1812 source_address_token_boxer(nullptr) {} |
1814 | 1813 |
1815 QuicCryptoServerConfig::Config::~Config() { | 1814 QuicCryptoServerConfig::Config::~Config() { |
1816 STLDeleteElements(&key_exchanges); | 1815 STLDeleteElements(&key_exchanges); |
1817 } | 1816 } |
1818 | 1817 |
1819 QuicCryptoProof::QuicCryptoProof() {} | 1818 QuicCryptoProof::QuicCryptoProof() {} |
1820 QuicCryptoProof::~QuicCryptoProof() {} | 1819 QuicCryptoProof::~QuicCryptoProof() {} |
1821 } // namespace net | 1820 } // namespace net |
OLD | NEW |