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

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

Issue 1286793002: Treat failure to parse certificates as SSL protocol errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: and now with more keys 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 | « chrome/common/localized_error.cc ('k') | net/data/ssl/certificates/README » ('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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // The SSL server requires falling back to a version older than the configured 340 // The SSL server requires falling back to a version older than the configured
341 // minimum fallback version, and thus fallback failed. 341 // minimum fallback version, and thus fallback failed.
342 NET_ERROR(SSL_FALLBACK_BEYOND_MINIMUM_VERSION, -165) 342 NET_ERROR(SSL_FALLBACK_BEYOND_MINIMUM_VERSION, -165)
343 343
344 // Resolving a hostname to an IP address list included the IPv4 address 344 // Resolving a hostname to an IP address list included the IPv4 address
345 // "127.0.53.53". This is a special IP address which ICANN has recommended to 345 // "127.0.53.53". This is a special IP address which ICANN has recommended to
346 // indicate there was a name collision, and alert admins to a potential 346 // indicate there was a name collision, and alert admins to a potential
347 // problem. 347 // problem.
348 NET_ERROR(ICANN_NAME_COLLISION, -166) 348 NET_ERROR(ICANN_NAME_COLLISION, -166)
349 349
350 // The SSL server presented a certificate which could not be decoded. This is
351 // not a certificate error code as no X509Certificate object is available. This
352 // error is fatal.
353 NET_ERROR(SSL_SERVER_CERT_BAD_FORMAT, -167)
354
350 // Certificate error codes 355 // Certificate error codes
351 // 356 //
352 // The values of certificate error codes must be consecutive. 357 // The values of certificate error codes must be consecutive.
353 358
354 // The server responded with a certificate whose common name did not match 359 // The server responded with a certificate whose common name did not match
355 // the host name. This could mean: 360 // the host name. This could mean:
356 // 361 //
357 // 1. An attacker has redirected our traffic to their server and is 362 // 1. An attacker has redirected our traffic to their server and is
358 // presenting a certificate for which they know the private key. 363 // presenting a certificate for which they know the private key.
359 // 364 //
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 NET_ERROR(DNS_TIMED_OUT, -803) 805 NET_ERROR(DNS_TIMED_OUT, -803)
801 806
802 // The entry was not found in cache, for cache-only lookups. 807 // The entry was not found in cache, for cache-only lookups.
803 NET_ERROR(DNS_CACHE_MISS, -804) 808 NET_ERROR(DNS_CACHE_MISS, -804)
804 809
805 // Suffix search list rules prevent resolution of the given host name. 810 // Suffix search list rules prevent resolution of the given host name.
806 NET_ERROR(DNS_SEARCH_EMPTY, -805) 811 NET_ERROR(DNS_SEARCH_EMPTY, -805)
807 812
808 // Failed to sort addresses according to RFC3484. 813 // Failed to sort addresses according to RFC3484.
809 NET_ERROR(DNS_SORT_ERROR, -806) 814 NET_ERROR(DNS_SORT_ERROR, -806)
OLDNEW
« no previous file with comments | « chrome/common/localized_error.cc ('k') | net/data/ssl/certificates/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698