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

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

Issue 1660593004: Landing Recent QUIC changes until 01/28/2016 18:41 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0202
Patch Set: Created 4 years, 11 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/common_cert_set.cc ('k') | net/quic/crypto/quic_crypto_server_config_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/quic_crypto_server_config.cc
diff --git a/net/quic/crypto/quic_crypto_server_config.cc b/net/quic/crypto/quic_crypto_server_config.cc
index ab8202a605674ebb9f43f3a9173c748932945081..fd4e13284a8062c502fd88fa86145be94ffd8ad4 100644
--- a/net/quic/crypto/quic_crypto_server_config.cc
+++ b/net/quic/crypto/quic_crypto_server_config.cc
@@ -290,11 +290,15 @@ QuicServerConfigProtobuf* QuicCryptoServerConfig::GenerateConfig(
} else {
msg.SetTaglist(kKEXS, kC255, 0);
}
- if (FLAGS_quic_use_rfc7539 &&
- ChaCha20Poly1305Rfc7539Encrypter::IsSupported()) {
- msg.SetTaglist(kAEAD, kAESG, kCC12, kCC20, 0);
+ if (FLAGS_quic_crypto_server_config_default_has_chacha20) {
+ if (FLAGS_quic_use_rfc7539 &&
+ ChaCha20Poly1305Rfc7539Encrypter::IsSupported()) {
+ msg.SetTaglist(kAEAD, kAESG, kCC12, kCC20, 0);
+ } else {
+ msg.SetTaglist(kAEAD, kAESG, kCC12, 0);
+ }
} else {
- msg.SetTaglist(kAEAD, kAESG, kCC12, 0);
+ msg.SetTaglist(kAEAD, kAESG, 0);
}
msg.SetStringPiece(kPUBS, encoded_public_values);
« no previous file with comments | « net/quic/crypto/common_cert_set.cc ('k') | net/quic/crypto/quic_crypto_server_config_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698