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

Side by Side Diff: net/quic/crypto/quic_crypto_server_config.cc

Issue 1809703002: deprecate quic_use_rfc7539 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116579250
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_crypto_client_stream_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_crypto_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698