1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */

use nspr::PRErrorCode;

pub const SEC_ERROR_IO: PRErrorCode = -8192;
pub const SEC_ERROR_LIBRARY_FAILURE: PRErrorCode = -8191;
pub const SEC_ERROR_BAD_DATA: PRErrorCode = -8190;
pub const SEC_ERROR_OUTPUT_LEN: PRErrorCode = -8189;
pub const SEC_ERROR_INPUT_LEN: PRErrorCode = -8188;
pub const SEC_ERROR_INVALID_ARGS: PRErrorCode = -8187;
pub const SEC_ERROR_INVALID_ALGORITHM: PRErrorCode = -8186;
pub const SEC_ERROR_INVALID_AVA: PRErrorCode = -8185;
pub const SEC_ERROR_INVALID_TIME: PRErrorCode = -8184;
pub const SEC_ERROR_BAD_DER: PRErrorCode = -8183;
pub const SEC_ERROR_BAD_SIGNATURE: PRErrorCode = -8182;
pub const SEC_ERROR_EXPIRED_CERTIFICATE: PRErrorCode = -8181;
pub const SEC_ERROR_REVOKED_CERTIFICATE: PRErrorCode = -8180;
pub const SEC_ERROR_UNKNOWN_ISSUER: PRErrorCode = -8179;
pub const SEC_ERROR_BAD_KEY: PRErrorCode = -8178;
pub const SEC_ERROR_BAD_PASSWORD: PRErrorCode = -8177;
pub const SEC_ERROR_RETRY_PASSWORD: PRErrorCode = -8176;
pub const SEC_ERROR_NO_NODELOCK: PRErrorCode = -8175;
pub const SEC_ERROR_BAD_DATABASE: PRErrorCode = -8174;
pub const SEC_ERROR_NO_MEMORY: PRErrorCode = -8173;
pub const SEC_ERROR_UNTRUSTED_ISSUER: PRErrorCode = -8172;
pub const SEC_ERROR_UNTRUSTED_CERT: PRErrorCode = -8171;
pub const SEC_ERROR_DUPLICATE_CERT: PRErrorCode = -8170;
pub const SEC_ERROR_DUPLICATE_CERT_NAME: PRErrorCode = -8169;
pub const SEC_ERROR_ADDING_CERT: PRErrorCode = -8168;
pub const SEC_ERROR_FILING_KEY: PRErrorCode = -8167;
pub const SEC_ERROR_NO_KEY: PRErrorCode = -8166;
pub const SEC_ERROR_CERT_VALID: PRErrorCode = -8165;
pub const SEC_ERROR_CERT_NOT_VALID: PRErrorCode = -8164;
pub const SEC_ERROR_CERT_NO_RESPONSE: PRErrorCode = -8163;
pub const SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE: PRErrorCode = -8162;
pub const SEC_ERROR_CRL_EXPIRED: PRErrorCode = -8161;
pub const SEC_ERROR_CRL_BAD_SIGNATURE: PRErrorCode = -8160;
pub const SEC_ERROR_CRL_INVALID: PRErrorCode = -8159;
pub const SEC_ERROR_EXTENSION_VALUE_INVALID: PRErrorCode = -8158;
pub const SEC_ERROR_EXTENSION_NOT_FOUND: PRErrorCode = -8157;
pub const SEC_ERROR_CA_CERT_INVALID: PRErrorCode = -8156;
pub const SEC_ERROR_PATH_LEN_CONSTRAINT_INVALID: PRErrorCode = -8155;
pub const SEC_ERROR_CERT_USAGES_INVALID: PRErrorCode = -8154;
pub const SEC_INTERNAL_ONLY: PRErrorCode = -8153;
pub const SEC_ERROR_INVALID_KEY: PRErrorCode = -8152;
pub const SEC_ERROR_UNKNOWN_CRITICAL_EXTENSION: PRErrorCode = -8151;
pub const SEC_ERROR_OLD_CRL: PRErrorCode = -8150;
pub const SEC_ERROR_NO_EMAIL_CERT: PRErrorCode = -8149;
pub const SEC_ERROR_NO_RECIPIENT_CERTS_QUERY: PRErrorCode = -8148;
pub const SEC_ERROR_NOT_A_RECIPIENT: PRErrorCode = -8147;
pub const SEC_ERROR_PKCS7_KEYALG_MISMATCH: PRErrorCode = -8146;
pub const SEC_ERROR_PKCS7_BAD_SIGNATURE: PRErrorCode = -8145;
pub const SEC_ERROR_UNSUPPORTED_KEYALG: PRErrorCode = -8144;
pub const SEC_ERROR_DECRYPTION_DISALLOWED: PRErrorCode = -8143;
pub const XP_SEC_FORTEZZA_BAD_CARD: PRErrorCode = -8142;
pub const XP_SEC_FORTEZZA_NO_CARD: PRErrorCode = -8141;
pub const XP_SEC_FORTEZZA_NONE_SELECTED: PRErrorCode = -8140;
pub const XP_SEC_FORTEZZA_MORE_INFO: PRErrorCode = -8139;
pub const XP_SEC_FORTEZZA_PERSON_NOT_FOUND: PRErrorCode = -8138;
pub const XP_SEC_FORTEZZA_NO_MORE_INFO: PRErrorCode = -8137;
pub const XP_SEC_FORTEZZA_BAD_PIN: PRErrorCode = -8136;
pub const XP_SEC_FORTEZZA_PERSON_ERROR: PRErrorCode = -8135;
pub const SEC_ERROR_NO_KRL: PRErrorCode = -8134;
pub const SEC_ERROR_KRL_EXPIRED: PRErrorCode = -8133;
pub const SEC_ERROR_KRL_BAD_SIGNATURE: PRErrorCode = -8132;
pub const SEC_ERROR_REVOKED_KEY: PRErrorCode = -8131;
pub const SEC_ERROR_KRL_INVALID: PRErrorCode = -8130;
pub const SEC_ERROR_NEED_RANDOM: PRErrorCode = -8129;
pub const SEC_ERROR_NO_MODULE: PRErrorCode = -8128;
pub const SEC_ERROR_NO_TOKEN: PRErrorCode = -8127;
pub const SEC_ERROR_READ_ONLY: PRErrorCode = -8126;
pub const SEC_ERROR_NO_SLOT_SELECTED: PRErrorCode = -8125;
pub const SEC_ERROR_CERT_NICKNAME_COLLISION: PRErrorCode = -8124;
pub const SEC_ERROR_KEY_NICKNAME_COLLISION: PRErrorCode = -8123;
pub const SEC_ERROR_SAFE_NOT_CREATED: PRErrorCode = -8122;
pub const SEC_ERROR_BAGGAGE_NOT_CREATED: PRErrorCode = -8121;
pub const XP_JAVA_REMOVE_PRINCIPAL_ERROR: PRErrorCode = -8120;
pub const XP_JAVA_DELETE_PRIVILEGE_ERROR: PRErrorCode = -8119;
pub const XP_JAVA_CERT_NOT_EXISTS_ERROR: PRErrorCode = -8118;
pub const SEC_ERROR_BAD_EXPORT_ALGORITHM: PRErrorCode = -8117;
pub const SEC_ERROR_EXPORTING_CERTIFICATES: PRErrorCode = -8116;
pub const SEC_ERROR_IMPORTING_CERTIFICATES: PRErrorCode = -8115;
pub const SEC_ERROR_PKCS12_DECODING_PFX: PRErrorCode = -8114;
pub const SEC_ERROR_PKCS12_INVALID_MAC: PRErrorCode = -8113;
pub const SEC_ERROR_PKCS12_UNSUPPORTED_MAC_ALGORITHM: PRErrorCode = -8112;
pub const SEC_ERROR_PKCS12_UNSUPPORTED_TRANSPORT_MODE: PRErrorCode = -8111;
pub const SEC_ERROR_PKCS12_CORRUPT_PFX_STRUCTURE: PRErrorCode = -8110;
pub const SEC_ERROR_PKCS12_UNSUPPORTED_PBE_ALGORITHM: PRErrorCode = -8109;
pub const SEC_ERROR_PKCS12_UNSUPPORTED_VERSION: PRErrorCode = -8108;
pub const SEC_ERROR_PKCS12_PRIVACY_PASSWORD_INCORRECT: PRErrorCode = -8107;
pub const SEC_ERROR_PKCS12_CERT_COLLISION: PRErrorCode = -8106;
pub const SEC_ERROR_USER_CANCELLED: PRErrorCode = -8105;
pub const SEC_ERROR_PKCS12_DUPLICATE_DATA: PRErrorCode = -8104;
pub const SEC_ERROR_MESSAGE_SEND_ABORTED: PRErrorCode = -8103;
pub const SEC_ERROR_INADEQUATE_KEY_USAGE: PRErrorCode = -8102;
pub const SEC_ERROR_INADEQUATE_CERT_TYPE: PRErrorCode = -8101;
pub const SEC_ERROR_CERT_ADDR_MISMATCH: PRErrorCode = -8100;
pub const SEC_ERROR_PKCS12_UNABLE_TO_IMPORT_KEY: PRErrorCode = -8099;
pub const SEC_ERROR_PKCS12_IMPORTING_CERT_CHAIN: PRErrorCode = -8098;
pub const SEC_ERROR_PKCS12_UNABLE_TO_LOCATE_OBJECT_BY_NAME: PRErrorCode = -8097;
pub const SEC_ERROR_PKCS12_UNABLE_TO_EXPORT_KEY: PRErrorCode = -8096;
pub const SEC_ERROR_PKCS12_UNABLE_TO_WRITE: PRErrorCode = -8095;
pub const SEC_ERROR_PKCS12_UNABLE_TO_READ: PRErrorCode = -8094;
pub const SEC_ERROR_PKCS12_KEY_DATABASE_NOT_INITIALIZED: PRErrorCode = -8093;
pub const SEC_ERROR_KEYGEN_FAIL: PRErrorCode = -8092;
pub const SEC_ERROR_INVALID_PASSWORD: PRErrorCode = -8091;
pub const SEC_ERROR_RETRY_OLD_PASSWORD: PRErrorCode = -8090;
pub const SEC_ERROR_BAD_NICKNAME: PRErrorCode = -8089;
pub const SEC_ERROR_NOT_FORTEZZA_ISSUER: PRErrorCode = -8088;
pub const SEC_ERROR_CANNOT_MOVE_SENSITIVE_KEY: PRErrorCode = -8087;
pub const SEC_ERROR_JS_INVALID_MODULE_NAME: PRErrorCode = -8086;
pub const SEC_ERROR_JS_INVALID_DLL: PRErrorCode = -8085;
pub const SEC_ERROR_JS_ADD_MOD_FAILURE: PRErrorCode = -8084;
pub const SEC_ERROR_JS_DEL_MOD_FAILURE: PRErrorCode = -8083;
pub const SEC_ERROR_OLD_KRL: PRErrorCode = -8082;
pub const SEC_ERROR_CKL_CONFLICT: PRErrorCode = -8081;
pub const SEC_ERROR_CERT_NOT_IN_NAME_SPACE: PRErrorCode = -8080;
pub const SEC_ERROR_KRL_NOT_YET_VALID: PRErrorCode = -8079;
pub const SEC_ERROR_CRL_NOT_YET_VALID: PRErrorCode = -8078;
pub const SEC_ERROR_UNKNOWN_CERT: PRErrorCode = -8077;
pub const SEC_ERROR_UNKNOWN_SIGNER: PRErrorCode = -8076;
pub const SEC_ERROR_CERT_BAD_ACCESS_LOCATION: PRErrorCode = -8075;
pub const SEC_ERROR_OCSP_UNKNOWN_RESPONSE_TYPE: PRErrorCode = -8074;
pub const SEC_ERROR_OCSP_BAD_HTTP_RESPONSE: PRErrorCode = -8073;
pub const SEC_ERROR_OCSP_MALFORMED_REQUEST: PRErrorCode = -8072;
pub const SEC_ERROR_OCSP_SERVER_ERROR: PRErrorCode = -8071;
pub const SEC_ERROR_OCSP_TRY_SERVER_LATER: PRErrorCode = -8070;
pub const SEC_ERROR_OCSP_REQUEST_NEEDS_SIG: PRErrorCode = -8069;
pub const SEC_ERROR_OCSP_UNAUTHORIZED_REQUEST: PRErrorCode = -8068;
pub const SEC_ERROR_OCSP_UNKNOWN_RESPONSE_STATUS: PRErrorCode = -8067;
pub const SEC_ERROR_OCSP_UNKNOWN_CERT: PRErrorCode = -8066;
pub const SEC_ERROR_OCSP_NOT_ENABLED: PRErrorCode = -8065;
pub const SEC_ERROR_OCSP_NO_DEFAULT_RESPONDER: PRErrorCode = -8064;
pub const SEC_ERROR_OCSP_MALFORMED_RESPONSE: PRErrorCode = -8063;
pub const SEC_ERROR_OCSP_UNAUTHORIZED_RESPONSE: PRErrorCode = -8062;
pub const SEC_ERROR_OCSP_FUTURE_RESPONSE: PRErrorCode = -8061;
pub const SEC_ERROR_OCSP_OLD_RESPONSE: PRErrorCode = -8060;
pub const SEC_ERROR_DIGEST_NOT_FOUND: PRErrorCode = -8059;
pub const SEC_ERROR_UNSUPPORTED_MESSAGE_TYPE: PRErrorCode = -8058;
pub const SEC_ERROR_MODULE_STUCK: PRErrorCode = -8057;
pub const SEC_ERROR_BAD_TEMPLATE: PRErrorCode = -8056;
pub const SEC_ERROR_CRL_NOT_FOUND: PRErrorCode = -8055;
pub const SEC_ERROR_REUSED_ISSUER_AND_SERIAL: PRErrorCode = -8054;
pub const SEC_ERROR_BUSY: PRErrorCode = -8053;
pub const SEC_ERROR_EXTRA_INPUT: PRErrorCode = -8052;
pub const SEC_ERROR_UNSUPPORTED_ELLIPTIC_CURVE: PRErrorCode = -8051;
pub const SEC_ERROR_UNSUPPORTED_EC_POINT_FORM: PRErrorCode = -8050;
pub const SEC_ERROR_UNRECOGNIZED_OID: PRErrorCode = -8049;
pub const SEC_ERROR_OCSP_INVALID_SIGNING_CERT: PRErrorCode = -8048;
pub const SEC_ERROR_REVOKED_CERTIFICATE_CRL: PRErrorCode = -8047;
pub const SEC_ERROR_REVOKED_CERTIFICATE_OCSP: PRErrorCode = -8046;
pub const SEC_ERROR_CRL_INVALID_VERSION: PRErrorCode = -8045;
pub const SEC_ERROR_CRL_V1_CRITICAL_EXTENSION: PRErrorCode = -8044;
pub const SEC_ERROR_CRL_UNKNOWN_CRITICAL_EXTENSION: PRErrorCode = -8043;
pub const SEC_ERROR_UNKNOWN_OBJECT_TYPE: PRErrorCode = -8042;
pub const SEC_ERROR_INCOMPATIBLE_PKCS11: PRErrorCode = -8041;
pub const SEC_ERROR_NO_EVENT: PRErrorCode = -8040;
pub const SEC_ERROR_CRL_ALREADY_EXISTS: PRErrorCode = -8039;
pub const SEC_ERROR_NOT_INITIALIZED: PRErrorCode = -8038;
pub const SEC_ERROR_TOKEN_NOT_LOGGED_IN: PRErrorCode = -8037;
pub const SEC_ERROR_OCSP_RESPONDER_CERT_INVALID: PRErrorCode = -8036;
pub const SEC_ERROR_OCSP_BAD_SIGNATURE: PRErrorCode = -8035;
pub const SEC_ERROR_OUT_OF_SEARCH_LIMITS: PRErrorCode = -8034;
pub const SEC_ERROR_INVALID_POLICY_MAPPING: PRErrorCode = -8033;
pub const SEC_ERROR_POLICY_VALIDATION_FAILED: PRErrorCode = -8032;
pub const SEC_ERROR_UNKNOWN_AIA_LOCATION_TYPE: PRErrorCode = -8031;
pub const SEC_ERROR_BAD_HTTP_RESPONSE: PRErrorCode = -8030;
pub const SEC_ERROR_BAD_LDAP_RESPONSE: PRErrorCode = -8029;
pub const SEC_ERROR_FAILED_TO_ENCODE_DATA: PRErrorCode = -8028;
pub const SEC_ERROR_BAD_INFO_ACCESS_LOCATION: PRErrorCode = -8027;
pub const SEC_ERROR_LIBPKIX_INTERNAL: PRErrorCode = -8026;
pub const SEC_ERROR_PKCS11_GENERAL_ERROR: PRErrorCode = -8025;
pub const SEC_ERROR_PKCS11_FUNCTION_FAILED: PRErrorCode = -8024;
pub const SEC_ERROR_PKCS11_DEVICE_ERROR: PRErrorCode = -8023;
pub const SEC_ERROR_BAD_INFO_ACCESS_METHOD: PRErrorCode = -8022;
pub const SEC_ERROR_CRL_IMPORT_FAILED: PRErrorCode = -8021;
pub const SEC_ERROR_EXPIRED_PASSWORD: PRErrorCode = -8020;
pub const SEC_ERROR_LOCKED_PASSWORD: PRErrorCode = -8019;
pub const SEC_ERROR_UNKNOWN_PKCS11_ERROR: PRErrorCode = -8018;
pub const SEC_ERROR_BAD_CRL_DP_URL: PRErrorCode = -8017;
pub const SEC_ERROR_CERT_SIGNATURE_ALGORITHM_DISABLED: PRErrorCode = -8016;
pub const SEC_ERROR_LEGACY_DATABASE: PRErrorCode = -8015;
pub const SEC_ERROR_APPLICATION_CALLBACK_ERROR: PRErrorCode = -8014;
pub const SEC_ERROR_END_OF_LIST: PRErrorCode = -8013;

pub const SSL_ERROR_EXPORT_ONLY_SERVER: PRErrorCode = -12288;
pub const SSL_ERROR_US_ONLY_SERVER: PRErrorCode = -12287;
pub const SSL_ERROR_NO_CYPHER_OVERLAP: PRErrorCode = -12286;
pub const SSL_ERROR_NO_CERTIFICATE: PRErrorCode = -12285;
pub const SSL_ERROR_BAD_CERTIFICATE: PRErrorCode = -12284;
pub const SSL_ERROR_UNUSED_5: PRErrorCode = -12283;
pub const SSL_ERROR_BAD_CLIENT: PRErrorCode = -12282;
pub const SSL_ERROR_BAD_SERVER: PRErrorCode = -12281;
pub const SSL_ERROR_UNSUPPORTED_CERTIFICATE_TYPE: PRErrorCode = -12280;
pub const SSL_ERROR_UNSUPPORTED_VERSION: PRErrorCode = -12279;
pub const SSL_ERROR_UNUSED_10: PRErrorCode = -12278;
pub const SSL_ERROR_WRONG_CERTIFICATE: PRErrorCode = -12277;
pub const SSL_ERROR_BAD_CERT_DOMAIN: PRErrorCode = -12276;
pub const SSL_ERROR_POST_WARNING: PRErrorCode = -12275;
pub const SSL_ERROR_SSL2_DISABLED: PRErrorCode = -12274;
pub const SSL_ERROR_BAD_MAC_READ: PRErrorCode = -12273;
pub const SSL_ERROR_BAD_MAC_ALERT: PRErrorCode = -12272;
pub const SSL_ERROR_BAD_CERT_ALERT: PRErrorCode = -12271;
pub const SSL_ERROR_REVOKED_CERT_ALERT: PRErrorCode = -12270;
pub const SSL_ERROR_EXPIRED_CERT_ALERT: PRErrorCode = -12269;
pub const SSL_ERROR_SSL_DISABLED: PRErrorCode = -12268;
pub const SSL_ERROR_FORTEZZA_PQG: PRErrorCode = -12267;
pub const SSL_ERROR_UNKNOWN_CIPHER_SUITE: PRErrorCode = -12266;
pub const SSL_ERROR_NO_CIPHERS_SUPPORTED: PRErrorCode = -12265;
pub const SSL_ERROR_BAD_BLOCK_PADDING: PRErrorCode = -12264;
pub const SSL_ERROR_RX_RECORD_TOO_LONG: PRErrorCode = -12263;
pub const SSL_ERROR_TX_RECORD_TOO_LONG: PRErrorCode = -12262;
pub const SSL_ERROR_RX_MALFORMED_HELLO_REQUEST: PRErrorCode = -12261;
pub const SSL_ERROR_RX_MALFORMED_CLIENT_HELLO: PRErrorCode = -12260;
pub const SSL_ERROR_RX_MALFORMED_SERVER_HELLO: PRErrorCode = -12259;
pub const SSL_ERROR_RX_MALFORMED_CERTIFICATE: PRErrorCode = -12258;
pub const SSL_ERROR_RX_MALFORMED_SERVER_KEY_EXCH: PRErrorCode = -12257;
pub const SSL_ERROR_RX_MALFORMED_CERT_REQUEST: PRErrorCode = -12256;
pub const SSL_ERROR_RX_MALFORMED_HELLO_DONE: PRErrorCode = -12255;
pub const SSL_ERROR_RX_MALFORMED_CERT_VERIFY: PRErrorCode = -12254;
pub const SSL_ERROR_RX_MALFORMED_CLIENT_KEY_EXCH: PRErrorCode = -12253;
pub const SSL_ERROR_RX_MALFORMED_FINISHED: PRErrorCode = -12252;
pub const SSL_ERROR_RX_MALFORMED_CHANGE_CIPHER: PRErrorCode = -12251;
pub const SSL_ERROR_RX_MALFORMED_ALERT: PRErrorCode = -12250;
pub const SSL_ERROR_RX_MALFORMED_HANDSHAKE: PRErrorCode = -12249;
pub const SSL_ERROR_RX_MALFORMED_APPLICATION_DATA: PRErrorCode = -12248;
pub const SSL_ERROR_RX_UNEXPECTED_HELLO_REQUEST: PRErrorCode = -12247;
pub const SSL_ERROR_RX_UNEXPECTED_CLIENT_HELLO: PRErrorCode = -12246;
pub const SSL_ERROR_RX_UNEXPECTED_SERVER_HELLO: PRErrorCode = -12245;
pub const SSL_ERROR_RX_UNEXPECTED_CERTIFICATE: PRErrorCode = -12244;
pub const SSL_ERROR_RX_UNEXPECTED_SERVER_KEY_EXCH: PRErrorCode = -12243;
pub const SSL_ERROR_RX_UNEXPECTED_CERT_REQUEST: PRErrorCode = -12242;
pub const SSL_ERROR_RX_UNEXPECTED_HELLO_DONE: PRErrorCode = -12241;
pub const SSL_ERROR_RX_UNEXPECTED_CERT_VERIFY: PRErrorCode = -12240;
pub const SSL_ERROR_RX_UNEXPECTED_CLIENT_KEY_EXCH: PRErrorCode = -12239;
pub const SSL_ERROR_RX_UNEXPECTED_FINISHED: PRErrorCode = -12238;
pub const SSL_ERROR_RX_UNEXPECTED_CHANGE_CIPHER: PRErrorCode = -12237;
pub const SSL_ERROR_RX_UNEXPECTED_ALERT: PRErrorCode = -12236;
pub const SSL_ERROR_RX_UNEXPECTED_HANDSHAKE: PRErrorCode = -12235;
pub const SSL_ERROR_RX_UNEXPECTED_APPLICATION_DATA: PRErrorCode = -12234;
pub const SSL_ERROR_RX_UNKNOWN_RECORD_TYPE: PRErrorCode = -12233;
pub const SSL_ERROR_RX_UNKNOWN_HANDSHAKE: PRErrorCode = -12232;
pub const SSL_ERROR_RX_UNKNOWN_ALERT: PRErrorCode = -12231;
pub const SSL_ERROR_CLOSE_NOTIFY_ALERT: PRErrorCode = -12230;
pub const SSL_ERROR_HANDSHAKE_UNEXPECTED_ALERT: PRErrorCode = -12229;
pub const SSL_ERROR_DECOMPRESSION_FAILURE_ALERT: PRErrorCode = -12228;
pub const SSL_ERROR_HANDSHAKE_FAILURE_ALERT: PRErrorCode = -12227;
pub const SSL_ERROR_ILLEGAL_PARAMETER_ALERT: PRErrorCode = -12226;
pub const SSL_ERROR_UNSUPPORTED_CERT_ALERT: PRErrorCode = -12225;
pub const SSL_ERROR_CERTIFICATE_UNKNOWN_ALERT: PRErrorCode = -12224;
pub const SSL_ERROR_GENERATE_RANDOM_FAILURE: PRErrorCode = -12223;
pub const SSL_ERROR_SIGN_HASHES_FAILURE: PRErrorCode = -12222;
pub const SSL_ERROR_EXTRACT_PUBLIC_KEY_FAILURE: PRErrorCode = -12221;
pub const SSL_ERROR_SERVER_KEY_EXCHANGE_FAILURE: PRErrorCode = -12220;
pub const SSL_ERROR_CLIENT_KEY_EXCHANGE_FAILURE: PRErrorCode = -12219;
pub const SSL_ERROR_ENCRYPTION_FAILURE: PRErrorCode = -12218;
pub const SSL_ERROR_DECRYPTION_FAILURE: PRErrorCode = -12217;
pub const SSL_ERROR_SOCKET_WRITE_FAILURE: PRErrorCode = -12216;
pub const SSL_ERROR_MD5_DIGEST_FAILURE: PRErrorCode = -12215;
pub const SSL_ERROR_SHA_DIGEST_FAILURE: PRErrorCode = -12214;
pub const SSL_ERROR_MAC_COMPUTATION_FAILURE: PRErrorCode = -12213;
pub const SSL_ERROR_SYM_KEY_CONTEXT_FAILURE: PRErrorCode = -12212;
pub const SSL_ERROR_SYM_KEY_UNWRAP_FAILURE: PRErrorCode = -12211;
pub const SSL_ERROR_PUB_KEY_SIZE_LIMIT_EXCEEDED: PRErrorCode = -12210;
pub const SSL_ERROR_IV_PARAM_FAILURE: PRErrorCode = -12209;
pub const SSL_ERROR_INIT_CIPHER_SUITE_FAILURE: PRErrorCode = -12208;
pub const SSL_ERROR_SESSION_KEY_GEN_FAILURE: PRErrorCode = -12207;
pub const SSL_ERROR_NO_SERVER_KEY_FOR_ALG: PRErrorCode = -12206;
pub const SSL_ERROR_TOKEN_INSERTION_REMOVAL: PRErrorCode = -12205;
pub const SSL_ERROR_TOKEN_SLOT_NOT_FOUND: PRErrorCode = -12204;
pub const SSL_ERROR_NO_COMPRESSION_OVERLAP: PRErrorCode = -12203;
pub const SSL_ERROR_HANDSHAKE_NOT_COMPLETED: PRErrorCode = -12202;
pub const SSL_ERROR_BAD_HANDSHAKE_HASH_VALUE: PRErrorCode = -12201;
pub const SSL_ERROR_CERT_KEA_MISMATCH: PRErrorCode = -12200;
pub const SSL_ERROR_NO_TRUSTED_SSL_CLIENT_CA: PRErrorCode = -12199;
pub const SSL_ERROR_SESSION_NOT_FOUND: PRErrorCode = -12198;
pub const SSL_ERROR_DECRYPTION_FAILED_ALERT: PRErrorCode = -12197;
pub const SSL_ERROR_RECORD_OVERFLOW_ALERT: PRErrorCode = -12196;
pub const SSL_ERROR_UNKNOWN_CA_ALERT: PRErrorCode = -12195;
pub const SSL_ERROR_ACCESS_DENIED_ALERT: PRErrorCode = -12194;
pub const SSL_ERROR_DECODE_ERROR_ALERT: PRErrorCode = -12193;
pub const SSL_ERROR_DECRYPT_ERROR_ALERT: PRErrorCode = -12192;
pub const SSL_ERROR_EXPORT_RESTRICTION_ALERT: PRErrorCode = -12191;
pub const SSL_ERROR_PROTOCOL_VERSION_ALERT: PRErrorCode = -12190;
pub const SSL_ERROR_INSUFFICIENT_SECURITY_ALERT: PRErrorCode = -12189;
pub const SSL_ERROR_INTERNAL_ERROR_ALERT: PRErrorCode = -12188;
pub const SSL_ERROR_USER_CANCELED_ALERT: PRErrorCode = -12187;
pub const SSL_ERROR_NO_RENEGOTIATION_ALERT: PRErrorCode = -12186;
pub const SSL_ERROR_SERVER_CACHE_NOT_CONFIGURED: PRErrorCode = -12185;
pub const SSL_ERROR_UNSUPPORTED_EXTENSION_ALERT: PRErrorCode = -12184;
pub const SSL_ERROR_CERTIFICATE_UNOBTAINABLE_ALERT: PRErrorCode = -12183;
pub const SSL_ERROR_UNRECOGNIZED_NAME_ALERT: PRErrorCode = -12182;
pub const SSL_ERROR_BAD_CERT_STATUS_RESPONSE_ALERT: PRErrorCode = -12181;
pub const SSL_ERROR_BAD_CERT_HASH_VALUE_ALERT: PRErrorCode = -12180;
pub const SSL_ERROR_RX_UNEXPECTED_NEW_SESSION_TICKET: PRErrorCode = -12179;
pub const SSL_ERROR_RX_MALFORMED_NEW_SESSION_TICKET: PRErrorCode = -12178;
pub const SSL_ERROR_DECOMPRESSION_FAILURE: PRErrorCode = -12177;
pub const SSL_ERROR_RENEGOTIATION_NOT_ALLOWED: PRErrorCode = -12176;
pub const SSL_ERROR_UNSAFE_NEGOTIATION: PRErrorCode = -12175;
pub const SSL_ERROR_RX_UNEXPECTED_UNCOMPRESSED_RECORD: PRErrorCode = -12174;
pub const SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY: PRErrorCode = -12173;
pub const SSL_ERROR_NEXT_PROTOCOL_DATA_INVALID: PRErrorCode = -12172;
pub const SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SSL2: PRErrorCode = -12171;
pub const SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SERVERS: PRErrorCode = -12170;
pub const SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_CLIENTS: PRErrorCode = -12169;
pub const SSL_ERROR_INVALID_VERSION_RANGE: PRErrorCode = -12168;
pub const SSL_ERROR_CIPHER_DISALLOWED_FOR_VERSION: PRErrorCode = -12167;
pub const SSL_ERROR_RX_MALFORMED_HELLO_VERIFY_REQUEST: PRErrorCode = -12166;
pub const SSL_ERROR_RX_UNEXPECTED_HELLO_VERIFY_REQUEST: PRErrorCode = -12165;
pub const SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_VERSION: PRErrorCode = -12164;
pub const SSL_ERROR_RX_UNEXPECTED_CERT_STATUS: PRErrorCode = -12163;
pub const SSL_ERROR_UNSUPPORTED_HASH_ALGORITHM: PRErrorCode = -12162;
pub const SSL_ERROR_DIGEST_FAILURE: PRErrorCode = -12161;
pub const SSL_ERROR_INCORRECT_SIGNATURE_ALGORITHM: PRErrorCode = -12160;
pub const SSL_ERROR_NEXT_PROTOCOL_NO_CALLBACK: PRErrorCode = -12159;
pub const SSL_ERROR_NEXT_PROTOCOL_NO_PROTOCOL: PRErrorCode = -12158;
pub const SSL_ERROR_INAPPROPRIATE_FALLBACK_ALERT: PRErrorCode = -12157;
pub const SSL_ERROR_WEAK_SERVER_CERT_KEY: PRErrorCode = -12156;
pub const SSL_ERROR_RX_SHORT_DTLS_READ: PRErrorCode = -12155;
pub const SSL_ERROR_NO_SUPPORTED_SIGNATURE_ALGORITHM: PRErrorCode = -12154;
pub const SSL_ERROR_UNSUPPORTED_SIGNATURE_ALGORITHM: PRErrorCode = -12153;
pub const SSL_ERROR_MISSING_EXTENDED_MASTER_SECRET: PRErrorCode = -12152;
pub const SSL_ERROR_UNEXPECTED_EXTENDED_MASTER_SECRET: PRErrorCode = -12151;
pub const SSL_ERROR_RX_MALFORMED_KEY_SHARE: PRErrorCode = -12150;
pub const SSL_ERROR_MISSING_KEY_SHARE: PRErrorCode = -12149;
pub const SSL_ERROR_RX_MALFORMED_ECDHE_KEY_SHARE: PRErrorCode = -12148;
pub const SSL_ERROR_RX_MALFORMED_DHE_KEY_SHARE: PRErrorCode = -12147;
pub const SSL_ERROR_RX_UNEXPECTED_ENCRYPTED_EXTENSIONS: PRErrorCode = -12146;
pub const SSL_ERROR_MISSING_EXTENSION_ALERT: PRErrorCode = -12145;
pub const SSL_ERROR_KEY_EXCHANGE_FAILURE: PRErrorCode = -12144;
pub const SSL_ERROR_EXTENSION_DISALLOWED_FOR_VERSION: PRErrorCode = -12143;
pub const SSL_ERROR_RX_MALFORMED_ENCRYPTED_EXTENSIONS: PRErrorCode = -12142;
pub const SSL_ERROR_MALFORMED_PRE_SHARED_KEY: PRErrorCode = -12141;
pub const SSL_ERROR_MALFORMED_EARLY_DATA: PRErrorCode = -12140;
pub const SSL_ERROR_END_OF_EARLY_DATA_ALERT: PRErrorCode = -12139;
pub const SSL_ERROR_MISSING_ALPN_EXTENSION: PRErrorCode = -12138;
pub const SSL_ERROR_RX_UNEXPECTED_EXTENSION: PRErrorCode = -12137;
pub const SSL_ERROR_MISSING_SUPPORTED_GROUPS_EXTENSION: PRErrorCode = -12136;
pub const SSL_ERROR_TOO_MANY_RECORDS: PRErrorCode = -12135;
pub const SSL_ERROR_RX_UNEXPECTED_HELLO_RETRY_REQUEST: PRErrorCode = -12134;
pub const SSL_ERROR_RX_MALFORMED_HELLO_RETRY_REQUEST: PRErrorCode = -12133;
pub const SSL_ERROR_BAD_2ND_CLIENT_HELLO: PRErrorCode = -12132;
pub const SSL_ERROR_MISSING_SIGNATURE_ALGORITHMS_EXTENSION: PRErrorCode = -12131;
pub const SSL_ERROR_END_OF_LIST: PRErrorCode = -12130;