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

Side by Side Diff: net/quic/quic_protocol.h

Issue 1765603002: Add QUIC 31 in which the server's proof covers both the static server config as well as a hash of t… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « net/quic/quic_crypto_server_stream_test.cc ('k') | net/quic/quic_protocol.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_
6 #define NET_QUIC_QUIC_PROTOCOL_H_ 6 #define NET_QUIC_QUIC_PROTOCOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 // Special case to indicate unknown/unsupported QUIC version. 367 // Special case to indicate unknown/unsupported QUIC version.
368 QUIC_VERSION_UNSUPPORTED = 0, 368 QUIC_VERSION_UNSUPPORTED = 0,
369 369
370 QUIC_VERSION_25 = 25, // SPDY/4 header keys, and removal of error_details 370 QUIC_VERSION_25 = 25, // SPDY/4 header keys, and removal of error_details
371 // from QuicRstStreamFrame 371 // from QuicRstStreamFrame
372 QUIC_VERSION_26 = 26, // In CHLO, send XLCT tag containing hash of leaf cert 372 QUIC_VERSION_26 = 26, // In CHLO, send XLCT tag containing hash of leaf cert
373 QUIC_VERSION_27 = 27, // Sends a nonce in the SHLO. 373 QUIC_VERSION_27 = 27, // Sends a nonce in the SHLO.
374 QUIC_VERSION_28 = 28, // Receiver can refuse to create a requested stream. 374 QUIC_VERSION_28 = 28, // Receiver can refuse to create a requested stream.
375 QUIC_VERSION_29 = 29, // Server and client honor QUIC_STREAM_NO_ERROR. 375 QUIC_VERSION_29 = 29, // Server and client honor QUIC_STREAM_NO_ERROR.
376 QUIC_VERSION_30 = 30, // Add server side support of cert transparency. 376 QUIC_VERSION_30 = 30, // Add server side support of cert transparency.
377 QUIC_VERSION_31 = 31, // Adds a hash of the client hello to crypto proof.
377 }; 378 };
378 379
379 // This vector contains QUIC versions which we currently support. 380 // This vector contains QUIC versions which we currently support.
380 // This should be ordered such that the highest supported version is the first 381 // This should be ordered such that the highest supported version is the first
381 // element, with subsequent elements in descending order (versions can be 382 // element, with subsequent elements in descending order (versions can be
382 // skipped as necessary). 383 // skipped as necessary).
383 // 384 //
384 // IMPORTANT: if you are adding to this list, follow the instructions at 385 // IMPORTANT: if you are adding to this list, follow the instructions at
385 // http://sites/quic/adding-and-removing-versions 386 // http://sites/quic/adding-and-removing-versions
386 static const QuicVersion kSupportedQuicVersions[] = { 387 static const QuicVersion kSupportedQuicVersions[] = {
387 QUIC_VERSION_30, QUIC_VERSION_29, QUIC_VERSION_28, 388 QUIC_VERSION_31, QUIC_VERSION_30, QUIC_VERSION_29, QUIC_VERSION_28,
388 QUIC_VERSION_27, QUIC_VERSION_26, QUIC_VERSION_25}; 389 QUIC_VERSION_27, QUIC_VERSION_26, QUIC_VERSION_25};
389 390
390 typedef std::vector<QuicVersion> QuicVersionVector; 391 typedef std::vector<QuicVersion> QuicVersionVector;
391 392
392 // Returns a vector of QUIC versions in kSupportedQuicVersions. 393 // Returns a vector of QUIC versions in kSupportedQuicVersions.
393 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions(); 394 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions();
394 395
395 // QuicTag is written to and read from the wire, but we prefer to use 396 // QuicTag is written to and read from the wire, but we prefer to use
396 // the more readable QuicVersion at other levels. 397 // the more readable QuicVersion at other levels.
397 // Helper function which translates from a QuicVersion to a QuicTag. Returns 0 398 // Helper function which translates from a QuicVersion to a QuicTag. Returns 0
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1413 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1413 1414
1414 const struct iovec* iov; 1415 const struct iovec* iov;
1415 const int iov_count; 1416 const int iov_count;
1416 const size_t total_length; 1417 const size_t total_length;
1417 }; 1418 };
1418 1419
1419 } // namespace net 1420 } // namespace net
1420 1421
1421 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1422 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_server_stream_test.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698