1178825Sdfr# 2178825Sdfr# Error messages for the hx509 library 3178825Sdfr# 4178825Sdfr# This might look like a com_err file, but is not 5178825Sdfr# 6233294Sstasid "$Id$" 7178825Sdfr 8178825Sdfrerror_table hx 9178825Sdfrprefix HX509 10178825Sdfr 11178825Sdfr# path validateion and construction related errors 12178825Sdfrerror_code BAD_TIMEFORMAT, "ASN.1 failed call to system time library" 13178825Sdfrerror_code EXTENSION_NOT_FOUND, "Extension not found" 14178825Sdfrerror_code NO_PATH, "Certification path not found" 15178825Sdfrerror_code PARENT_NOT_CA, "Parent certificate is not a CA" 16178825Sdfrerror_code CA_PATH_TOO_DEEP, "CA path too deep" 17178825Sdfrerror_code SIG_ALG_NO_SUPPORTED, "Signature algorithm not supported" 18178825Sdfrerror_code SIG_ALG_DONT_MATCH_KEY_ALG, "Signature algorithm doesn't match certificate key" 19178825Sdfrerror_code CERT_USED_BEFORE_TIME, "Certificate used before it became valid" 20178825Sdfrerror_code CERT_USED_AFTER_TIME, "Certificate used after it became invalid" 21178825Sdfrerror_code PRIVATE_KEY_MISSING, "Private key required for the operation is missing" 22178825Sdfrerror_code ALG_NOT_SUPP, "Algorithm not supported" 23178825Sdfrerror_code ISSUER_NOT_FOUND, "Issuer couldn't be found" 24178825Sdfrerror_code VERIFY_CONSTRAINTS, "Error verifing constraints" 25178825Sdfrerror_code RANGE, "Number too large" 26178825Sdfrerror_code NAME_CONSTRAINT_ERROR, "Error while verifing name constraints" 27178825Sdfrerror_code PATH_TOO_LONG, "Path is too long, failed to find valid anchor" 28178825Sdfrerror_code KU_CERT_MISSING, "Required keyusage for this certificate is missing" 29178825Sdfrerror_code CERT_NOT_FOUND, "Certificate not found" 30178825Sdfrerror_code UNKNOWN_LOCK_COMMAND, "Unknown lock command" 31178825Sdfrerror_code PARENT_IS_CA, "Parent certificate is a CA" 32178825Sdfrerror_code EXTRA_DATA_AFTER_STRUCTURE, "Extra data was found after the structure" 33178825Sdfrerror_code PROXY_CERT_INVALID, "Proxy certificate is invalid" 34178825Sdfrerror_code PROXY_CERT_NAME_WRONG, "Proxy certificate name is wrong" 35178825Sdfrerror_code NAME_MALFORMED, "Name is malformated" 36178825Sdfrerror_code CERTIFICATE_MALFORMED, "Certificate is malformated" 37178825Sdfrerror_code CERTIFICATE_MISSING_EKU, "Certificate is missing a required EKU" 38178825Sdfrerror_code PROXY_CERTIFICATE_NOT_CANONICALIZED, "Proxy certificate not canonicalize" 39178825Sdfr 40178825Sdfr# cms related errors 41178825Sdfrindex 32 42178825Sdfrprefix HX509_CMS 43178825Sdfrerror_code FAILED_CREATE_SIGATURE, "Failed to create signature" 44178825Sdfrerror_code MISSING_SIGNER_DATA, "Missing signer data" 45178825Sdfrerror_code SIGNER_NOT_FOUND, "Couldn't find signers certificate" 46178825Sdfrerror_code NO_DATA_AVAILABLE, "No data to perform the operation on" 47178825Sdfrerror_code INVALID_DATA, "Data in the message is invalid" 48178825Sdfrerror_code PADDING_ERROR, "Padding in the message invalid" 49178825Sdfrerror_code NO_RECIPIENT_CERTIFICATE, "Couldn't find recipient certificate" 50178825Sdfrerror_code DATA_OID_MISMATCH, "Mismatch bewteen signed type and unsigned type" 51178825Sdfr 52178825Sdfr# crypto related errors 53178825Sdfrindex 64 54178825Sdfrprefix HX509_CRYPTO 55178825Sdfrerror_code INTERNAL_ERROR, "Internal error in the crypto engine" 56178825Sdfrerror_code EXTERNAL_ERROR, "External error in the crypto engine" 57178825Sdfrerror_code SIGNATURE_MISSING, "Signature missing for data" 58178825Sdfrerror_code BAD_SIGNATURE, "Signature is not valid" 59178825Sdfrerror_code SIG_NO_CONF, "Sigature doesn't provide confidentiality" 60178825Sdfrerror_code SIG_INVALID_FORMAT, "Invalid format on signature" 61178825Sdfrerror_code OID_MISMATCH, "Mismatch bewteen oids" 62178825Sdfrerror_code NO_PROMPTER, "No prompter function defined" 63178825Sdfrerror_code SIGNATURE_WITHOUT_SIGNER, "Signature require signer, but non available" 64178825Sdfrerror_code RSA_PUBLIC_ENCRYPT, "RSA public encyption failed" 65233294Sstaserror_code RSA_PRIVATE_ENCRYPT, "RSA private encyption failed" 66233294Sstaserror_code RSA_PUBLIC_DECRYPT, "RSA public decryption failed" 67178825Sdfrerror_code RSA_PRIVATE_DECRYPT, "RSA private decryption failed" 68233294Sstaserror_code ALGORITHM_BEST_BEFORE, "Algorithm has passed its best before date" 69233294Sstaserror_code KEY_FORMAT_UNSUPPORTED, "Key format is unsupported" 70178825Sdfr 71178825Sdfr# revoke related errors 72178825Sdfrindex 96 73178825Sdfrprefix HX509 74178825Sdfrerror_code CRL_USED_BEFORE_TIME, "CRL used before it became valid" 75178825Sdfrerror_code CRL_USED_AFTER_TIME, "CRL used after it became invalid" 76178825Sdfrerror_code CRL_INVALID_FORMAT, "CRL have invalid format" 77178825Sdfrerror_code CERT_REVOKED, "Certificate is revoked" 78178825Sdfrerror_code REVOKE_STATUS_MISSING, "No revoke status found for certificates" 79178825Sdfrerror_code CRL_UNKNOWN_EXTENSION, "Unknown extension" 80178825Sdfrerror_code REVOKE_WRONG_DATA, "Got wrong CRL/OCSP data from server" 81178825Sdfrerror_code REVOKE_NOT_SAME_PARENT, "Doesn't have same parent as other certificates" 82178825Sdfrerror_code CERT_NOT_IN_OCSP, "Certificates not in OCSP reply" 83178825Sdfr 84178825Sdfr# misc error 85178825Sdfrindex 108 86178825Sdfrerror_code LOCAL_ATTRIBUTE_MISSING, "No local key attribute" 87178825Sdfrerror_code PARSING_KEY_FAILED, "Failed to parse key" 88178825Sdfrerror_code UNSUPPORTED_OPERATION, "Unsupported operation" 89178825Sdfrerror_code UNIMPLEMENTED_OPERATION, "Unimplemented operation" 90178825Sdfrerror_code PARSING_NAME_FAILED, "Failed to parse name" 91178825Sdfr 92178825Sdfr# keystore related error 93178825Sdfrindex 128 94178825Sdfrprefix HX509_PKCS11 95178825Sdfrerror_code NO_SLOT, "No smartcard reader/device found" 96178825Sdfrerror_code NO_TOKEN, "No smartcard in reader" 97178825Sdfrerror_code NO_MECH, "No supported mech(s)" 98178825Sdfrerror_code TOKEN_CONFUSED, "Token or slot failed in inconsistent way" 99178825Sdfrerror_code OPEN_SESSION, "Failed to open session to slot" 100178825Sdfrerror_code LOGIN, "Failed to login to slot" 101178825Sdfrerror_code LOAD, "Failed to load PKCS module" 102178825Sdfr 103178825Sdfrend 104