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

Side by Side Diff: net/base/net_error_list.h

Issue 2800853008: Add a dedicated error code for TLS 1.3 interference. (Closed)
Patch Set: svaldez and mmenke comments Created 3 years, 8 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 | « components/error_page/common/localized_error.cc ('k') | net/log/net_log_event_type_list.h » ('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 // This file intentionally does not have header guards, it's included 5 // This file intentionally does not have header guards, it's included
6 // inside a macro to generate enum values. 6 // inside a macro to generate enum values.
7 7
8 // This file contains the list of network errors. 8 // This file contains the list of network errors.
9 9
10 // 10 //
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 NET_ERROR(SSL_OBSOLETE_CIPHER, -172) 383 NET_ERROR(SSL_OBSOLETE_CIPHER, -172)
384 384
385 // When a WebSocket handshake is done successfully and the connection has been 385 // When a WebSocket handshake is done successfully and the connection has been
386 // upgraded, the URLRequest is cancelled with this error code. 386 // upgraded, the URLRequest is cancelled with this error code.
387 NET_ERROR(WS_UPGRADE, -173) 387 NET_ERROR(WS_UPGRADE, -173)
388 388
389 // Socket ReadIfReady support is not implemented. This error should not be user 389 // Socket ReadIfReady support is not implemented. This error should not be user
390 // visible, because the normal Read() method is used as a fallback. 390 // visible, because the normal Read() method is used as a fallback.
391 NET_ERROR(READ_IF_READY_NOT_IMPLEMENTED, -174) 391 NET_ERROR(READ_IF_READY_NOT_IMPLEMENTED, -174)
392 392
393 // This error is emitted if TLS 1.3 is enabled, connecting with it failed, but
394 // retrying at a downgraded maximum version succeeded. This could mean:
395 //
svaldez 2017/04/10 20:40:02 Maybe reorder this in expected order: 1) Middlebo
davidben 2017/04/10 21:07:36 Expected order isn't really meaningful. It also is
396 // 1. This is a transient network error that will be resolved when the user
397 // reloads.
398 //
399 // 2. The server is buggy and does not implement TLS version negotiation
400 // correctly. TLS 1.3 was tweaked to avoid a common server bug here, so this
401 // is unlikely.
402 //
403 // 3. The user is behind a buggy network middlebox, firewall, or proxy which is
404 // interfering with TLS 1.3.
405 NET_ERROR(SSL_VERSION_INTERFERENCE, -175)
406
393 // Certificate error codes 407 // Certificate error codes
394 // 408 //
395 // The values of certificate error codes must be consecutive. 409 // The values of certificate error codes must be consecutive.
396 410
397 // The server responded with a certificate whose common name did not match 411 // The server responded with a certificate whose common name did not match
398 // the host name. This could mean: 412 // the host name. This could mean:
399 // 413 //
400 // 1. An attacker has redirected our traffic to their server and is 414 // 1. An attacker has redirected our traffic to their server and is
401 // presenting a certificate for which they know the private key. 415 // presenting a certificate for which they know the private key.
402 // 416 //
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 NET_ERROR(DNS_TIMED_OUT, -803) 873 NET_ERROR(DNS_TIMED_OUT, -803)
860 874
861 // The entry was not found in cache, for cache-only lookups. 875 // The entry was not found in cache, for cache-only lookups.
862 NET_ERROR(DNS_CACHE_MISS, -804) 876 NET_ERROR(DNS_CACHE_MISS, -804)
863 877
864 // Suffix search list rules prevent resolution of the given host name. 878 // Suffix search list rules prevent resolution of the given host name.
865 NET_ERROR(DNS_SEARCH_EMPTY, -805) 879 NET_ERROR(DNS_SEARCH_EMPTY, -805)
866 880
867 // Failed to sort addresses according to RFC3484. 881 // Failed to sort addresses according to RFC3484.
868 NET_ERROR(DNS_SORT_ERROR, -806) 882 NET_ERROR(DNS_SORT_ERROR, -806)
OLDNEW
« no previous file with comments | « components/error_page/common/localized_error.cc ('k') | net/log/net_log_event_type_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698