OLD | NEW |
1 /* | 1 /* |
2 * Enumeration of all SSL-specific error codes. | 2 * Enumeration of all SSL-specific error codes. |
3 * | 3 * |
4 * This Source Code Form is subject to the terms of the Mozilla Public | 4 * This Source Code Form is subject to the terms of the Mozilla Public |
5 * License, v. 2.0. If a copy of the MPL was not distributed with this | 5 * License, v. 2.0. If a copy of the MPL was not distributed with this |
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
7 /* $Id$ */ | |
8 #ifndef __SSL_ERR_H_ | 7 #ifndef __SSL_ERR_H_ |
9 #define __SSL_ERR_H_ | 8 #define __SSL_ERR_H_ |
10 | 9 |
11 | 10 |
12 #define SSL_ERROR_BASE (-0x3000) | 11 #define SSL_ERROR_BASE (-0x3000) |
13 #define SSL_ERROR_LIMIT (SSL_ERROR_BASE + 1000) | 12 #define SSL_ERROR_LIMIT (SSL_ERROR_BASE + 1000) |
14 | 13 |
15 #define IS_SSL_ERROR(code) \ | 14 #define IS_SSL_ERROR(code) \ |
16 (((code) >= SSL_ERROR_BASE) && ((code) < SSL_ERROR_LIMIT)) | 15 (((code) >= SSL_ERROR_BASE) && ((code) < SSL_ERROR_LIMIT)) |
17 | 16 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 187 |
189 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_VERSION = (SSL_ERROR_BASE + 124), | 188 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_VERSION = (SSL_ERROR_BASE + 124), |
190 | 189 |
191 SSL_ERROR_RX_UNEXPECTED_CERT_STATUS = (SSL_ERROR_BASE + 125), | 190 SSL_ERROR_RX_UNEXPECTED_CERT_STATUS = (SSL_ERROR_BASE + 125), |
192 | 191 |
193 SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */ | 192 SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */ |
194 } SSLErrorCodes; | 193 } SSLErrorCodes; |
195 #endif /* NO_SECURITY_ERROR_ENUM */ | 194 #endif /* NO_SECURITY_ERROR_ENUM */ |
196 | 195 |
197 #endif /* __SSL_ERR_H_ */ | 196 #endif /* __SSL_ERR_H_ */ |
OLD | NEW |