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

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

Issue 724543002: Reject certificates that are valid for too long. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace nit(s). Created 5 years, 11 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 | « content/browser/ssl/ssl_policy.cc ('k') | net/cert/cert_status_flags.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) 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // The host name specified in the certificate is not unique. 433 // The host name specified in the certificate is not unique.
434 NET_ERROR(CERT_NON_UNIQUE_NAME, -210) 434 NET_ERROR(CERT_NON_UNIQUE_NAME, -210)
435 435
436 // The server responded with a certificate that contains a weak key (e.g. 436 // The server responded with a certificate that contains a weak key (e.g.
437 // a too-small RSA key). 437 // a too-small RSA key).
438 NET_ERROR(CERT_WEAK_KEY, -211) 438 NET_ERROR(CERT_WEAK_KEY, -211)
439 439
440 // The certificate claimed DNS names that are in violation of name constraints. 440 // The certificate claimed DNS names that are in violation of name constraints.
441 NET_ERROR(CERT_NAME_CONSTRAINT_VIOLATION, -212) 441 NET_ERROR(CERT_NAME_CONSTRAINT_VIOLATION, -212)
442 442
443 // The certificate's validity period is too long.
444 NET_ERROR(CERT_VALIDITY_TOO_LONG, -213)
445
443 // Add new certificate error codes here. 446 // Add new certificate error codes here.
444 // 447 //
445 // Update the value of CERT_END whenever you add a new certificate error 448 // Update the value of CERT_END whenever you add a new certificate error
446 // code. 449 // code.
447 450
448 // The value immediately past the last certificate error code. 451 // The value immediately past the last certificate error code.
449 NET_ERROR(CERT_END, -213) 452 NET_ERROR(CERT_END, -214)
450 453
451 // The URL is invalid. 454 // The URL is invalid.
452 NET_ERROR(INVALID_URL, -300) 455 NET_ERROR(INVALID_URL, -300)
453 456
454 // The scheme of the URL is disallowed. 457 // The scheme of the URL is disallowed.
455 NET_ERROR(DISALLOWED_URL_SCHEME, -301) 458 NET_ERROR(DISALLOWED_URL_SCHEME, -301)
456 459
457 // The scheme of the URL is unknown. 460 // The scheme of the URL is unknown.
458 NET_ERROR(UNKNOWN_URL_SCHEME, -302) 461 NET_ERROR(UNKNOWN_URL_SCHEME, -302)
459 462
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 NET_ERROR(DNS_TIMED_OUT, -803) 778 NET_ERROR(DNS_TIMED_OUT, -803)
776 779
777 // The entry was not found in cache, for cache-only lookups. 780 // The entry was not found in cache, for cache-only lookups.
778 NET_ERROR(DNS_CACHE_MISS, -804) 781 NET_ERROR(DNS_CACHE_MISS, -804)
779 782
780 // Suffix search list rules prevent resolution of the given host name. 783 // Suffix search list rules prevent resolution of the given host name.
781 NET_ERROR(DNS_SEARCH_EMPTY, -805) 784 NET_ERROR(DNS_SEARCH_EMPTY, -805)
782 785
783 // Failed to sort addresses according to RFC3484. 786 // Failed to sort addresses according to RFC3484.
784 NET_ERROR(DNS_SORT_ERROR, -806) 787 NET_ERROR(DNS_SORT_ERROR, -806)
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_policy.cc ('k') | net/cert/cert_status_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698