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

Side by Side 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, 10 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 | « net/quic/crypto/common_cert_set.cc ('k') | net/quic/crypto/quic_crypto_server_config_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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 encoded_public_values.append(p256_public_value.data(), 283 encoded_public_values.append(p256_public_value.data(),
284 p256_public_value.size()); 284 p256_public_value.size());
285 } 285 }
286 286
287 msg.set_tag(kSCFG); 287 msg.set_tag(kSCFG);
288 if (options.p256) { 288 if (options.p256) {
289 msg.SetTaglist(kKEXS, kC255, kP256, 0); 289 msg.SetTaglist(kKEXS, kC255, kP256, 0);
290 } else { 290 } else {
291 msg.SetTaglist(kKEXS, kC255, 0); 291 msg.SetTaglist(kKEXS, kC255, 0);
292 } 292 }
293 if (FLAGS_quic_use_rfc7539 && 293 if (FLAGS_quic_crypto_server_config_default_has_chacha20) {
294 ChaCha20Poly1305Rfc7539Encrypter::IsSupported()) { 294 if (FLAGS_quic_use_rfc7539 &&
295 msg.SetTaglist(kAEAD, kAESG, kCC12, kCC20, 0); 295 ChaCha20Poly1305Rfc7539Encrypter::IsSupported()) {
296 msg.SetTaglist(kAEAD, kAESG, kCC12, kCC20, 0);
297 } else {
298 msg.SetTaglist(kAEAD, kAESG, kCC12, 0);
299 }
296 } else { 300 } else {
297 msg.SetTaglist(kAEAD, kAESG, kCC12, 0); 301 msg.SetTaglist(kAEAD, kAESG, 0);
298 } 302 }
299 msg.SetStringPiece(kPUBS, encoded_public_values); 303 msg.SetStringPiece(kPUBS, encoded_public_values);
300 304
301 if (options.expiry_time.IsZero()) { 305 if (options.expiry_time.IsZero()) {
302 const QuicWallTime now = clock->WallNow(); 306 const QuicWallTime now = clock->WallNow();
303 const QuicWallTime expiry = now.Add(QuicTime::Delta::FromSeconds( 307 const QuicWallTime expiry = now.Add(QuicTime::Delta::FromSeconds(
304 60 * 60 * 24 * 180 /* 180 days, ~six months */)); 308 60 * 60 * 24 * 180 /* 180 days, ~six months */));
305 const uint64_t expiry_seconds = expiry.ToUNIXSeconds(); 309 const uint64_t expiry_seconds = expiry.ToUNIXSeconds();
306 msg.SetValue(kEXPY, expiry_seconds); 310 msg.SetValue(kEXPY, expiry_seconds);
307 } else { 311 } else {
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 priority(0), 1811 priority(0),
1808 source_address_token_boxer(nullptr) {} 1812 source_address_token_boxer(nullptr) {}
1809 1813
1810 QuicCryptoServerConfig::Config::~Config() { 1814 QuicCryptoServerConfig::Config::~Config() {
1811 STLDeleteElements(&key_exchanges); 1815 STLDeleteElements(&key_exchanges);
1812 } 1816 }
1813 1817
1814 QuicCryptoProof::QuicCryptoProof() : certs(nullptr) {} 1818 QuicCryptoProof::QuicCryptoProof() : certs(nullptr) {}
1815 QuicCryptoProof::~QuicCryptoProof() {} 1819 QuicCryptoProof::~QuicCryptoProof() {}
1816 } // namespace net 1820 } // namespace net
OLDNEW
« 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