Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 contains the list of network errors. | 5 // This file contains the list of network errors. |
| 6 | 6 |
| 7 // An asynchronous IO operation is not yet complete. This usually does not | 7 // An asynchronous IO operation is not yet complete. This usually does not |
| 8 // indicate a fatal error. Typically this error will be generated as a | 8 // indicate a fatal error. Typically this error will be generated as a |
| 9 // notification to wait for some external notification that the IO operation | 9 // notification to wait for some external notification that the IO operation |
| 10 // finally completed. | 10 // finally completed. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 | 73 |
| 74 // The server requested a client certificate for SSL client authentication. | 74 // The server requested a client certificate for SSL client authentication. |
| 75 NET_ERROR(SSL_CLIENT_AUTH_CERT_NEEDED, -110) | 75 NET_ERROR(SSL_CLIENT_AUTH_CERT_NEEDED, -110) |
| 76 | 76 |
| 77 // A tunnel connection through the proxy could not be established. | 77 // A tunnel connection through the proxy could not be established. |
| 78 NET_ERROR(TUNNEL_CONNECTION_FAILED, -111) | 78 NET_ERROR(TUNNEL_CONNECTION_FAILED, -111) |
| 79 | 79 |
| 80 // No SSL protocol versions are enabled. | 80 // No SSL protocol versions are enabled. |
| 81 NET_ERROR(NO_SSL_VERSIONS_ENABLED, -112) | 81 NET_ERROR(NO_SSL_VERSIONS_ENABLED, -112) |
| 82 | 82 |
| 83 // The client and server don't support a common SSL protocol version or | |
| 84 // cipher suite. | |
| 85 NET_ERROR(SSL_VERSION_OR_CIPHER_MISMATCH, -113) | |
|
wtc
2008/10/10 22:24:38
This error code is a mouthful, but that's because
| |
| 86 | |
| 83 // Certificate error codes | 87 // Certificate error codes |
| 84 // | 88 // |
| 85 // The values of certificate error codes must be consecutive. | 89 // The values of certificate error codes must be consecutive. |
| 86 | 90 |
| 87 // The server responded with a certificate whose common name did not match | 91 // The server responded with a certificate whose common name did not match |
| 88 // the host name. This could mean: | 92 // the host name. This could mean: |
| 89 // | 93 // |
| 90 // 1. An attacker has redirected our traffic to his server and is | 94 // 1. An attacker has redirected our traffic to his server and is |
| 91 // presenting a certificate for which he knows the private key. | 95 // presenting a certificate for which he knows the private key. |
| 92 // | 96 // |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 204 // The response was 407 (Proxy Authentication Required), yet we did not send | 208 // The response was 407 (Proxy Authentication Required), yet we did not send |
| 205 // the request to a proxy. | 209 // the request to a proxy. |
| 206 NET_ERROR(UNEXPECTED_PROXY_AUTH, -323) | 210 NET_ERROR(UNEXPECTED_PROXY_AUTH, -323) |
| 207 | 211 |
| 208 // The cache does not have the requested entry. | 212 // The cache does not have the requested entry. |
| 209 NET_ERROR(CACHE_MISS, -400) | 213 NET_ERROR(CACHE_MISS, -400) |
| 210 | 214 |
| 211 // The server's response was insecure (e.g. there was a cert error). | 215 // The server's response was insecure (e.g. there was a cert error). |
| 212 NET_ERROR(INSECURE_RESPONSE, -501) | 216 NET_ERROR(INSECURE_RESPONSE, -501) |
| 213 | 217 |
| OLD | NEW |