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

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

Issue 20628006: Reject certificates that are valid for too long. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "Manual rebase" due to age. Created 6 years, 1 month 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 | Annotate | Revision Log
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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 // The host name specified in the certificate is not unique. 437 // The host name specified in the certificate is not unique.
438 NET_ERROR(CERT_NON_UNIQUE_NAME, -210) 438 NET_ERROR(CERT_NON_UNIQUE_NAME, -210)
439 439
440 // The server responded with a certificate that contains a weak key (e.g. 440 // The server responded with a certificate that contains a weak key (e.g.
441 // a too-small RSA key). 441 // a too-small RSA key).
442 NET_ERROR(CERT_WEAK_KEY, -211) 442 NET_ERROR(CERT_WEAK_KEY, -211)
443 443
444 // The certificate claimed DNS names that are in violation of name constraints. 444 // The certificate claimed DNS names that are in violation of name constraints.
445 NET_ERROR(CERT_NAME_CONSTRAINT_VIOLATION, -212) 445 NET_ERROR(CERT_NAME_CONSTRAINT_VIOLATION, -212)
446 446
447 // The certificate's validity period is too long.
448 NET_ERROR(CERT_TOO_LONG_VALIDITY, -213)
Ryan Sleevi 2014/10/29 22:22:06 CERT_VALIDITY_TOO_LONG ?
palmer 2014/10/30 01:23:16 Done throughout.
449
447 // Add new certificate error codes here. 450 // Add new certificate error codes here.
448 // 451 //
449 // Update the value of CERT_END whenever you add a new certificate error 452 // Update the value of CERT_END whenever you add a new certificate error
450 // code. 453 // code.
451 454
452 // The value immediately past the last certificate error code. 455 // The value immediately past the last certificate error code.
453 NET_ERROR(CERT_END, -213) 456 NET_ERROR(CERT_END, -214)
454 457
455 // The URL is invalid. 458 // The URL is invalid.
456 NET_ERROR(INVALID_URL, -300) 459 NET_ERROR(INVALID_URL, -300)
457 460
458 // The scheme of the URL is disallowed. 461 // The scheme of the URL is disallowed.
459 NET_ERROR(DISALLOWED_URL_SCHEME, -301) 462 NET_ERROR(DISALLOWED_URL_SCHEME, -301)
460 463
461 // The scheme of the URL is unknown. 464 // The scheme of the URL is unknown.
462 NET_ERROR(UNKNOWN_URL_SCHEME, -302) 465 NET_ERROR(UNKNOWN_URL_SCHEME, -302)
463 466
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 NET_ERROR(DNS_TIMED_OUT, -803) 776 NET_ERROR(DNS_TIMED_OUT, -803)
774 777
775 // The entry was not found in cache, for cache-only lookups. 778 // The entry was not found in cache, for cache-only lookups.
776 NET_ERROR(DNS_CACHE_MISS, -804) 779 NET_ERROR(DNS_CACHE_MISS, -804)
777 780
778 // Suffix search list rules prevent resolution of the given host name. 781 // Suffix search list rules prevent resolution of the given host name.
779 NET_ERROR(DNS_SEARCH_EMPTY, -805) 782 NET_ERROR(DNS_SEARCH_EMPTY, -805)
780 783
781 // Failed to sort addresses according to RFC3484. 784 // Failed to sort addresses according to RFC3484.
782 NET_ERROR(DNS_SORT_ERROR, -806) 785 NET_ERROR(DNS_SORT_ERROR, -806)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698