Chromium Code Reviews| OLD | NEW |
|---|---|
| 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. | 6 // inside a macro to generate enum. |
| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 270 // The certificate didn't match the built-in public key pins for the host name. | 270 // The certificate didn't match the built-in public key pins for the host name. |
| 271 // The pins are set in net/base/transport_security_state.cc and require that | 271 // The pins are set in net/base/transport_security_state.cc and require that |
| 272 // one of a set of public keys exist on the path from the leaf to the root. | 272 // one of a set of public keys exist on the path from the leaf to the root. |
| 273 NET_ERROR(SSL_PINNED_KEY_NOT_IN_CERT_CHAIN, -150) | 273 NET_ERROR(SSL_PINNED_KEY_NOT_IN_CERT_CHAIN, -150) |
| 274 | 274 |
| 275 // Server request for client certificate did not contain any types we support. | 275 // Server request for client certificate did not contain any types we support. |
| 276 NET_ERROR(CLIENT_AUTH_CERT_TYPE_UNSUPPORTED, -151) | 276 NET_ERROR(CLIENT_AUTH_CERT_TYPE_UNSUPPORTED, -151) |
| 277 | 277 |
| 278 // Server requested one type of cert, then requested a different type while the | 278 // Server requested one type of cert, then requested a different type while the |
| 279 // first was still being generated. | 279 // first was still being generated. |
| 280 NET_ERROR(ORIGIN_BOUND_CERT_GENERATION_TYPE_MISMATCH, -152) | 280 NET_ERROR(SERVER_BOUND_CERT_GENERATION_TYPE_MISMATCH, -152) |
|
wtc
2012/03/15 23:46:38
We probably should not rename these error codes be
mattm
2012/03/16 22:22:00
Done.
| |
| 281 | 281 |
| 282 // Certificate error codes | 282 // Certificate error codes |
| 283 // | 283 // |
| 284 // The values of certificate error codes must be consecutive. | 284 // The values of certificate error codes must be consecutive. |
| 285 | 285 |
| 286 // The server responded with a certificate whose common name did not match | 286 // The server responded with a certificate whose common name did not match |
| 287 // the host name. This could mean: | 287 // the host name. This could mean: |
| 288 // | 288 // |
| 289 // 1. An attacker has redirected our traffic to his server and is | 289 // 1. An attacker has redirected our traffic to his server and is |
| 290 // presenting a certificate for which he knows the private key. | 290 // presenting a certificate for which he knows the private key. |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 611 | 611 |
| 612 // PKCS #12 import failed due to invalid/corrupt file. | 612 // PKCS #12 import failed due to invalid/corrupt file. |
| 613 NET_ERROR(PKCS12_IMPORT_INVALID_FILE, -708) | 613 NET_ERROR(PKCS12_IMPORT_INVALID_FILE, -708) |
| 614 | 614 |
| 615 // PKCS #12 import failed due to unsupported features. | 615 // PKCS #12 import failed due to unsupported features. |
| 616 NET_ERROR(PKCS12_IMPORT_UNSUPPORTED, -709) | 616 NET_ERROR(PKCS12_IMPORT_UNSUPPORTED, -709) |
| 617 | 617 |
| 618 // Key generation failed. | 618 // Key generation failed. |
| 619 NET_ERROR(KEY_GENERATION_FAILED, -710) | 619 NET_ERROR(KEY_GENERATION_FAILED, -710) |
| 620 | 620 |
| 621 // Origin-bound certificate generation failed. | 621 // Server-bound certificate generation failed. |
| 622 NET_ERROR(ORIGIN_BOUND_CERT_GENERATION_FAILED, -711) | 622 NET_ERROR(SERVER_BOUND_CERT_GENERATION_FAILED, -711) |
| 623 | 623 |
| 624 // Failure to export private key. | 624 // Failure to export private key. |
| 625 NET_ERROR(PRIVATE_KEY_EXPORT_FAILED, -712) | 625 NET_ERROR(PRIVATE_KEY_EXPORT_FAILED, -712) |
| 626 | 626 |
| 627 // DNS error codes. | 627 // DNS error codes. |
| 628 | 628 |
| 629 // DNS resolver received a malformed response. | 629 // DNS resolver received a malformed response. |
| 630 NET_ERROR(DNS_MALFORMED_RESPONSE, -800) | 630 NET_ERROR(DNS_MALFORMED_RESPONSE, -800) |
| 631 | 631 |
| 632 // DNS server requires TCP | 632 // DNS server requires TCP |
| 633 NET_ERROR(DNS_SERVER_REQUIRES_TCP, -801) | 633 NET_ERROR(DNS_SERVER_REQUIRES_TCP, -801) |
| 634 | 634 |
| 635 // DNS server failed. This error is returned for all of the following | 635 // DNS server failed. This error is returned for all of the following |
| 636 // error conditions: | 636 // error conditions: |
| 637 // 1 - Format error - The name server was unable to interpret the query. | 637 // 1 - Format error - The name server was unable to interpret the query. |
| 638 // 2 - Server failure - The name server was unable to process this query | 638 // 2 - Server failure - The name server was unable to process this query |
| 639 // due to a problem with the name server. | 639 // due to a problem with the name server. |
| 640 // 4 - Not Implemented - The name server does not support the requested | 640 // 4 - Not Implemented - The name server does not support the requested |
| 641 // kind of query. | 641 // kind of query. |
| 642 // 5 - Refused - The name server refuses to perform the specified | 642 // 5 - Refused - The name server refuses to perform the specified |
| 643 // operation for policy reasons. | 643 // operation for policy reasons. |
| 644 NET_ERROR(DNS_SERVER_FAILED, -802) | 644 NET_ERROR(DNS_SERVER_FAILED, -802) |
| 645 | 645 |
| 646 // DNS transaction timed out. | 646 // DNS transaction timed out. |
| 647 NET_ERROR(DNS_TIMED_OUT, -803) | 647 NET_ERROR(DNS_TIMED_OUT, -803) |
| 648 | 648 |
| 649 // The entry was not found in cache, for cache-only lookups. | 649 // The entry was not found in cache, for cache-only lookups. |
| 650 NET_ERROR(DNS_CACHE_MISS, -804) | 650 NET_ERROR(DNS_CACHE_MISS, -804) |
| OLD | NEW |