| 1 |
# |
| 2 |
# Error messages for the hx509 library |
| 3 |
# |
| 4 |
# This might look like a com_err file, but is not |
| 5 |
# |
| 6 |
id "$Id$" |
| 7 |
|
| 8 |
error_table hx |
| 9 |
prefix HX509 |
| 10 |
|
| 11 |
# path validation 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 verifying constraints" |
| 25 |
error_code RANGE, "Number too large" |
| 26 |
error_code NAME_CONSTRAINT_ERROR, "Error while verifying 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 malformed" |
| 36 |
error_code CERTIFICATE_MALFORMED, "Certificate is malformed" |
| 37 |
error_code CERTIFICATE_MISSING_EKU, "Certificate is missing a required EKU" |
| 38 |
error_code PROXY_CERTIFICATE_NOT_CANONICALIZED, "Proxy certificate not canonicalized" |
| 39 |
|
| 40 |
# cms related errors |
| 41 |
index 32 |
| 42 |
prefix HX509_CMS |
| 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" |
| 51 |
|
| 52 |
# crypto related errors |
| 53 |
index 64 |
| 54 |
prefix HX509_CRYPTO |
| 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 between oids" |
| 62 |
error_code NO_PROMPTER, "No prompter function defined" |
| 63 |
error_code SIGNATURE_WITHOUT_SIGNER, "Signature requires signer, but none available" |
| 64 |
error_code RSA_PUBLIC_ENCRYPT, "RSA public encyption failed" |
| 65 |
error_code RSA_PRIVATE_ENCRYPT, "RSA private encyption failed" |
| 66 |
error_code RSA_PUBLIC_DECRYPT, "RSA public decryption failed" |
| 67 |
error_code RSA_PRIVATE_DECRYPT, "RSA private decryption failed" |
| 68 |
error_code ALGORITHM_BEST_BEFORE, "Algorithm has passed its best before date" |
| 69 |
error_code KEY_FORMAT_UNSUPPORTED, "Key format is unsupported" |
| 70 |
|
| 71 |
# revoke related errors |
| 72 |
index 96 |
| 73 |
prefix HX509 |
| 74 |
error_code CRL_USED_BEFORE_TIME, "CRL used before it became valid" |
| 75 |
error_code CRL_USED_AFTER_TIME, "CRL used after it became invalid" |
| 76 |
error_code CRL_INVALID_FORMAT, "CRL have invalid format" |
| 77 |
error_code CERT_REVOKED, "Certificate is revoked" |
| 78 |
error_code REVOKE_STATUS_MISSING, "No revoke status found for certificates" |
| 79 |
error_code CRL_UNKNOWN_EXTENSION, "Unknown extension" |
| 80 |
error_code REVOKE_WRONG_DATA, "Got wrong CRL/OCSP data from server" |
| 81 |
error_code REVOKE_NOT_SAME_PARENT, "Doesn't have same parent as other certificates" |
| 82 |
error_code CERT_NOT_IN_OCSP, "Certificates not in OCSP reply" |
| 83 |
|
| 84 |
# misc error |
| 85 |
index 108 |
| 86 |
error_code LOCAL_ATTRIBUTE_MISSING, "No local key attribute" |
| 87 |
error_code PARSING_KEY_FAILED, "Failed to parse key" |
| 88 |
error_code UNSUPPORTED_OPERATION, "Unsupported operation" |
| 89 |
error_code UNIMPLEMENTED_OPERATION, "Unimplemented operation" |
| 90 |
error_code PARSING_NAME_FAILED, "Failed to parse name" |
| 91 |
|
| 92 |
# keystore related error |
| 93 |
index 128 |
| 94 |
prefix HX509_PKCS11 |
| 95 |
error_code NO_SLOT, "No smartcard reader/device found" |
| 96 |
error_code NO_TOKEN, "No smartcard in reader" |
| 97 |
error_code NO_MECH, "No supported mech(s)" |
| 98 |
error_code TOKEN_CONFUSED, "Token or slot failed in inconsistent way" |
| 99 |
error_code OPEN_SESSION, "Failed to open session to slot" |
| 100 |
error_code LOGIN, "Failed to login to slot" |
| 101 |
error_code LOAD, "Failed to load PKCS module" |
| 102 |
|
| 103 |
# pkinit related errors |
| 104 |
error_code PIN_INCORRECT, "Incorrect User PIN" |
| 105 |
error_code PIN_LOCKED, "User PIN locked" |
| 106 |
error_code PIN_NOT_INITIALIZED, "User PIN not initialized" |
| 107 |
error_code PIN_EXPIRED, "User PIN expired" |
| 108 |
|
| 109 |
end |