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