| Index: net/quic/crypto/quic_crypto_client_config.cc
|
| diff --git a/net/quic/crypto/quic_crypto_client_config.cc b/net/quic/crypto/quic_crypto_client_config.cc
|
| index eef60a7de1fe7272f4274ad04ad9c9b147fd3795..2a2ea4223302d586128a3b6840f73b3b4d26e541 100644
|
| --- a/net/quic/crypto/quic_crypto_client_config.cc
|
| +++ b/net/quic/crypto/quic_crypto_client_config.cc
|
| @@ -10,7 +10,7 @@
|
| #include "base/stl_util.h"
|
| #include "base/strings/string_util.h"
|
| #include "net/quic/crypto/cert_compressor.h"
|
| -#include "net/quic/crypto/chacha20_poly1305_rfc7539_encrypter.h"
|
| +#include "net/quic/crypto/chacha20_poly1305_encrypter.h"
|
| #include "net/quic/crypto/channel_id.h"
|
| #include "net/quic/crypto/common_cert_set.h"
|
| #include "net/quic/crypto/crypto_framer.h"
|
| @@ -377,16 +377,10 @@ string QuicCryptoClientConfig::CachedState::GetNextServerNonce() {
|
|
|
| void QuicCryptoClientConfig::SetDefaults() {
|
| // Key exchange methods.
|
| - kexs.resize(2);
|
| - kexs[0] = kC255;
|
| - kexs[1] = kP256;
|
| + kexs = {kC255, kP256};
|
|
|
| // Authenticated encryption algorithms. Prefer RFC 7539 ChaCha20 by default.
|
| - aead.clear();
|
| - if (ChaCha20Poly1305Rfc7539Encrypter::IsSupported()) {
|
| - aead.push_back(kCC20);
|
| - }
|
| - aead.push_back(kAESG);
|
| + aead = {kCC20, kAESG};
|
|
|
| disable_ecdsa_ = false;
|
| }
|
|
|