OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // | 7 // |
8 // Ranges: | 8 // Ranges: |
9 // 0- 99 System related errors | 9 // 0- 99 System related errors |
10 // 100-199 Connection related errors | 10 // 100-199 Connection related errors |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 // Error number -122 is available for use. | 141 // Error number -122 is available for use. |
142 | 142 |
143 // The peer sent an SSL no_renegotiation alert message. | 143 // The peer sent an SSL no_renegotiation alert message. |
144 NET_ERROR(SSL_NO_RENEGOTIATION, -123) | 144 NET_ERROR(SSL_NO_RENEGOTIATION, -123) |
145 | 145 |
146 // Winsock sometimes reports more data written than passed. This is probably | 146 // Winsock sometimes reports more data written than passed. This is probably |
147 // due to a broken LSP. | 147 // due to a broken LSP. |
148 NET_ERROR(WINSOCK_UNEXPECTED_WRITTEN_BYTES, -124) | 148 NET_ERROR(WINSOCK_UNEXPECTED_WRITTEN_BYTES, -124) |
149 | 149 |
| 150 // An SSL peer sent us a fatal decompression_failure alert. This typically |
| 151 // occurs when a peer selects DEFLATE compression in the mismaken belief that |
| 152 // it supports it. |
| 153 NET_ERROR(SSL_DECOMPRESSION_FAILURE_ALERT, -125) |
| 154 |
| 155 |
150 // Certificate error codes | 156 // Certificate error codes |
151 // | 157 // |
152 // The values of certificate error codes must be consecutive. | 158 // The values of certificate error codes must be consecutive. |
153 | 159 |
154 // The server responded with a certificate whose common name did not match | 160 // The server responded with a certificate whose common name did not match |
155 // the host name. This could mean: | 161 // the host name. This could mean: |
156 // | 162 // |
157 // 1. An attacker has redirected our traffic to his server and is | 163 // 1. An attacker has redirected our traffic to his server and is |
158 // presenting a certificate for which he knows the private key. | 164 // presenting a certificate for which he knows the private key. |
159 // | 165 // |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 // The server's response was insecure (e.g. there was a cert error). | 361 // The server's response was insecure (e.g. there was a cert error). |
356 NET_ERROR(INSECURE_RESPONSE, -501) | 362 NET_ERROR(INSECURE_RESPONSE, -501) |
357 | 363 |
358 // The server responded to a <keygen> with a generated client cert that we | 364 // The server responded to a <keygen> with a generated client cert that we |
359 // don't have the matching private key for. | 365 // don't have the matching private key for. |
360 NET_ERROR(NO_PRIVATE_KEY_FOR_CERT, -502) | 366 NET_ERROR(NO_PRIVATE_KEY_FOR_CERT, -502) |
361 | 367 |
362 // An error adding to the OS certificate database (e.g. OS X Keychain). | 368 // An error adding to the OS certificate database (e.g. OS X Keychain). |
363 NET_ERROR(ADD_USER_CERT_FAILED, -503) | 369 NET_ERROR(ADD_USER_CERT_FAILED, -503) |
364 | 370 |
365 // | |
366 // The FTP PASV command failed. | 371 // The FTP PASV command failed. |
367 NET_ERROR(FTP_PASV_COMMAND_FAILED, -600) | 372 NET_ERROR(FTP_PASV_COMMAND_FAILED, -600) |
OLD | NEW |