| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // of an HTTP proxy. | 180 // of an HTTP proxy. |
| 181 NET_ERROR(PROXY_CONNECTION_FAILED, -130) | 181 NET_ERROR(PROXY_CONNECTION_FAILED, -130) |
| 182 | 182 |
| 183 // A mandatory proxy configuration could not be used. Currently this means | 183 // A mandatory proxy configuration could not be used. Currently this means |
| 184 // that a mandatory PAC script could not be fetched, parsed or executed. | 184 // that a mandatory PAC script could not be fetched, parsed or executed. |
| 185 NET_ERROR(MANDATORY_PROXY_CONFIGURATION_FAILED, -131) | 185 NET_ERROR(MANDATORY_PROXY_CONFIGURATION_FAILED, -131) |
| 186 | 186 |
| 187 // We detected an ESET product intercepting our HTTPS connections. Since these | 187 // We detected an ESET product intercepting our HTTPS connections. Since these |
| 188 // products are False Start intolerant, we return this error so that we can | 188 // products are False Start intolerant, we return this error so that we can |
| 189 // give the user a helpful error message rather than have the connection hang. | 189 // give the user a helpful error message rather than have the connection hang. |
| 190 // See also: KASPERSKY_ANTI_VIRUS_SSL_INTERCEPTION |
| 190 NET_ERROR(ESET_ANTI_VIRUS_SSL_INTERCEPTION, -132) | 191 NET_ERROR(ESET_ANTI_VIRUS_SSL_INTERCEPTION, -132) |
| 191 | 192 |
| 192 // We've hit the max socket limit for the socket pool while preconnecting. We | 193 // We've hit the max socket limit for the socket pool while preconnecting. We |
| 193 // don't bother trying to preconnect more sockets. | 194 // don't bother trying to preconnect more sockets. |
| 194 NET_ERROR(PRECONNECT_MAX_SOCKET_LIMIT, -133) | 195 NET_ERROR(PRECONNECT_MAX_SOCKET_LIMIT, -133) |
| 195 | 196 |
| 196 // The permission to use the SSL client certificate's private key was denied. | 197 // The permission to use the SSL client certificate's private key was denied. |
| 197 NET_ERROR(SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED, -134) | 198 NET_ERROR(SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED, -134) |
| 198 | 199 |
| 199 // The SSL client certificate has no private key. | 200 // The SSL client certificate has no private key. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 // 4 - Not Implemented - The name server does not support the requested | 246 // 4 - Not Implemented - The name server does not support the requested |
| 246 // kind of query. | 247 // kind of query. |
| 247 // 5 - Refused - The name server refuses to perform the specified | 248 // 5 - Refused - The name server refuses to perform the specified |
| 248 // operation for policy reasons. | 249 // operation for policy reasons. |
| 249 NET_ERROR(DNS_SERVER_FAILED, -145) | 250 NET_ERROR(DNS_SERVER_FAILED, -145) |
| 250 | 251 |
| 251 // Connection was aborted for switching to another ptotocol. | 252 // Connection was aborted for switching to another ptotocol. |
| 252 // WebSocket abort SocketStream connection when alternate protocol is found. | 253 // WebSocket abort SocketStream connection when alternate protocol is found. |
| 253 NET_ERROR(PROTOCOL_SWITCHED, -146) | 254 NET_ERROR(PROTOCOL_SWITCHED, -146) |
| 254 | 255 |
| 256 // We detected a Kaspersky product intercepting our HTTPS connections. This |
| 257 // interacts badly with our SSL stack for unknown reasons (disabling False |
| 258 // Start doesn't help). We return this error so that we can give the user a |
| 259 // helpful error message rather than have the connection hang. |
| 260 // See also: ESET_ANTI_VIRUS_SSL_INTERCEPTION |
| 261 NET_ERROR(KASPERSKY_ANTI_VIRUS_SSL_INTERCEPTION, -147) |
| 262 |
| 255 // Certificate error codes | 263 // Certificate error codes |
| 256 // | 264 // |
| 257 // The values of certificate error codes must be consecutive. | 265 // The values of certificate error codes must be consecutive. |
| 258 | 266 |
| 259 // The server responded with a certificate whose common name did not match | 267 // The server responded with a certificate whose common name did not match |
| 260 // the host name. This could mean: | 268 // the host name. This could mean: |
| 261 // | 269 // |
| 262 // 1. An attacker has redirected our traffic to his server and is | 270 // 1. An attacker has redirected our traffic to his server and is |
| 263 // presenting a certificate for which he knows the private key. | 271 // presenting a certificate for which he knows the private key. |
| 264 // | 272 // |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 // Import failed - certificate already exists in database. | 558 // Import failed - certificate already exists in database. |
| 551 // Note it's a little weird this is an error but reimporting a PKCS12 is ok | 559 // Note it's a little weird this is an error but reimporting a PKCS12 is ok |
| 552 // (no-op). That's how Mozilla does it, though. | 560 // (no-op). That's how Mozilla does it, though. |
| 553 NET_ERROR(IMPORT_CERT_ALREADY_EXISTS, -704) | 561 NET_ERROR(IMPORT_CERT_ALREADY_EXISTS, -704) |
| 554 | 562 |
| 555 // CA import failed due to some other error. | 563 // CA import failed due to some other error. |
| 556 NET_ERROR(IMPORT_CA_CERT_FAILED, -705) | 564 NET_ERROR(IMPORT_CA_CERT_FAILED, -705) |
| 557 | 565 |
| 558 // Server certificate import failed due to some internal error. | 566 // Server certificate import failed due to some internal error. |
| 559 NET_ERROR(IMPORT_SERVER_CERT_FAILED, -706) | 567 NET_ERROR(IMPORT_SERVER_CERT_FAILED, -706) |
| OLD | NEW |