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.8 2009/11/06 20:11:28 nelson%bolyard.com Exp $ */ | 39 /* $Id: sslerr.h,v 1.10 2010/02/03 03:44:29 wtc%google.com 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 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 SSL_ERROR_CERTIFICATE_UNOBTAINABLE_ALERT = (SSL_ERROR_BASE + 105), | 190 SSL_ERROR_CERTIFICATE_UNOBTAINABLE_ALERT = (SSL_ERROR_BASE + 105), |
191 SSL_ERROR_UNRECOGNIZED_NAME_ALERT = (SSL_ERROR_BASE + 106), | 191 SSL_ERROR_UNRECOGNIZED_NAME_ALERT = (SSL_ERROR_BASE + 106), |
192 SSL_ERROR_BAD_CERT_STATUS_RESPONSE_ALERT = (SSL_ERROR_BASE + 107), | 192 SSL_ERROR_BAD_CERT_STATUS_RESPONSE_ALERT = (SSL_ERROR_BASE + 107), |
193 SSL_ERROR_BAD_CERT_HASH_VALUE_ALERT = (SSL_ERROR_BASE + 108), | 193 SSL_ERROR_BAD_CERT_HASH_VALUE_ALERT = (SSL_ERROR_BASE + 108), |
194 | 194 |
195 SSL_ERROR_RX_UNEXPECTED_NEW_SESSION_TICKET = (SSL_ERROR_BASE + 109), | 195 SSL_ERROR_RX_UNEXPECTED_NEW_SESSION_TICKET = (SSL_ERROR_BASE + 109), |
196 SSL_ERROR_RX_MALFORMED_NEW_SESSION_TICKET = (SSL_ERROR_BASE + 110), | 196 SSL_ERROR_RX_MALFORMED_NEW_SESSION_TICKET = (SSL_ERROR_BASE + 110), |
197 | 197 |
198 SSL_ERROR_DECOMPRESSION_FAILURE = (SSL_ERROR_BASE + 111), | 198 SSL_ERROR_DECOMPRESSION_FAILURE = (SSL_ERROR_BASE + 111), |
199 SSL_ERROR_RENEGOTIATION_NOT_ALLOWED = (SSL_ERROR_BASE + 112), | 199 SSL_ERROR_RENEGOTIATION_NOT_ALLOWED = (SSL_ERROR_BASE + 112), |
| 200 SSL_ERROR_UNSAFE_NEGOTIATION = (SSL_ERROR_BASE + 113), |
| 201 |
| 202 SSL_ERROR_RX_UNEXPECTED_UNCOMPRESSED_RECORD = (SSL_ERROR_BASE + 114), |
200 | 203 |
201 SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */ | 204 SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */ |
202 } SSLErrorCodes; | 205 } SSLErrorCodes; |
203 #endif /* NO_SECURITY_ERROR_ENUM */ | 206 #endif /* NO_SECURITY_ERROR_ENUM */ |
204 | 207 |
205 #endif /* __SSL_ERR_H_ */ | 208 #endif /* __SSL_ERR_H_ */ |
OLD | NEW |