OLD | NEW |
1 /* | 1 /* |
2 * Enumeration of all SSL-specific error codes. | 2 * Enumeration of all SSL-specific error codes. |
3 * | 3 * |
4 * ***** BEGIN LICENSE BLOCK ***** | 4 * ***** BEGIN LICENSE BLOCK ***** |
5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
6 * | 6 * |
7 * The contents of this file are subject to the Mozilla Public License Version | 7 * The contents of this file are subject to the Mozilla Public License Version |
8 * 1.1 (the "License"); you may not use this file except in compliance with | 8 * 1.1 (the "License"); you may not use this file except in compliance with |
9 * the License. You may obtain a copy of the License at | 9 * the License. You may obtain a copy of the License at |
10 * http://www.mozilla.org/MPL/ | 10 * http://www.mozilla.org/MPL/ |
(...skipping 18 matching lines...) Expand all Loading... |
29 * in which case the provisions of the GPL or the LGPL are applicable instead | 29 * in which case the provisions of the GPL or the LGPL are applicable instead |
30 * of those above. If you wish to allow use of your version of this file only | 30 * of those above. If you wish to allow use of your version of this file only |
31 * under the terms of either the GPL or the LGPL, and not to allow others to | 31 * under the terms of either the GPL or the LGPL, and not to allow others to |
32 * use your version of this file under the terms of the MPL, indicate your | 32 * use your version of this file under the terms of the MPL, indicate your |
33 * decision by deleting the provisions above and replace them with the notice | 33 * decision by deleting the provisions above and replace them with the notice |
34 * and other provisions required by the GPL or the LGPL. If you do not delete | 34 * and other provisions required by the GPL or the LGPL. If you do not delete |
35 * the provisions above, a recipient may use your version of this file under | 35 * the provisions above, a recipient may use your version of this file under |
36 * the terms of any one of the MPL, the GPL or the LGPL. | 36 * the terms of any one of the MPL, the GPL or the LGPL. |
37 * | 37 * |
38 * ***** END LICENSE BLOCK ***** */ | 38 * ***** END LICENSE BLOCK ***** */ |
39 /* $Id: sslerr.h,v 1.11.2.2 2010/09/01 19:47:11 wtc%google.com Exp $ */ | 39 /* $Id: sslerr.h,v 1.19 2012/02/11 12:55:58 kaie%kuix.de Exp $ */ |
40 #ifndef __SSL_ERR_H_ | 40 #ifndef __SSL_ERR_H_ |
41 #define __SSL_ERR_H_ | 41 #define __SSL_ERR_H_ |
42 | 42 |
43 | 43 |
44 #define SSL_ERROR_BASE (-0x3000) | 44 #define SSL_ERROR_BASE (-0x3000) |
45 #define SSL_ERROR_LIMIT (SSL_ERROR_BASE + 1000) | 45 #define SSL_ERROR_LIMIT (SSL_ERROR_BASE + 1000) |
46 | 46 |
47 #define IS_SSL_ERROR(code) \ | 47 #define IS_SSL_ERROR(code) \ |
48 (((code) >= SSL_ERROR_BASE) && ((code) < SSL_ERROR_LIMIT)) | 48 (((code) >= SSL_ERROR_BASE) && ((code) < SSL_ERROR_LIMIT)) |
49 | 49 |
50 #ifndef NO_SECURITY_ERROR_ENUM | 50 #ifndef NO_SECURITY_ERROR_ENUM |
51 typedef enum { | 51 typedef enum { |
52 SSL_ERROR_EXPORT_ONLY_SERVER = (SSL_ERROR_BASE + 0), | 52 SSL_ERROR_EXPORT_ONLY_SERVER = (SSL_ERROR_BASE + 0), |
53 SSL_ERROR_US_ONLY_SERVER = (SSL_ERROR_BASE + 1), | 53 SSL_ERROR_US_ONLY_SERVER = (SSL_ERROR_BASE + 1), |
54 SSL_ERROR_NO_CYPHER_OVERLAP = (SSL_ERROR_BASE + 2), | 54 SSL_ERROR_NO_CYPHER_OVERLAP = (SSL_ERROR_BASE + 2), |
55 /* | 55 /* |
56 * Received an alert reporting what we did wrong. (more alerts below) | 56 * Received an alert reporting what we did wrong. (more alerts below) |
57 */ | 57 */ |
58 SSL_ERROR_NO_CERTIFICATE /*_ALERT */ = (SSL_ERROR_BASE + 3), | 58 SSL_ERROR_NO_CERTIFICATE /*_ALERT */ = (SSL_ERROR_BASE + 3), |
59 SSL_ERROR_BAD_CERTIFICATE = (SSL_ERROR_BASE + 4), | 59 SSL_ERROR_BAD_CERTIFICATE = (SSL_ERROR_BASE + 4), |
| 60 SSL_ERROR_UNUSED_5 = (SSL_ERROR_BASE + 5), |
60 /* error 5 is obsolete */ | 61 /* error 5 is obsolete */ |
61 SSL_ERROR_BAD_CLIENT = (SSL_ERROR_BASE + 6), | 62 SSL_ERROR_BAD_CLIENT = (SSL_ERROR_BASE + 6), |
62 SSL_ERROR_BAD_SERVER = (SSL_ERROR_BASE + 7), | 63 SSL_ERROR_BAD_SERVER = (SSL_ERROR_BASE + 7), |
63 SSL_ERROR_UNSUPPORTED_CERTIFICATE_TYPE = (SSL_ERROR_BASE + 8), | 64 SSL_ERROR_UNSUPPORTED_CERTIFICATE_TYPE = (SSL_ERROR_BASE + 8), |
64 SSL_ERROR_UNSUPPORTED_VERSION = (SSL_ERROR_BASE + 9), | 65 SSL_ERROR_UNSUPPORTED_VERSION = (SSL_ERROR_BASE + 9), |
| 66 SSL_ERROR_UNUSED_10 = (SSL_ERROR_BASE + 10), |
65 /* error 10 is obsolete */ | 67 /* error 10 is obsolete */ |
66 SSL_ERROR_WRONG_CERTIFICATE = (SSL_ERROR_BASE + 11), | 68 SSL_ERROR_WRONG_CERTIFICATE = (SSL_ERROR_BASE + 11), |
67 SSL_ERROR_BAD_CERT_DOMAIN = (SSL_ERROR_BASE + 12), | 69 SSL_ERROR_BAD_CERT_DOMAIN = (SSL_ERROR_BASE + 12), |
68 SSL_ERROR_POST_WARNING = (SSL_ERROR_BASE + 13), | 70 SSL_ERROR_POST_WARNING = (SSL_ERROR_BASE + 13), |
69 SSL_ERROR_SSL2_DISABLED = (SSL_ERROR_BASE + 14), | 71 SSL_ERROR_SSL2_DISABLED = (SSL_ERROR_BASE + 14), |
70 SSL_ERROR_BAD_MAC_READ = (SSL_ERROR_BASE + 15), | 72 SSL_ERROR_BAD_MAC_READ = (SSL_ERROR_BASE + 15), |
71 /* | 73 /* |
72 * Received an alert reporting what we did wrong. | 74 * Received an alert reporting what we did wrong. |
73 * (two more alerts above, and many more below) | 75 * (two more alerts above, and many more below) |
74 */ | 76 */ |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 SSL_ERROR_RX_MALFORMED_NEW_SESSION_TICKET = (SSL_ERROR_BASE + 110), | 198 SSL_ERROR_RX_MALFORMED_NEW_SESSION_TICKET = (SSL_ERROR_BASE + 110), |
197 | 199 |
198 SSL_ERROR_DECOMPRESSION_FAILURE = (SSL_ERROR_BASE + 111), | 200 SSL_ERROR_DECOMPRESSION_FAILURE = (SSL_ERROR_BASE + 111), |
199 SSL_ERROR_RENEGOTIATION_NOT_ALLOWED = (SSL_ERROR_BASE + 112), | 201 SSL_ERROR_RENEGOTIATION_NOT_ALLOWED = (SSL_ERROR_BASE + 112), |
200 SSL_ERROR_UNSAFE_NEGOTIATION = (SSL_ERROR_BASE + 113), | 202 SSL_ERROR_UNSAFE_NEGOTIATION = (SSL_ERROR_BASE + 113), |
201 | 203 |
202 SSL_ERROR_RX_UNEXPECTED_UNCOMPRESSED_RECORD = (SSL_ERROR_BASE + 114), | 204 SSL_ERROR_RX_UNEXPECTED_UNCOMPRESSED_RECORD = (SSL_ERROR_BASE + 114), |
203 | 205 |
204 SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY = (SSL_ERROR_BASE + 115), | 206 SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY = (SSL_ERROR_BASE + 115), |
205 | 207 |
206 SSL_ERROR_RX_UNEXPECTED_CERT_STATUS» = (SSL_ERROR_BASE + 116), | 208 SSL_ERROR_NEXT_PROTOCOL_DATA_INVALID» = (SSL_ERROR_BASE + 116), |
207 SSL_ERROR_NEXT_PROTOCOL_DATA_INVALID» = (SSL_ERROR_BASE + 117), | 209 |
| 210 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SSL2 = (SSL_ERROR_BASE + 117), |
| 211 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SERVERS = (SSL_ERROR_BASE + 118), |
| 212 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_CLIENTS = (SSL_ERROR_BASE + 119), |
| 213 |
| 214 SSL_ERROR_RX_UNEXPECTED_CERT_STATUS = (SSL_ERROR_BASE + 120), |
208 | 215 |
209 SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */ | 216 SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */ |
210 } SSLErrorCodes; | 217 } SSLErrorCodes; |
211 #endif /* NO_SECURITY_ERROR_ENUM */ | 218 #endif /* NO_SECURITY_ERROR_ENUM */ |
212 | 219 |
213 #endif /* __SSL_ERR_H_ */ | 220 #endif /* __SSL_ERR_H_ */ |
OLD | NEW |