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

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: Rebase?! In our moment of triumph?! Created 6 years, 10 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 | 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // The host name specified in the certificate is not unique. 403 // The host name specified in the certificate is not unique.
404 NET_ERROR(CERT_NON_UNIQUE_NAME, -210) 404 NET_ERROR(CERT_NON_UNIQUE_NAME, -210)
405 405
406 // The server responded with a certificate that contains a weak key (e.g. 406 // The server responded with a certificate that contains a weak key (e.g.
407 // a too-small RSA key). 407 // a too-small RSA key).
408 NET_ERROR(CERT_WEAK_KEY, -211) 408 NET_ERROR(CERT_WEAK_KEY, -211)
409 409
410 // The certificate claimed DNS names that are in violation of name constraints. 410 // The certificate claimed DNS names that are in violation of name constraints.
411 NET_ERROR(CERT_NAME_CONSTRAINT_VIOLATION, -212) 411 NET_ERROR(CERT_NAME_CONSTRAINT_VIOLATION, -212)
412 412
413 // The certificate's validity period is too long.
414 NET_ERROR(CERT_TOO_LONG_VALIDITY, -213)
415
413 // Add new certificate error codes here. 416 // Add new certificate error codes here.
414 // 417 //
415 // Update the value of CERT_END whenever you add a new certificate error 418 // Update the value of CERT_END whenever you add a new certificate error
416 // code. 419 // code.
417 420
418 // The value immediately past the last certificate error code. 421 // The value immediately past the last certificate error code.
419 NET_ERROR(CERT_END, -213) 422 NET_ERROR(CERT_END, -214)
420 423
421 // The URL is invalid. 424 // The URL is invalid.
422 NET_ERROR(INVALID_URL, -300) 425 NET_ERROR(INVALID_URL, -300)
423 426
424 // The scheme of the URL is disallowed. 427 // The scheme of the URL is disallowed.
425 NET_ERROR(DISALLOWED_URL_SCHEME, -301) 428 NET_ERROR(DISALLOWED_URL_SCHEME, -301)
426 429
427 // The scheme of the URL is unknown. 430 // The scheme of the URL is unknown.
428 NET_ERROR(UNKNOWN_URL_SCHEME, -302) 431 NET_ERROR(UNKNOWN_URL_SCHEME, -302)
429 432
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 NET_ERROR(DNS_TIMED_OUT, -803) 717 NET_ERROR(DNS_TIMED_OUT, -803)
715 718
716 // The entry was not found in cache, for cache-only lookups. 719 // The entry was not found in cache, for cache-only lookups.
717 NET_ERROR(DNS_CACHE_MISS, -804) 720 NET_ERROR(DNS_CACHE_MISS, -804)
718 721
719 // Suffix search list rules prevent resolution of the given host name. 722 // Suffix search list rules prevent resolution of the given host name.
720 NET_ERROR(DNS_SEARCH_EMPTY, -805) 723 NET_ERROR(DNS_SEARCH_EMPTY, -805)
721 724
722 // Failed to sort addresses according to RFC3484. 725 // Failed to sort addresses according to RFC3484.
723 NET_ERROR(DNS_SORT_ERROR, -806) 726 NET_ERROR(DNS_SORT_ERROR, -806)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698