| 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: sslerr.h,v 1.25 2012/07/13 00:51:57 wtc%google.com Exp $ */ | 7 /* $Id: sslerr.h,v 1.24 2012/05/08 00:10:56 wtc%google.com Exp $ */ |
| 8 #ifndef __SSL_ERR_H_ | 8 #ifndef __SSL_ERR_H_ |
| 9 #define __SSL_ERR_H_ | 9 #define __SSL_ERR_H_ |
| 10 | 10 |
| 11 | 11 |
| 12 #define SSL_ERROR_BASE (-0x3000) | 12 #define SSL_ERROR_BASE (-0x3000) |
| 13 #define SSL_ERROR_LIMIT (SSL_ERROR_BASE + 1000) | 13 #define SSL_ERROR_LIMIT (SSL_ERROR_BASE + 1000) |
| 14 | 14 |
| 15 #define IS_SSL_ERROR(code) \ | 15 #define IS_SSL_ERROR(code) \ |
| 16 (((code) >= SSL_ERROR_BASE) && ((code) < SSL_ERROR_LIMIT)) | 16 (((code) >= SSL_ERROR_BASE) && ((code) < SSL_ERROR_LIMIT)) |
| 17 | 17 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 SSL_ERROR_IV_PARAM_FAILURE = (SSL_ERROR_BASE + 79), | 131 SSL_ERROR_IV_PARAM_FAILURE = (SSL_ERROR_BASE + 79), |
| 132 SSL_ERROR_INIT_CIPHER_SUITE_FAILURE = (SSL_ERROR_BASE + 80), | 132 SSL_ERROR_INIT_CIPHER_SUITE_FAILURE = (SSL_ERROR_BASE + 80), |
| 133 SSL_ERROR_SESSION_KEY_GEN_FAILURE = (SSL_ERROR_BASE + 81), | 133 SSL_ERROR_SESSION_KEY_GEN_FAILURE = (SSL_ERROR_BASE + 81), |
| 134 SSL_ERROR_NO_SERVER_KEY_FOR_ALG = (SSL_ERROR_BASE + 82), | 134 SSL_ERROR_NO_SERVER_KEY_FOR_ALG = (SSL_ERROR_BASE + 82), |
| 135 SSL_ERROR_TOKEN_INSERTION_REMOVAL = (SSL_ERROR_BASE + 83), | 135 SSL_ERROR_TOKEN_INSERTION_REMOVAL = (SSL_ERROR_BASE + 83), |
| 136 SSL_ERROR_TOKEN_SLOT_NOT_FOUND = (SSL_ERROR_BASE + 84), | 136 SSL_ERROR_TOKEN_SLOT_NOT_FOUND = (SSL_ERROR_BASE + 84), |
| 137 SSL_ERROR_NO_COMPRESSION_OVERLAP = (SSL_ERROR_BASE + 85), | 137 SSL_ERROR_NO_COMPRESSION_OVERLAP = (SSL_ERROR_BASE + 85), |
| 138 SSL_ERROR_HANDSHAKE_NOT_COMPLETED = (SSL_ERROR_BASE + 86), | 138 SSL_ERROR_HANDSHAKE_NOT_COMPLETED = (SSL_ERROR_BASE + 86), |
| 139 SSL_ERROR_BAD_HANDSHAKE_HASH_VALUE = (SSL_ERROR_BASE + 87), | 139 SSL_ERROR_BAD_HANDSHAKE_HASH_VALUE = (SSL_ERROR_BASE + 87), |
| 140 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. */ |
| 141 SSL_ERROR_NO_TRUSTED_SSL_CLIENT_CA = (SSL_ERROR_BASE + 89), | 142 SSL_ERROR_NO_TRUSTED_SSL_CLIENT_CA = (SSL_ERROR_BASE + 89), |
| 142 SSL_ERROR_SESSION_NOT_FOUND = (SSL_ERROR_BASE + 90), | 143 SSL_ERROR_SESSION_NOT_FOUND = (SSL_ERROR_BASE + 90), |
| 143 | 144 |
| 144 SSL_ERROR_DECRYPTION_FAILED_ALERT = (SSL_ERROR_BASE + 91), | 145 SSL_ERROR_DECRYPTION_FAILED_ALERT = (SSL_ERROR_BASE + 91), |
| 145 SSL_ERROR_RECORD_OVERFLOW_ALERT = (SSL_ERROR_BASE + 92), | 146 SSL_ERROR_RECORD_OVERFLOW_ALERT = (SSL_ERROR_BASE + 92), |
| 146 SSL_ERROR_UNKNOWN_CA_ALERT = (SSL_ERROR_BASE + 93), | 147 SSL_ERROR_UNKNOWN_CA_ALERT = (SSL_ERROR_BASE + 93), |
| 147 SSL_ERROR_ACCESS_DENIED_ALERT = (SSL_ERROR_BASE + 94), | 148 SSL_ERROR_ACCESS_DENIED_ALERT = (SSL_ERROR_BASE + 94), |
| 148 SSL_ERROR_DECODE_ERROR_ALERT = (SSL_ERROR_BASE + 95), | 149 SSL_ERROR_DECODE_ERROR_ALERT = (SSL_ERROR_BASE + 95), |
| 149 SSL_ERROR_DECRYPT_ERROR_ALERT = (SSL_ERROR_BASE + 96), | 150 SSL_ERROR_DECRYPT_ERROR_ALERT = (SSL_ERROR_BASE + 96), |
| 150 SSL_ERROR_EXPORT_RESTRICTION_ALERT = (SSL_ERROR_BASE + 97), | 151 SSL_ERROR_EXPORT_RESTRICTION_ALERT = (SSL_ERROR_BASE + 97), |
| (...skipping 21 matching lines...) Expand all Loading... |
| 172 SSL_ERROR_RX_UNEXPECTED_UNCOMPRESSED_RECORD = (SSL_ERROR_BASE + 114), | 173 SSL_ERROR_RX_UNEXPECTED_UNCOMPRESSED_RECORD = (SSL_ERROR_BASE + 114), |
| 173 | 174 |
| 174 SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY = (SSL_ERROR_BASE + 115), | 175 SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY = (SSL_ERROR_BASE + 115), |
| 175 | 176 |
| 176 SSL_ERROR_NEXT_PROTOCOL_DATA_INVALID = (SSL_ERROR_BASE + 116), | 177 SSL_ERROR_NEXT_PROTOCOL_DATA_INVALID = (SSL_ERROR_BASE + 116), |
| 177 | 178 |
| 178 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SSL2 = (SSL_ERROR_BASE + 117), | 179 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SSL2 = (SSL_ERROR_BASE + 117), |
| 179 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SERVERS = (SSL_ERROR_BASE + 118), | 180 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SERVERS = (SSL_ERROR_BASE + 118), |
| 180 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_CLIENTS = (SSL_ERROR_BASE + 119), | 181 SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_CLIENTS = (SSL_ERROR_BASE + 119), |
| 181 | 182 |
| 183 SSL_ERROR_INVALID_VERSION_RANGE = (SSL_ERROR_BASE + 120), |
| 184 SSL_ERROR_CIPHER_DISALLOWED_FOR_VERSION = (SSL_ERROR_BASE + 121), |
| 185 |
| 186 SSL_ERROR_RX_MALFORMED_HELLO_VERIFY_REQUEST = (SSL_ERROR_BASE + 122), |
| 187 SSL_ERROR_RX_UNEXPECTED_HELLO_VERIFY_REQUEST = (SSL_ERROR_BASE + 123), |
| 188 |
| 182 SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */ | 189 SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */ |
| 183 } SSLErrorCodes; | 190 } SSLErrorCodes; |
| 184 #endif /* NO_SECURITY_ERROR_ENUM */ | 191 #endif /* NO_SECURITY_ERROR_ENUM */ |
| 185 | 192 |
| 186 #endif /* __SSL_ERR_H_ */ | 193 #endif /* __SSL_ERR_H_ */ |
| OLD | NEW |