1use nspr::PRErrorCode;
6
7pub const SEC_ERROR_IO: PRErrorCode = -8192;
8pub const SEC_ERROR_LIBRARY_FAILURE: PRErrorCode = -8191;
9pub const SEC_ERROR_BAD_DATA: PRErrorCode = -8190;
10pub const SEC_ERROR_OUTPUT_LEN: PRErrorCode = -8189;
11pub const SEC_ERROR_INPUT_LEN: PRErrorCode = -8188;
12pub const SEC_ERROR_INVALID_ARGS: PRErrorCode = -8187;
13pub const SEC_ERROR_INVALID_ALGORITHM: PRErrorCode = -8186;
14pub const SEC_ERROR_INVALID_AVA: PRErrorCode = -8185;
15pub const SEC_ERROR_INVALID_TIME: PRErrorCode = -8184;
16pub const SEC_ERROR_BAD_DER: PRErrorCode = -8183;
17pub const SEC_ERROR_BAD_SIGNATURE: PRErrorCode = -8182;
18pub const SEC_ERROR_EXPIRED_CERTIFICATE: PRErrorCode = -8181;
19pub const SEC_ERROR_REVOKED_CERTIFICATE: PRErrorCode = -8180;
20pub const SEC_ERROR_UNKNOWN_ISSUER: PRErrorCode = -8179;
21pub const SEC_ERROR_BAD_KEY: PRErrorCode = -8178;
22pub const SEC_ERROR_BAD_PASSWORD: PRErrorCode = -8177;
23pub const SEC_ERROR_RETRY_PASSWORD: PRErrorCode = -8176;
24pub const SEC_ERROR_NO_NODELOCK: PRErrorCode = -8175;
25pub const SEC_ERROR_BAD_DATABASE: PRErrorCode = -8174;
26pub const SEC_ERROR_NO_MEMORY: PRErrorCode = -8173;
27pub const SEC_ERROR_UNTRUSTED_ISSUER: PRErrorCode = -8172;
28pub const SEC_ERROR_UNTRUSTED_CERT: PRErrorCode = -8171;
29pub const SEC_ERROR_DUPLICATE_CERT: PRErrorCode = -8170;
30pub const SEC_ERROR_DUPLICATE_CERT_NAME: PRErrorCode = -8169;
31pub const SEC_ERROR_ADDING_CERT: PRErrorCode = -8168;
32pub const SEC_ERROR_FILING_KEY: PRErrorCode = -8167;
33pub const SEC_ERROR_NO_KEY: PRErrorCode = -8166;
34pub const SEC_ERROR_CERT_VALID: PRErrorCode = -8165;
35pub const SEC_ERROR_CERT_NOT_VALID: PRErrorCode = -8164;
36pub const SEC_ERROR_CERT_NO_RESPONSE: PRErrorCode = -8163;
37pub const SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE: PRErrorCode = -8162;
38pub const SEC_ERROR_CRL_EXPIRED: PRErrorCode = -8161;
39pub const SEC_ERROR_CRL_BAD_SIGNATURE: PRErrorCode = -8160;
40pub const SEC_ERROR_CRL_INVALID: PRErrorCode = -8159;
41pub const SEC_ERROR_EXTENSION_VALUE_INVALID: PRErrorCode = -8158;
42pub const SEC_ERROR_EXTENSION_NOT_FOUND: PRErrorCode = -8157;
43pub const SEC_ERROR_CA_CERT_INVALID: PRErrorCode = -8156;
44pub const SEC_ERROR_PATH_LEN_CONSTRAINT_INVALID: PRErrorCode = -8155;
45pub const SEC_ERROR_CERT_USAGES_INVALID: PRErrorCode = -8154;
46pub const SEC_INTERNAL_ONLY: PRErrorCode = -8153;
47pub const SEC_ERROR_INVALID_KEY: PRErrorCode = -8152;
48pub const SEC_ERROR_UNKNOWN_CRITICAL_EXTENSION: PRErrorCode = -8151;
49pub const SEC_ERROR_OLD_CRL: PRErrorCode = -8150;
50pub const SEC_ERROR_NO_EMAIL_CERT: PRErrorCode = -8149;
51pub const SEC_ERROR_NO_RECIPIENT_CERTS_QUERY: PRErrorCode = -8148;
52pub const SEC_ERROR_NOT_A_RECIPIENT: PRErrorCode = -8147;
53pub const SEC_ERROR_PKCS7_KEYALG_MISMATCH: PRErrorCode = -8146;
54pub const SEC_ERROR_PKCS7_BAD_SIGNATURE: PRErrorCode = -8145;
55pub const SEC_ERROR_UNSUPPORTED_KEYALG: PRErrorCode = -8144;
56pub const SEC_ERROR_DECRYPTION_DISALLOWED: PRErrorCode = -8143;
57pub const XP_SEC_FORTEZZA_BAD_CARD: PRErrorCode = -8142;
58pub const XP_SEC_FORTEZZA_NO_CARD: PRErrorCode = -8141;
59pub const XP_SEC_FORTEZZA_NONE_SELECTED: PRErrorCode = -8140;
60pub const XP_SEC_FORTEZZA_MORE_INFO: PRErrorCode = -8139;
61pub const XP_SEC_FORTEZZA_PERSON_NOT_FOUND: PRErrorCode = -8138;
62pub const XP_SEC_FORTEZZA_NO_MORE_INFO: PRErrorCode = -8137;
63pub const XP_SEC_FORTEZZA_BAD_PIN: PRErrorCode = -8136;
64pub const XP_SEC_FORTEZZA_PERSON_ERROR: PRErrorCode = -8135;
65pub const SEC_ERROR_NO_KRL: PRErrorCode = -8134;
66pub const SEC_ERROR_KRL_EXPIRED: PRErrorCode = -8133;
67pub const SEC_ERROR_KRL_BAD_SIGNATURE: PRErrorCode = -8132;
68pub const SEC_ERROR_REVOKED_KEY: PRErrorCode = -8131;
69pub const SEC_ERROR_KRL_INVALID: PRErrorCode = -8130;
70pub const SEC_ERROR_NEED_RANDOM: PRErrorCode = -8129;
71pub const SEC_ERROR_NO_MODULE: PRErrorCode = -8128;
72pub const SEC_ERROR_NO_TOKEN: PRErrorCode = -8127;
73pub const SEC_ERROR_READ_ONLY: PRErrorCode = -8126;
74pub const SEC_ERROR_NO_SLOT_SELECTED: PRErrorCode = -8125;
75pub const SEC_ERROR_CERT_NICKNAME_COLLISION: PRErrorCode = -8124;
76pub const SEC_ERROR_KEY_NICKNAME_COLLISION: PRErrorCode = -8123;
77pub const SEC_ERROR_SAFE_NOT_CREATED: PRErrorCode = -8122;
78pub const SEC_ERROR_BAGGAGE_NOT_CREATED: PRErrorCode = -8121;
79pub const XP_JAVA_REMOVE_PRINCIPAL_ERROR: PRErrorCode = -8120;
80pub const XP_JAVA_DELETE_PRIVILEGE_ERROR: PRErrorCode = -8119;
81pub const XP_JAVA_CERT_NOT_EXISTS_ERROR: PRErrorCode = -8118;
82pub const SEC_ERROR_BAD_EXPORT_ALGORITHM: PRErrorCode = -8117;
83pub const SEC_ERROR_EXPORTING_CERTIFICATES: PRErrorCode = -8116;
84pub const SEC_ERROR_IMPORTING_CERTIFICATES: PRErrorCode = -8115;
85pub const SEC_ERROR_PKCS12_DECODING_PFX: PRErrorCode = -8114;
86pub const SEC_ERROR_PKCS12_INVALID_MAC: PRErrorCode = -8113;
87pub const SEC_ERROR_PKCS12_UNSUPPORTED_MAC_ALGORITHM: PRErrorCode = -8112;
88pub const SEC_ERROR_PKCS12_UNSUPPORTED_TRANSPORT_MODE: PRErrorCode = -8111;
89pub const SEC_ERROR_PKCS12_CORRUPT_PFX_STRUCTURE: PRErrorCode = -8110;
90pub const SEC_ERROR_PKCS12_UNSUPPORTED_PBE_ALGORITHM: PRErrorCode = -8109;
91pub const SEC_ERROR_PKCS12_UNSUPPORTED_VERSION: PRErrorCode = -8108;
92pub const SEC_ERROR_PKCS12_PRIVACY_PASSWORD_INCORRECT: PRErrorCode = -8107;
93pub const SEC_ERROR_PKCS12_CERT_COLLISION: PRErrorCode = -8106;
94pub const SEC_ERROR_USER_CANCELLED: PRErrorCode = -8105;
95pub const SEC_ERROR_PKCS12_DUPLICATE_DATA: PRErrorCode = -8104;
96pub const SEC_ERROR_MESSAGE_SEND_ABORTED: PRErrorCode = -8103;
97pub const SEC_ERROR_INADEQUATE_KEY_USAGE: PRErrorCode = -8102;
98pub const SEC_ERROR_INADEQUATE_CERT_TYPE: PRErrorCode = -8101;
99pub const SEC_ERROR_CERT_ADDR_MISMATCH: PRErrorCode = -8100;
100pub const SEC_ERROR_PKCS12_UNABLE_TO_IMPORT_KEY: PRErrorCode = -8099;
101pub const SEC_ERROR_PKCS12_IMPORTING_CERT_CHAIN: PRErrorCode = -8098;
102pub const SEC_ERROR_PKCS12_UNABLE_TO_LOCATE_OBJECT_BY_NAME: PRErrorCode = -8097;
103pub const SEC_ERROR_PKCS12_UNABLE_TO_EXPORT_KEY: PRErrorCode = -8096;
104pub const SEC_ERROR_PKCS12_UNABLE_TO_WRITE: PRErrorCode = -8095;
105pub const SEC_ERROR_PKCS12_UNABLE_TO_READ: PRErrorCode = -8094;
106pub const SEC_ERROR_PKCS12_KEY_DATABASE_NOT_INITIALIZED: PRErrorCode = -8093;
107pub const SEC_ERROR_KEYGEN_FAIL: PRErrorCode = -8092;
108pub const SEC_ERROR_INVALID_PASSWORD: PRErrorCode = -8091;
109pub const SEC_ERROR_RETRY_OLD_PASSWORD: PRErrorCode = -8090;
110pub const SEC_ERROR_BAD_NICKNAME: PRErrorCode = -8089;
111pub const SEC_ERROR_NOT_FORTEZZA_ISSUER: PRErrorCode = -8088;
112pub const SEC_ERROR_CANNOT_MOVE_SENSITIVE_KEY: PRErrorCode = -8087;
113pub const SEC_ERROR_JS_INVALID_MODULE_NAME: PRErrorCode = -8086;
114pub const SEC_ERROR_JS_INVALID_DLL: PRErrorCode = -8085;
115pub const SEC_ERROR_JS_ADD_MOD_FAILURE: PRErrorCode = -8084;
116pub const SEC_ERROR_JS_DEL_MOD_FAILURE: PRErrorCode = -8083;
117pub const SEC_ERROR_OLD_KRL: PRErrorCode = -8082;
118pub const SEC_ERROR_CKL_CONFLICT: PRErrorCode = -8081;
119pub const SEC_ERROR_CERT_NOT_IN_NAME_SPACE: PRErrorCode = -8080;
120pub const SEC_ERROR_KRL_NOT_YET_VALID: PRErrorCode = -8079;
121pub const SEC_ERROR_CRL_NOT_YET_VALID: PRErrorCode = -8078;
122pub const SEC_ERROR_UNKNOWN_CERT: PRErrorCode = -8077;
123pub const SEC_ERROR_UNKNOWN_SIGNER: PRErrorCode = -8076;
124pub const SEC_ERROR_CERT_BAD_ACCESS_LOCATION: PRErrorCode = -8075;
125pub const SEC_ERROR_OCSP_UNKNOWN_RESPONSE_TYPE: PRErrorCode = -8074;
126pub const SEC_ERROR_OCSP_BAD_HTTP_RESPONSE: PRErrorCode = -8073;
127pub const SEC_ERROR_OCSP_MALFORMED_REQUEST: PRErrorCode = -8072;
128pub const SEC_ERROR_OCSP_SERVER_ERROR: PRErrorCode = -8071;
129pub const SEC_ERROR_OCSP_TRY_SERVER_LATER: PRErrorCode = -8070;
130pub const SEC_ERROR_OCSP_REQUEST_NEEDS_SIG: PRErrorCode = -8069;
131pub const SEC_ERROR_OCSP_UNAUTHORIZED_REQUEST: PRErrorCode = -8068;
132pub const SEC_ERROR_OCSP_UNKNOWN_RESPONSE_STATUS: PRErrorCode = -8067;
133pub const SEC_ERROR_OCSP_UNKNOWN_CERT: PRErrorCode = -8066;
134pub const SEC_ERROR_OCSP_NOT_ENABLED: PRErrorCode = -8065;
135pub const SEC_ERROR_OCSP_NO_DEFAULT_RESPONDER: PRErrorCode = -8064;
136pub const SEC_ERROR_OCSP_MALFORMED_RESPONSE: PRErrorCode = -8063;
137pub const SEC_ERROR_OCSP_UNAUTHORIZED_RESPONSE: PRErrorCode = -8062;
138pub const SEC_ERROR_OCSP_FUTURE_RESPONSE: PRErrorCode = -8061;
139pub const SEC_ERROR_OCSP_OLD_RESPONSE: PRErrorCode = -8060;
140pub const SEC_ERROR_DIGEST_NOT_FOUND: PRErrorCode = -8059;
141pub const SEC_ERROR_UNSUPPORTED_MESSAGE_TYPE: PRErrorCode = -8058;
142pub const SEC_ERROR_MODULE_STUCK: PRErrorCode = -8057;
143pub const SEC_ERROR_BAD_TEMPLATE: PRErrorCode = -8056;
144pub const SEC_ERROR_CRL_NOT_FOUND: PRErrorCode = -8055;
145pub const SEC_ERROR_REUSED_ISSUER_AND_SERIAL: PRErrorCode = -8054;
146pub const SEC_ERROR_BUSY: PRErrorCode = -8053;
147pub const SEC_ERROR_EXTRA_INPUT: PRErrorCode = -8052;
148pub const SEC_ERROR_UNSUPPORTED_ELLIPTIC_CURVE: PRErrorCode = -8051;
149pub const SEC_ERROR_UNSUPPORTED_EC_POINT_FORM: PRErrorCode = -8050;
150pub const SEC_ERROR_UNRECOGNIZED_OID: PRErrorCode = -8049;
151pub const SEC_ERROR_OCSP_INVALID_SIGNING_CERT: PRErrorCode = -8048;
152pub const SEC_ERROR_REVOKED_CERTIFICATE_CRL: PRErrorCode = -8047;
153pub const SEC_ERROR_REVOKED_CERTIFICATE_OCSP: PRErrorCode = -8046;
154pub const SEC_ERROR_CRL_INVALID_VERSION: PRErrorCode = -8045;
155pub const SEC_ERROR_CRL_V1_CRITICAL_EXTENSION: PRErrorCode = -8044;
156pub const SEC_ERROR_CRL_UNKNOWN_CRITICAL_EXTENSION: PRErrorCode = -8043;
157pub const SEC_ERROR_UNKNOWN_OBJECT_TYPE: PRErrorCode = -8042;
158pub const SEC_ERROR_INCOMPATIBLE_PKCS11: PRErrorCode = -8041;
159pub const SEC_ERROR_NO_EVENT: PRErrorCode = -8040;
160pub const SEC_ERROR_CRL_ALREADY_EXISTS: PRErrorCode = -8039;
161pub const SEC_ERROR_NOT_INITIALIZED: PRErrorCode = -8038;
162pub const SEC_ERROR_TOKEN_NOT_LOGGED_IN: PRErrorCode = -8037;
163pub const SEC_ERROR_OCSP_RESPONDER_CERT_INVALID: PRErrorCode = -8036;
164pub const SEC_ERROR_OCSP_BAD_SIGNATURE: PRErrorCode = -8035;
165pub const SEC_ERROR_OUT_OF_SEARCH_LIMITS: PRErrorCode = -8034;
166pub const SEC_ERROR_INVALID_POLICY_MAPPING: PRErrorCode = -8033;
167pub const SEC_ERROR_POLICY_VALIDATION_FAILED: PRErrorCode = -8032;
168pub const SEC_ERROR_UNKNOWN_AIA_LOCATION_TYPE: PRErrorCode = -8031;
169pub const SEC_ERROR_BAD_HTTP_RESPONSE: PRErrorCode = -8030;
170pub const SEC_ERROR_BAD_LDAP_RESPONSE: PRErrorCode = -8029;
171pub const SEC_ERROR_FAILED_TO_ENCODE_DATA: PRErrorCode = -8028;
172pub const SEC_ERROR_BAD_INFO_ACCESS_LOCATION: PRErrorCode = -8027;
173pub const SEC_ERROR_LIBPKIX_INTERNAL: PRErrorCode = -8026;
174pub const SEC_ERROR_PKCS11_GENERAL_ERROR: PRErrorCode = -8025;
175pub const SEC_ERROR_PKCS11_FUNCTION_FAILED: PRErrorCode = -8024;
176pub const SEC_ERROR_PKCS11_DEVICE_ERROR: PRErrorCode = -8023;
177pub const SEC_ERROR_BAD_INFO_ACCESS_METHOD: PRErrorCode = -8022;
178pub const SEC_ERROR_CRL_IMPORT_FAILED: PRErrorCode = -8021;
179pub const SEC_ERROR_EXPIRED_PASSWORD: PRErrorCode = -8020;
180pub const SEC_ERROR_LOCKED_PASSWORD: PRErrorCode = -8019;
181pub const SEC_ERROR_UNKNOWN_PKCS11_ERROR: PRErrorCode = -8018;
182pub const SEC_ERROR_BAD_CRL_DP_URL: PRErrorCode = -8017;
183pub const SEC_ERROR_CERT_SIGNATURE_ALGORITHM_DISABLED: PRErrorCode = -8016;
184pub const SEC_ERROR_LEGACY_DATABASE: PRErrorCode = -8015;
185pub const SEC_ERROR_APPLICATION_CALLBACK_ERROR: PRErrorCode = -8014;
186pub const SEC_ERROR_END_OF_LIST: PRErrorCode = -8013;
187
188pub const SSL_ERROR_EXPORT_ONLY_SERVER: PRErrorCode = -12288;
189pub const SSL_ERROR_US_ONLY_SERVER: PRErrorCode = -12287;
190pub const SSL_ERROR_NO_CYPHER_OVERLAP: PRErrorCode = -12286;
191pub const SSL_ERROR_NO_CERTIFICATE: PRErrorCode = -12285;
192pub const SSL_ERROR_BAD_CERTIFICATE: PRErrorCode = -12284;
193pub const SSL_ERROR_UNUSED_5: PRErrorCode = -12283;
194pub const SSL_ERROR_BAD_CLIENT: PRErrorCode = -12282;
195pub const SSL_ERROR_BAD_SERVER: PRErrorCode = -12281;
196pub const SSL_ERROR_UNSUPPORTED_CERTIFICATE_TYPE: PRErrorCode = -12280;
197pub const SSL_ERROR_UNSUPPORTED_VERSION: PRErrorCode = -12279;
198pub const SSL_ERROR_UNUSED_10: PRErrorCode = -12278;
199pub const SSL_ERROR_WRONG_CERTIFICATE: PRErrorCode = -12277;
200pub const SSL_ERROR_BAD_CERT_DOMAIN: PRErrorCode = -12276;
201pub const SSL_ERROR_POST_WARNING: PRErrorCode = -12275;
202pub const SSL_ERROR_SSL2_DISABLED: PRErrorCode = -12274;
203pub const SSL_ERROR_BAD_MAC_READ: PRErrorCode = -12273;
204pub const SSL_ERROR_BAD_MAC_ALERT: PRErrorCode = -12272;
205pub const SSL_ERROR_BAD_CERT_ALERT: PRErrorCode = -12271;
206pub const SSL_ERROR_REVOKED_CERT_ALERT: PRErrorCode = -12270;
207pub const SSL_ERROR_EXPIRED_CERT_ALERT: PRErrorCode = -12269;
208pub const SSL_ERROR_SSL_DISABLED: PRErrorCode = -12268;
209pub const SSL_ERROR_FORTEZZA_PQG: PRErrorCode = -12267;
210pub const SSL_ERROR_UNKNOWN_CIPHER_SUITE: PRErrorCode = -12266;
211pub const SSL_ERROR_NO_CIPHERS_SUPPORTED: PRErrorCode = -12265;
212pub const SSL_ERROR_BAD_BLOCK_PADDING: PRErrorCode = -12264;
213pub const SSL_ERROR_RX_RECORD_TOO_LONG: PRErrorCode = -12263;
214pub const SSL_ERROR_TX_RECORD_TOO_LONG: PRErrorCode = -12262;
215pub const SSL_ERROR_RX_MALFORMED_HELLO_REQUEST: PRErrorCode = -12261;
216pub const SSL_ERROR_RX_MALFORMED_CLIENT_HELLO: PRErrorCode = -12260;
217pub const SSL_ERROR_RX_MALFORMED_SERVER_HELLO: PRErrorCode = -12259;
218pub const SSL_ERROR_RX_MALFORMED_CERTIFICATE: PRErrorCode = -12258;
219pub const SSL_ERROR_RX_MALFORMED_SERVER_KEY_EXCH: PRErrorCode = -12257;
220pub const SSL_ERROR_RX_MALFORMED_CERT_REQUEST: PRErrorCode = -12256;
221pub const SSL_ERROR_RX_MALFORMED_HELLO_DONE: PRErrorCode = -12255;
222pub const SSL_ERROR_RX_MALFORMED_CERT_VERIFY: PRErrorCode = -12254;
223pub const SSL_ERROR_RX_MALFORMED_CLIENT_KEY_EXCH: PRErrorCode = -12253;
224pub const SSL_ERROR_RX_MALFORMED_FINISHED: PRErrorCode = -12252;
225pub const SSL_ERROR_RX_MALFORMED_CHANGE_CIPHER: PRErrorCode = -12251;
226pub const SSL_ERROR_RX_MALFORMED_ALERT: PRErrorCode = -12250;
227pub const SSL_ERROR_RX_MALFORMED_HANDSHAKE: PRErrorCode = -12249;
228pub const SSL_ERROR_RX_MALFORMED_APPLICATION_DATA: PRErrorCode = -12248;
229pub const SSL_ERROR_RX_UNEXPECTED_HELLO_REQUEST: PRErrorCode = -12247;
230pub const SSL_ERROR_RX_UNEXPECTED_CLIENT_HELLO: PRErrorCode = -12246;
231pub const SSL_ERROR_RX_UNEXPECTED_SERVER_HELLO: PRErrorCode = -12245;
232pub const SSL_ERROR_RX_UNEXPECTED_CERTIFICATE: PRErrorCode = -12244;
233pub const SSL_ERROR_RX_UNEXPECTED_SERVER_KEY_EXCH: PRErrorCode = -12243;
234pub const SSL_ERROR_RX_UNEXPECTED_CERT_REQUEST: PRErrorCode = -12242;
235pub const SSL_ERROR_RX_UNEXPECTED_HELLO_DONE: PRErrorCode = -12241;
236pub const SSL_ERROR_RX_UNEXPECTED_CERT_VERIFY: PRErrorCode = -12240;
237pub const SSL_ERROR_RX_UNEXPECTED_CLIENT_KEY_EXCH: PRErrorCode = -12239;
238pub const SSL_ERROR_RX_UNEXPECTED_FINISHED: PRErrorCode = -12238;
239pub const SSL_ERROR_RX_UNEXPECTED_CHANGE_CIPHER: PRErrorCode = -12237;
240pub const SSL_ERROR_RX_UNEXPECTED_ALERT: PRErrorCode = -12236;
241pub const SSL_ERROR_RX_UNEXPECTED_HANDSHAKE: PRErrorCode = -12235;
242pub const SSL_ERROR_RX_UNEXPECTED_APPLICATION_DATA: PRErrorCode = -12234;
243pub const SSL_ERROR_RX_UNKNOWN_RECORD_TYPE: PRErrorCode = -12233;
244pub const SSL_ERROR_RX_UNKNOWN_HANDSHAKE: PRErrorCode = -12232;
245pub const SSL_ERROR_RX_UNKNOWN_ALERT: PRErrorCode = -12231;
246pub const SSL_ERROR_CLOSE_NOTIFY_ALERT: PRErrorCode = -12230;
247pub const SSL_ERROR_HANDSHAKE_UNEXPECTED_ALERT: PRErrorCode = -12229;
248pub const SSL_ERROR_DECOMPRESSION_FAILURE_ALERT: PRErrorCode = -12228;
249pub const SSL_ERROR_HANDSHAKE_FAILURE_ALERT: PRErrorCode = -12227;
250pub const SSL_ERROR_ILLEGAL_PARAMETER_ALERT: PRErrorCode = -12226;
251pub const SSL_ERROR_UNSUPPORTED_CERT_ALERT: PRErrorCode = -12225;
252pub const SSL_ERROR_CERTIFICATE_UNKNOWN_ALERT: PRErrorCode = -12224;
253pub const SSL_ERROR_GENERATE_RANDOM_FAILURE: PRErrorCode = -12223;
254pub const SSL_ERROR_SIGN_HASHES_FAILURE: PRErrorCode = -12222;
255pub const SSL_ERROR_EXTRACT_PUBLIC_KEY_FAILURE: PRErrorCode = -12221;
256pub const SSL_ERROR_SERVER_KEY_EXCHANGE_FAILURE: PRErrorCode = -12220;
257pub const SSL_ERROR_CLIENT_KEY_EXCHANGE_FAILURE: PRErrorCode = -12219;
258pub const SSL_ERROR_ENCRYPTION_FAILURE: PRErrorCode = -12218;
259pub const SSL_ERROR_DECRYPTION_FAILURE: PRErrorCode = -12217;
260pub const SSL_ERROR_SOCKET_WRITE_FAILURE: PRErrorCode = -12216;
261pub const SSL_ERROR_MD5_DIGEST_FAILURE: PRErrorCode = -12215;
262pub const SSL_ERROR_SHA_DIGEST_FAILURE: PRErrorCode = -12214;
263pub const SSL_ERROR_MAC_COMPUTATION_FAILURE: PRErrorCode = -12213;
264pub const SSL_ERROR_SYM_KEY_CONTEXT_FAILURE: PRErrorCode = -12212;
265pub const SSL_ERROR_SYM_KEY_UNWRAP_FAILURE: PRErrorCode = -12211;
266pub const SSL_ERROR_PUB_KEY_SIZE_LIMIT_EXCEEDED: PRErrorCode = -12210;
267pub const SSL_ERROR_IV_PARAM_FAILURE: PRErrorCode = -12209;
268pub const SSL_ERROR_INIT_CIPHER_SUITE_FAILURE: PRErrorCode = -12208;
269pub const SSL_ERROR_SESSION_KEY_GEN_FAILURE: PRErrorCode = -12207;
270pub const SSL_ERROR_NO_SERVER_KEY_FOR_ALG: PRErrorCode = -12206;
271pub const SSL_ERROR_TOKEN_INSERTION_REMOVAL: PRErrorCode = -12205;
272pub const SSL_ERROR_TOKEN_SLOT_NOT_FOUND: PRErrorCode = -12204;
273pub const SSL_ERROR_NO_COMPRESSION_OVERLAP: PRErrorCode = -12203;
274pub const SSL_ERROR_HANDSHAKE_NOT_COMPLETED: PRErrorCode = -12202;
275pub const SSL_ERROR_BAD_HANDSHAKE_HASH_VALUE: PRErrorCode = -12201;
276pub const SSL_ERROR_CERT_KEA_MISMATCH: PRErrorCode = -12200;
277pub const SSL_ERROR_NO_TRUSTED_SSL_CLIENT_CA: PRErrorCode = -12199;
278pub const SSL_ERROR_SESSION_NOT_FOUND: PRErrorCode = -12198;
279pub const SSL_ERROR_DECRYPTION_FAILED_ALERT: PRErrorCode = -12197;
280pub const SSL_ERROR_RECORD_OVERFLOW_ALERT: PRErrorCode = -12196;
281pub const SSL_ERROR_UNKNOWN_CA_ALERT: PRErrorCode = -12195;
282pub const SSL_ERROR_ACCESS_DENIED_ALERT: PRErrorCode = -12194;
283pub const SSL_ERROR_DECODE_ERROR_ALERT: PRErrorCode = -12193;
284pub const SSL_ERROR_DECRYPT_ERROR_ALERT: PRErrorCode = -12192;
285pub const SSL_ERROR_EXPORT_RESTRICTION_ALERT: PRErrorCode = -12191;
286pub const SSL_ERROR_PROTOCOL_VERSION_ALERT: PRErrorCode = -12190;
287pub const SSL_ERROR_INSUFFICIENT_SECURITY_ALERT: PRErrorCode = -12189;
288pub const SSL_ERROR_INTERNAL_ERROR_ALERT: PRErrorCode = -12188;
289pub const SSL_ERROR_USER_CANCELED_ALERT: PRErrorCode = -12187;
290pub const SSL_ERROR_NO_RENEGOTIATION_ALERT: PRErrorCode = -12186;
291pub const SSL_ERROR_SERVER_CACHE_NOT_CONFIGURED: PRErrorCode = -12185;
292pub const SSL_ERROR_UNSUPPORTED_EXTENSION_ALERT: PRErrorCode = -12184;
293pub const SSL_ERROR_CERTIFICATE_UNOBTAINABLE_ALERT: PRErrorCode = -12183;
294pub const SSL_ERROR_UNRECOGNIZED_NAME_ALERT: PRErrorCode = -12182;
295pub const SSL_ERROR_BAD_CERT_STATUS_RESPONSE_ALERT: PRErrorCode = -12181;
296pub const SSL_ERROR_BAD_CERT_HASH_VALUE_ALERT: PRErrorCode = -12180;
297pub const SSL_ERROR_RX_UNEXPECTED_NEW_SESSION_TICKET: PRErrorCode = -12179;
298pub const SSL_ERROR_RX_MALFORMED_NEW_SESSION_TICKET: PRErrorCode = -12178;
299pub const SSL_ERROR_DECOMPRESSION_FAILURE: PRErrorCode = -12177;
300pub const SSL_ERROR_RENEGOTIATION_NOT_ALLOWED: PRErrorCode = -12176;
301pub const SSL_ERROR_UNSAFE_NEGOTIATION: PRErrorCode = -12175;
302pub const SSL_ERROR_RX_UNEXPECTED_UNCOMPRESSED_RECORD: PRErrorCode = -12174;
303pub const SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY: PRErrorCode = -12173;
304pub const SSL_ERROR_NEXT_PROTOCOL_DATA_INVALID: PRErrorCode = -12172;
305pub const SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SSL2: PRErrorCode = -12171;
306pub const SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_SERVERS: PRErrorCode = -12170;
307pub const SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_CLIENTS: PRErrorCode = -12169;
308pub const SSL_ERROR_INVALID_VERSION_RANGE: PRErrorCode = -12168;
309pub const SSL_ERROR_CIPHER_DISALLOWED_FOR_VERSION: PRErrorCode = -12167;
310pub const SSL_ERROR_RX_MALFORMED_HELLO_VERIFY_REQUEST: PRErrorCode = -12166;
311pub const SSL_ERROR_RX_UNEXPECTED_HELLO_VERIFY_REQUEST: PRErrorCode = -12165;
312pub const SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_VERSION: PRErrorCode = -12164;
313pub const SSL_ERROR_RX_UNEXPECTED_CERT_STATUS: PRErrorCode = -12163;
314pub const SSL_ERROR_UNSUPPORTED_HASH_ALGORITHM: PRErrorCode = -12162;
315pub const SSL_ERROR_DIGEST_FAILURE: PRErrorCode = -12161;
316pub const SSL_ERROR_INCORRECT_SIGNATURE_ALGORITHM: PRErrorCode = -12160;
317pub const SSL_ERROR_NEXT_PROTOCOL_NO_CALLBACK: PRErrorCode = -12159;
318pub const SSL_ERROR_NEXT_PROTOCOL_NO_PROTOCOL: PRErrorCode = -12158;
319pub const SSL_ERROR_INAPPROPRIATE_FALLBACK_ALERT: PRErrorCode = -12157;
320pub const SSL_ERROR_WEAK_SERVER_CERT_KEY: PRErrorCode = -12156;
321pub const SSL_ERROR_RX_SHORT_DTLS_READ: PRErrorCode = -12155;
322pub const SSL_ERROR_NO_SUPPORTED_SIGNATURE_ALGORITHM: PRErrorCode = -12154;
323pub const SSL_ERROR_UNSUPPORTED_SIGNATURE_ALGORITHM: PRErrorCode = -12153;
324pub const SSL_ERROR_MISSING_EXTENDED_MASTER_SECRET: PRErrorCode = -12152;
325pub const SSL_ERROR_UNEXPECTED_EXTENDED_MASTER_SECRET: PRErrorCode = -12151;
326pub const SSL_ERROR_RX_MALFORMED_KEY_SHARE: PRErrorCode = -12150;
327pub const SSL_ERROR_MISSING_KEY_SHARE: PRErrorCode = -12149;
328pub const SSL_ERROR_RX_MALFORMED_ECDHE_KEY_SHARE: PRErrorCode = -12148;
329pub const SSL_ERROR_RX_MALFORMED_DHE_KEY_SHARE: PRErrorCode = -12147;
330pub const SSL_ERROR_RX_UNEXPECTED_ENCRYPTED_EXTENSIONS: PRErrorCode = -12146;
331pub const SSL_ERROR_MISSING_EXTENSION_ALERT: PRErrorCode = -12145;
332pub const SSL_ERROR_KEY_EXCHANGE_FAILURE: PRErrorCode = -12144;
333pub const SSL_ERROR_EXTENSION_DISALLOWED_FOR_VERSION: PRErrorCode = -12143;
334pub const SSL_ERROR_RX_MALFORMED_ENCRYPTED_EXTENSIONS: PRErrorCode = -12142;
335pub const SSL_ERROR_MALFORMED_PRE_SHARED_KEY: PRErrorCode = -12141;
336pub const SSL_ERROR_MALFORMED_EARLY_DATA: PRErrorCode = -12140;
337pub const SSL_ERROR_END_OF_EARLY_DATA_ALERT: PRErrorCode = -12139;
338pub const SSL_ERROR_MISSING_ALPN_EXTENSION: PRErrorCode = -12138;
339pub const SSL_ERROR_RX_UNEXPECTED_EXTENSION: PRErrorCode = -12137;
340pub const SSL_ERROR_MISSING_SUPPORTED_GROUPS_EXTENSION: PRErrorCode = -12136;
341pub const SSL_ERROR_TOO_MANY_RECORDS: PRErrorCode = -12135;
342pub const SSL_ERROR_RX_UNEXPECTED_HELLO_RETRY_REQUEST: PRErrorCode = -12134;
343pub const SSL_ERROR_RX_MALFORMED_HELLO_RETRY_REQUEST: PRErrorCode = -12133;
344pub const SSL_ERROR_BAD_2ND_CLIENT_HELLO: PRErrorCode = -12132;
345pub const SSL_ERROR_MISSING_SIGNATURE_ALGORITHMS_EXTENSION: PRErrorCode = -12131;
346pub const SSL_ERROR_END_OF_LIST: PRErrorCode = -12130;