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

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

Issue 1222953002: Certificate Transparency: Add STH Fetching capability. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified handling of responses per review comments 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
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 // Certificate Transparency: Received a signed tree head that failed to parse.
351 NET_ERROR(CT_STH_PARSING_FAILED, -167)
352 // Certificate Transparency: Received a signed tree head whose JSON parsing was
353 // OK but was missing some of the fields.
354 NET_ERROR(CT_STH_INCOMPLETE, -168)
mmenke 2015/07/29 18:51:51 Hrm...Having a net error exist exclusively for stu
Eran Messeri 2015/07/31 12:55:53 Acknowledged - if that helps I can move the code t
355
350 // Certificate error codes 356 // Certificate error codes
351 // 357 //
352 // The values of certificate error codes must be consecutive. 358 // The values of certificate error codes must be consecutive.
353 359
354 // The server responded with a certificate whose common name did not match 360 // The server responded with a certificate whose common name did not match
355 // the host name. This could mean: 361 // the host name. This could mean:
356 // 362 //
357 // 1. An attacker has redirected our traffic to their server and is 363 // 1. An attacker has redirected our traffic to their server and is
358 // presenting a certificate for which they know the private key. 364 // presenting a certificate for which they know the private key.
359 // 365 //
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 NET_ERROR(DNS_TIMED_OUT, -803) 806 NET_ERROR(DNS_TIMED_OUT, -803)
801 807
802 // The entry was not found in cache, for cache-only lookups. 808 // The entry was not found in cache, for cache-only lookups.
803 NET_ERROR(DNS_CACHE_MISS, -804) 809 NET_ERROR(DNS_CACHE_MISS, -804)
804 810
805 // Suffix search list rules prevent resolution of the given host name. 811 // Suffix search list rules prevent resolution of the given host name.
806 NET_ERROR(DNS_SEARCH_EMPTY, -805) 812 NET_ERROR(DNS_SEARCH_EMPTY, -805)
807 813
808 // Failed to sort addresses according to RFC3484. 814 // Failed to sort addresses according to RFC3484.
809 NET_ERROR(DNS_SORT_ERROR, -806) 815 NET_ERROR(DNS_SORT_ERROR, -806)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698