2 # Error messages for the hx509 library
4 # This might look like a com_err file, but is not
11 # path validateion and construction related errors
12 error_code BAD_TIMEFORMAT, "ASN.1 failed call to system time library"
13 error_code EXTENSION_NOT_FOUND, "Extension not found"
14 error_code NO_PATH, "Certification path not found"
15 error_code PARENT_NOT_CA, "Parent certificate is not a CA"
16 error_code CA_PATH_TOO_DEEP, "CA path too deep"
17 error_code SIG_ALG_NO_SUPPORTED, "Signature algorithm not supported"
18 error_code SIG_ALG_DONT_MATCH_KEY_ALG, "Signature algorithm doesn't match certificate key"
19 error_code CERT_USED_BEFORE_TIME, "Certificate used before it became valid"
20 error_code CERT_USED_AFTER_TIME, "Certificate used after it became invalid"
21 error_code PRIVATE_KEY_MISSING, "Private key required for the operation is missing"
22 error_code ALG_NOT_SUPP, "Algorithm not supported"
23 error_code ISSUER_NOT_FOUND, "Issuer couldn't be found"
24 error_code VERIFY_CONSTRAINTS, "Error verifing constraints"
25 error_code RANGE, "Number too large"
26 error_code NAME_CONSTRAINT_ERROR, "Error while verifing name constraints"
27 error_code PATH_TOO_LONG, "Path is too long, failed to find valid anchor"
28 error_code KU_CERT_MISSING, "Required keyusage for this certificate is missing"
29 error_code CERT_NOT_FOUND, "Certificate not found"
30 error_code UNKNOWN_LOCK_COMMAND, "Unknown lock command"
31 error_code PARENT_IS_CA, "Parent certificate is a CA"
32 error_code EXTRA_DATA_AFTER_STRUCTURE, "Extra data was found after the structure"
33 error_code PROXY_CERT_INVALID, "Proxy certificate is invalid"
34 error_code PROXY_CERT_NAME_WRONG, "Proxy certificate name is wrong"
35 error_code NAME_MALFORMED, "Name is malformated"
36 error_code CERTIFICATE_MALFORMED, "Certificate is malformated"
37 error_code CERTIFICATE_MISSING_EKU, "Certificate is missing a required EKU"
38 error_code PROXY_CERTIFICATE_NOT_CANONICALIZED, "Proxy certificate not canonicalize"
43 error_code FAILED_CREATE_SIGATURE, "Failed to create signature"
44 error_code MISSING_SIGNER_DATA, "Missing signer data"
45 error_code SIGNER_NOT_FOUND, "Couldn't find signers certificate"
46 error_code NO_DATA_AVAILABLE, "No data to perform the operation on"
47 error_code INVALID_DATA, "Data in the message is invalid"
48 error_code PADDING_ERROR, "Padding in the message invalid"
49 error_code NO_RECIPIENT_CERTIFICATE, "Couldn't find recipient certificate"
50 error_code DATA_OID_MISMATCH, "Mismatch bewteen signed type and unsigned type"
52 # crypto related errors
55 error_code INTERNAL_ERROR, "Internal error in the crypto engine"
56 error_code EXTERNAL_ERROR, "External error in the crypto engine"
57 error_code SIGNATURE_MISSING, "Signature missing for data"
58 error_code BAD_SIGNATURE, "Signature is not valid"
59 error_code SIG_NO_CONF, "Sigature doesn't provide confidentiality"
60 error_code SIG_INVALID_FORMAT, "Invalid format on signature"
61 error_code OID_MISMATCH, "Mismatch bewteen oids"
62 error_code NO_PROMPTER, "No prompter function defined"
63 error_code SIGNATURE_WITHOUT_SIGNER, "Signature require signer, but non available"
64 error_code RSA_PUBLIC_ENCRYPT, "RSA public encyption failed"
65 error_code RSA_PRIVATE_ENCRYPT, "RSA public encyption failed"
66 error_code RSA_PUBLIC_DECRYPT, "RSA private decryption failed"
67 error_code RSA_PRIVATE_DECRYPT, "RSA private decryption failed"
69 # revoke related errors
72 error_code CRL_USED_BEFORE_TIME, "CRL used before it became valid"
73 error_code CRL_USED_AFTER_TIME, "CRL used after it became invalid"
74 error_code CRL_INVALID_FORMAT, "CRL have invalid format"
75 error_code CERT_REVOKED, "Certificate is revoked"
76 error_code REVOKE_STATUS_MISSING, "No revoke status found for certificates"
77 error_code CRL_UNKNOWN_EXTENSION, "Unknown extension"
78 error_code REVOKE_WRONG_DATA, "Got wrong CRL/OCSP data from server"
79 error_code REVOKE_NOT_SAME_PARENT, "Doesn't have same parent as other certificates"
80 error_code CERT_NOT_IN_OCSP, "Certificates not in OCSP reply"
84 error_code LOCAL_ATTRIBUTE_MISSING, "No local key attribute"
85 error_code PARSING_KEY_FAILED, "Failed to parse key"
86 error_code UNSUPPORTED_OPERATION, "Unsupported operation"
87 error_code UNIMPLEMENTED_OPERATION, "Unimplemented operation"
88 error_code PARSING_NAME_FAILED, "Failed to parse name"
90 # keystore related error
93 error_code NO_SLOT, "No smartcard reader/device found"
94 error_code NO_TOKEN, "No smartcard in reader"
95 error_code NO_MECH, "No supported mech(s)"
96 error_code TOKEN_CONFUSED, "Token or slot failed in inconsistent way"
97 error_code OPEN_SESSION, "Failed to open session to slot"
98 error_code LOGIN, "Failed to login to slot"
99 error_code LOAD, "Failed to load PKCS module"