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

Unified Diff: net/quic/crypto/quic_crypto_client_config.cc

Issue 1918953003: Landing Recent QUIC changes until 4/22/2016 14:55 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleted SpdyFramerTests missed while mergeing 120451808 Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/crypto/quic_crypto_server_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/crypto/quic_crypto_server_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698