| 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 * This Source Code Form is subject to the terms of the Mozilla Public |
| 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 5 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 6 * | 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 7 * The contents of this file are subject to the Mozilla Public License Version | 7 /* $Id: sslerr.h,v 1.25 2012/07/13 00:51:57 wtc%google.com Exp $ */ |
| 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 | |
| 10 * http://www.mozilla.org/MPL/ | |
| 11 * | |
| 12 * Software distributed under the License is distributed on an "AS IS" basis, | |
| 13 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
| 14 * for the specific language governing rights and limitations under the | |
| 15 * License. | |
| 16 * | |
| 17 * The Original Code is the Netscape security libraries. | |
| 18 * | |
| 19 * The Initial Developer of the Original Code is | |
| 20 * Netscape Communications Corporation. | |
| 21 * Portions created by the Initial Developer are Copyright (C) 1994-2000 | |
| 22 * the Initial Developer. All Rights Reserved. | |
| 23 * | |
| 24 * Contributor(s): | |
| 25 * | |
| 26 * Alternatively, the contents of this file may be used under the terms of | |
| 27 * either the GNU General Public License Version 2 or later (the "GPL"), or | |
| 28 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | |
| 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 | |
| 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 | |
| 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 | |
| 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. | |
| 37 * | |
| 38 * ***** END LICENSE BLOCK ***** */ | |
| 39 /* $Id: sslerr.h,v 1.20 2012/03/11 04:32:35 wtc%google.com Exp $ */ | |
| 40 #ifndef __SSL_ERR_H_ | 8 #ifndef __SSL_ERR_H_ |
| 41 #define __SSL_ERR_H_ | 9 #define __SSL_ERR_H_ |
| 42 | 10 |
| 43 | 11 |
| 44 #define SSL_ERROR_BASE (-0x3000) | 12 #define SSL_ERROR_BASE (-0x3000) |
| 45 #define SSL_ERROR_LIMIT (SSL_ERROR_BASE + 1000) | 13 #define SSL_ERROR_LIMIT (SSL_ERROR_BASE + 1000) |
| 46 | 14 |
| 47 #define IS_SSL_ERROR(code) \ | 15 #define IS_SSL_ERROR(code) \ |
| 48 (((code) >= SSL_ERROR_BASE) && ((code) < SSL_ERROR_LIMIT)) | 16 (((code) >= SSL_ERROR_BASE) && ((code) < SSL_ERROR_LIMIT)) |
| 49 | 17 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 SSL_ERROR_IV_PARAM_FAILURE = (SSL_ERROR_BASE + 79), | 131 SSL_ERROR_IV_PARAM_FAILURE = (SSL_ERROR_BASE + 79), |
| 164 SSL_ERROR_INIT_CIPHER_SUITE_FAILURE = (SSL_ERROR_BASE + 80), | 132 SSL_ERROR_INIT_CIPHER_SUITE_FAILURE = (SSL_ERROR_BASE + 80), |
| 165 SSL_ERROR_SESSION_KEY_GEN_FAILURE = (SSL_ERROR_BASE + 81), | 133 SSL_ERROR_SESSION_KEY_GEN_FAILURE = (SSL_ERROR_BASE + 81), |
| 166 SSL_ERROR_NO_SERVER_KEY_FOR_ALG = (SSL_ERROR_BASE + 82), | 134 SSL_ERROR_NO_SERVER_KEY_FOR_ALG = (SSL_ERROR_BASE + 82), |
| 167 SSL_ERROR_TOKEN_INSERTION_REMOVAL = (SSL_ERROR_BASE + 83), | 135 SSL_ERROR_TOKEN_INSERTION_REMOVAL = (SSL_ERROR_BASE + 83), |
| 168 SSL_ERROR_TOKEN_SLOT_NOT_FOUND = (SSL_ERROR_BASE + 84), | 136 SSL_ERROR_TOKEN_SLOT_NOT_FOUND = (SSL_ERROR_BASE + 84), |
| 169 SSL_ERROR_NO_COMPRESSION_OVERLAP = (SSL_ERROR_BASE + 85), | 137 SSL_ERROR_NO_COMPRESSION_OVERLAP = (SSL_ERROR_BASE + 85), |
| 170 SSL_ERROR_HANDSHAKE_NOT_COMPLETED = (SSL_ERROR_BASE + 86), | 138 SSL_ERROR_HANDSHAKE_NOT_COMPLETED = (SSL_ERROR_BASE + 86), |
| 171 SSL_ERROR_BAD_HANDSHAKE_HASH_VALUE = (SSL_ERROR_BASE + 87), | 139 SSL_ERROR_BAD_HANDSHAKE_HASH_VALUE = (SSL_ERROR_BASE + 87), |
| 172 SSL_ERROR_CERT_KEA_MISMATCH = (SSL_ERROR_BASE + 88), | 140 SSL_ERROR_CERT_KEA_MISMATCH = (SSL_ERROR_BASE + 88), |
| 141 /* SSL_ERROR_NO_TRUSTED_SSL_CLIENT_CA became obsolete in NSS 3.14. */ |
| 173 SSL_ERROR_NO_TRUSTED_SSL_CLIENT_CA = (SSL_ERROR_BASE + 89), | 142 SSL_ERROR_NO_TRUSTED_SSL_CLIENT_CA = (SSL_ERROR_BASE + 89), |
| 174 SSL_ERROR_SESSION_NOT_FOUND = (SSL_ERROR_BASE + 90), | 143 SSL_ERROR_SESSION_NOT_FOUND = (SSL_ERROR_BASE + 90), |
| 175 | 144 |
| 176 SSL_ERROR_DECRYPTION_FAILED_ALERT = (SSL_ERROR_BASE + 91), | 145 SSL_ERROR_DECRYPTION_FAILED_ALERT = (SSL_ERROR_BASE + 91), |
| 177 SSL_ERROR_RECORD_OVERFLOW_ALERT = (SSL_ERROR_BASE + 92), | 146 SSL_ERROR_RECORD_OVERFLOW_ALERT = (SSL_ERROR_BASE + 92), |
| 178 SSL_ERROR_UNKNOWN_CA_ALERT = (SSL_ERROR_BASE + 93), | 147 SSL_ERROR_UNKNOWN_CA_ALERT = (SSL_ERROR_BASE + 93), |
| 179 SSL_ERROR_ACCESS_DENIED_ALERT = (SSL_ERROR_BASE + 94), | 148 SSL_ERROR_ACCESS_DENIED_ALERT = (SSL_ERROR_BASE + 94), |
| 180 SSL_ERROR_DECODE_ERROR_ALERT = (SSL_ERROR_BASE + 95), | 149 SSL_ERROR_DECODE_ERROR_ALERT = (SSL_ERROR_BASE + 95), |
| 181 SSL_ERROR_DECRYPT_ERROR_ALERT = (SSL_ERROR_BASE + 96), | 150 SSL_ERROR_DECRYPT_ERROR_ALERT = (SSL_ERROR_BASE + 96), |
| 182 SSL_ERROR_EXPORT_RESTRICTION_ALERT = (SSL_ERROR_BASE + 97), | 151 SSL_ERROR_EXPORT_RESTRICTION_ALERT = (SSL_ERROR_BASE + 97), |
| (...skipping 22 matching lines...) Expand all Loading... |
| 205 | 174 |
| 206 SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY = (SSL_ERROR_BASE + 115), | 175 SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY = (SSL_ERROR_BASE + 115), |
| 207 | 176 |
| 208 SSL_ERROR_NEXT_PROTOCOL_DATA_INVALID = (SSL_ERROR_BASE + 116), | 177 SSL_ERROR_NEXT_PROTOCOL_DATA_INVALID = (SSL_ERROR_BASE + 116), |
| 209 | 178 |
| 210 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SSL2 = (SSL_ERROR_BASE + 117), | 179 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SSL2 = (SSL_ERROR_BASE + 117), |
| 211 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SERVERS = (SSL_ERROR_BASE + 118), | 180 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SERVERS = (SSL_ERROR_BASE + 118), |
| 212 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_CLIENTS = (SSL_ERROR_BASE + 119), | 181 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_CLIENTS = (SSL_ERROR_BASE + 119), |
| 213 | 182 |
| 214 SSL_ERROR_INVALID_VERSION_RANGE = (SSL_ERROR_BASE + 120), | 183 SSL_ERROR_INVALID_VERSION_RANGE = (SSL_ERROR_BASE + 120), |
| 215 | 184 SSL_ERROR_CIPHER_DISALLOWED_FOR_VERSION»= (SSL_ERROR_BASE + 121), |
| 216 SSL_ERROR_RX_UNEXPECTED_CERT_STATUS = (SSL_ERROR_BASE + 121), | |
| 217 | 185 |
| 218 SSL_ERROR_RX_MALFORMED_HELLO_VERIFY_REQUEST = (SSL_ERROR_BASE + 122), | 186 SSL_ERROR_RX_MALFORMED_HELLO_VERIFY_REQUEST = (SSL_ERROR_BASE + 122), |
| 219 SSL_ERROR_RX_UNEXPECTED_HELLO_VERIFY_REQUEST = (SSL_ERROR_BASE + 123), | 187 SSL_ERROR_RX_UNEXPECTED_HELLO_VERIFY_REQUEST = (SSL_ERROR_BASE + 123), |
| 220 | 188 |
| 221 SSL_ERROR_BAD_CHANNEL_ID_DATA = (SSL_ERROR_BASE + 124), | 189 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_VERSION = (SSL_ERROR_BASE + 124), |
| 222 SSL_ERROR_INVALID_CHANNEL_ID_KEY = (SSL_ERROR_BASE + 125), | 190 |
| 223 SSL_ERROR_GET_CHANNEL_ID_FAILED = (SSL_ERROR_BASE + 126), | 191 SSL_ERROR_RX_UNEXPECTED_CERT_STATUS = (SSL_ERROR_BASE + 125), |
| 192 |
| 193 SSL_ERROR_BAD_CHANNEL_ID_DATA = (SSL_ERROR_BASE + 126), |
| 194 SSL_ERROR_INVALID_CHANNEL_ID_KEY = (SSL_ERROR_BASE + 127), |
| 195 SSL_ERROR_GET_CHANNEL_ID_FAILED = (SSL_ERROR_BASE + 128), |
| 224 | 196 |
| 225 SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */ | 197 SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */ |
| 226 } SSLErrorCodes; | 198 } SSLErrorCodes; |
| 227 #endif /* NO_SECURITY_ERROR_ENUM */ | 199 #endif /* NO_SECURITY_ERROR_ENUM */ |
| 228 | 200 |
| 229 #endif /* __SSL_ERR_H_ */ | 201 #endif /* __SSL_ERR_H_ */ |
| OLD | NEW |