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

Side by Side Diff: net/quic/crypto/crypto_handshake.h

Issue 1272153006: relnote: Adding FLAGS_require_handshake_confirmation to emergency-disable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@deprecate_flag_quic_send_fec_packet_only_on_fec_alarm_99599597
Patch Set: Disabled FLAGS_quic_require_handshake_confirmation for ZeroRTT test Created 5 years, 4 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/crypto/quic_crypto_server_config.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // Failure reasons for an invalid server nonce in CHLO. 45 // Failure reasons for an invalid server nonce in CHLO.
46 // 46 //
47 // Unbox of server nonce failed. 47 // Unbox of server nonce failed.
48 SERVER_NONCE_DECRYPTION_FAILURE = 8, 48 SERVER_NONCE_DECRYPTION_FAILURE = 8,
49 // Decrypted server nonce had incorrect length. 49 // Decrypted server nonce had incorrect length.
50 SERVER_NONCE_INVALID_FAILURE = 9, 50 SERVER_NONCE_INVALID_FAILURE = 9,
51 // Server nonce is not unique. 51 // Server nonce is not unique.
52 SERVER_NONCE_NOT_UNIQUE_FAILURE = 10, 52 SERVER_NONCE_NOT_UNIQUE_FAILURE = 10,
53 // Server nonce's timestamp is not in the strike register's valid time range. 53 // Server nonce's timestamp is not in the strike register's valid time range.
54 SERVER_NONCE_INVALID_TIME_FAILURE = 11, 54 SERVER_NONCE_INVALID_TIME_FAILURE = 11,
55 // The server requires handshake confirmation.
56 SERVER_NONCE_REQUIRED_FAILURE = 20,
55 57
56 // Failure reasons for an invalid server config in CHLO. 58 // Failure reasons for an invalid server config in CHLO.
57 // 59 //
58 // Missing Server config id (kSCID) tag. 60 // Missing Server config id (kSCID) tag.
59 SERVER_CONFIG_INCHOATE_HELLO_FAILURE = 12, 61 SERVER_CONFIG_INCHOATE_HELLO_FAILURE = 12,
60 // Couldn't find the Server config id (kSCID). 62 // Couldn't find the Server config id (kSCID).
61 SERVER_CONFIG_UNKNOWN_CONFIG_FAILURE = 13, 63 SERVER_CONFIG_UNKNOWN_CONFIG_FAILURE = 13,
62 64
63 // Failure reasons for an invalid source-address token. 65 // Failure reasons for an invalid source-address token.
64 // 66 //
65 // Missing Source-address token (kSourceAddressTokenTag) tag. 67 // Missing Source-address token (kSourceAddressTokenTag) tag.
66 SOURCE_ADDRESS_TOKEN_INVALID_FAILURE = 14, 68 SOURCE_ADDRESS_TOKEN_INVALID_FAILURE = 14,
67 // Unbox of Source-address token failed. 69 // Unbox of Source-address token failed.
68 SOURCE_ADDRESS_TOKEN_DECRYPTION_FAILURE = 15, 70 SOURCE_ADDRESS_TOKEN_DECRYPTION_FAILURE = 15,
69 // Couldn't parse the unbox'ed Source-address token. 71 // Couldn't parse the unbox'ed Source-address token.
70 SOURCE_ADDRESS_TOKEN_PARSE_FAILURE = 16, 72 SOURCE_ADDRESS_TOKEN_PARSE_FAILURE = 16,
71 // Source-address token is for a different IP address. 73 // Source-address token is for a different IP address.
72 SOURCE_ADDRESS_TOKEN_DIFFERENT_IP_ADDRESS_FAILURE = 17, 74 SOURCE_ADDRESS_TOKEN_DIFFERENT_IP_ADDRESS_FAILURE = 17,
73 // The source-address token has a timestamp in the future. 75 // The source-address token has a timestamp in the future.
74 SOURCE_ADDRESS_TOKEN_CLOCK_SKEW_FAILURE = 18, 76 SOURCE_ADDRESS_TOKEN_CLOCK_SKEW_FAILURE = 18,
75 // The source-address token has expired. 77 // The source-address token has expired.
76 SOURCE_ADDRESS_TOKEN_EXPIRED_FAILURE = 19, 78 SOURCE_ADDRESS_TOKEN_EXPIRED_FAILURE = 19,
77 79
78 MAX_FAILURE_REASON, 80 MAX_FAILURE_REASON = 21,
79 }; 81 };
80 82
81 // These errors will be packed into an uint32 and we don't want to set the most 83 // These errors will be packed into an uint32 and we don't want to set the most
82 // significant bit, which may be misinterpreted as the sign bit. 84 // significant bit, which may be misinterpreted as the sign bit.
83 static_assert(MAX_FAILURE_REASON <= 32, "failure reason out of sync"); 85 static_assert(MAX_FAILURE_REASON <= 32, "failure reason out of sync");
84 86
85 // A CrypterPair contains the encrypter and decrypter for an encryption level. 87 // A CrypterPair contains the encrypter and decrypter for an encryption level.
86 struct NET_EXPORT_PRIVATE CrypterPair { 88 struct NET_EXPORT_PRIVATE CrypterPair {
87 CrypterPair(); 89 CrypterPair();
88 ~CrypterPair(); 90 ~CrypterPair();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 163
162 const CommonCertSets* common_cert_sets; 164 const CommonCertSets* common_cert_sets;
163 165
164 private: 166 private:
165 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); 167 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig);
166 }; 168 };
167 169
168 } // namespace net 170 } // namespace net
169 171
170 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 172 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/crypto/quic_crypto_server_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698