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

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

Issue 7275027: Detect Kaspersky SSL MITM and give a helpful error message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 5 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
« no previous file with comments | « chrome/renderer/localized_error.cc ('k') | net/socket/ssl_client_socket_nss.h » ('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) 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
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 24 matching lines...) Expand all
224 // Possible causes for this include the user implicitly or explicitly 225 // Possible causes for this include the user implicitly or explicitly
225 // denying access to the private key, the private key may not be valid for 226 // denying access to the private key, the private key may not be valid for
226 // signing, the key may be relying on a cached handle which is no longer 227 // signing, the key may be relying on a cached handle which is no longer
227 // valid, or the CSP won't allow arbitrary data to be signed. 228 // valid, or the CSP won't allow arbitrary data to be signed.
228 NET_ERROR(SSL_CLIENT_AUTH_SIGNATURE_FAILED, -141) 229 NET_ERROR(SSL_CLIENT_AUTH_SIGNATURE_FAILED, -141)
229 230
230 // The message was too large for the transport. (for example a UDP message 231 // The message was too large for the transport. (for example a UDP message
231 // which exceeds size threshold). 232 // which exceeds size threshold).
232 NET_ERROR(MSG_TOO_BIG, -142) 233 NET_ERROR(MSG_TOO_BIG, -142)
233 234
235 // We detected a Kaspersky product intercepting our HTTPS connections. This
236 // interacts badly with our SSL stack for unknown reasons (disabling False
237 // Start doesn't help). We return this error so that we can give the user a
238 // helpful error message rather than have the connection hang.
239 // See also: ESET_ANTI_VIRUS_SSL_INTERCEPTION
240 NET_ERROR(KASPERSKY_ANTI_VIRUS_SSL_INTERCEPTION, -143)
241
234 // Connection was aborted for switching to another ptotocol. 242 // Connection was aborted for switching to another ptotocol.
235 // WebSocket abort SocketStream connection when alternate protocol is found. 243 // WebSocket abort SocketStream connection when alternate protocol is found.
236 NET_ERROR(PROTOCOL_SWITCHED, -146) 244 NET_ERROR(PROTOCOL_SWITCHED, -146)
237 245
238 // Returned when attempting to bind an address that is already in use. 246 // Returned when attempting to bind an address that is already in use.
239 NET_ERROR(ADDRESS_IN_USE, -147) 247 NET_ERROR(ADDRESS_IN_USE, -147)
240 248
241 // NOTE: error codes 143-145 are available, please use those before adding 249 // NOTE: error codes 144-145 are available, please use those before adding
242 // 148. 250 // 148.
243 251
244 // Certificate error codes 252 // Certificate error codes
245 // 253 //
246 // The values of certificate error codes must be consecutive. 254 // The values of certificate error codes must be consecutive.
247 255
248 // The server responded with a certificate whose common name did not match 256 // The server responded with a certificate whose common name did not match
249 // the host name. This could mean: 257 // the host name. This could mean:
250 // 258 //
251 // 1. An attacker has redirected our traffic to his server and is 259 // 1. An attacker has redirected our traffic to his server and is
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 // 2 - Server failure - The name server was unable to process this query 569 // 2 - Server failure - The name server was unable to process this query
562 // due to a problem with the name server. 570 // due to a problem with the name server.
563 // 4 - Not Implemented - The name server does not support the requested 571 // 4 - Not Implemented - The name server does not support the requested
564 // kind of query. 572 // kind of query.
565 // 5 - Refused - The name server refuses to perform the specified 573 // 5 - Refused - The name server refuses to perform the specified
566 // operation for policy reasons. 574 // operation for policy reasons.
567 NET_ERROR(DNS_SERVER_FAILED, -802) 575 NET_ERROR(DNS_SERVER_FAILED, -802)
568 576
569 // DNS transaction timed out. 577 // DNS transaction timed out.
570 NET_ERROR(DNS_TIMED_OUT, -803) 578 NET_ERROR(DNS_TIMED_OUT, -803)
OLDNEW
« no previous file with comments | « chrome/renderer/localized_error.cc ('k') | net/socket/ssl_client_socket_nss.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698