Next: Error Functions, Up: Error Handling [Contents][Index]
Errors are returned as an int. Except for the SHISHI_OK case,
an application should always use the constants instead of their
numeric value. Applications are encouraged to use the constants even
for SHISHI_OK as it improves readability. Possible values are:
SHISHI_OKThis value indicates success. The value of this error is guaranteed
to always be 0 so you may use it in boolean constructs.
SHISHI_ASN1_ERRORError in ASN.1 function. (corrupt data?)
SHISHI_FOPEN_ERRORCould not open file.
SHISHI_IO_ERRORFile input/output error.
SHISHI_MALLOC_ERRORMemory allocation error in shishi library.
SHISHI_BASE64_ERRORBase64 encoding or decoding failed. Data corrupt?
SHISHI_REALM_MISMATCHClient realm value differ between request and reply.
SHISHI_CNAME_MISMATCHClient name value differ between request and reply.
SHISHI_NONCE_MISMATCHReplay protection value (nonce) differ between request and reply.
SHISHI_TGSREP_BAD_KEYTYPEIncorrect key type used in TGS reply.
SHISHI_KDCREP_BAD_KEYTYPEIncorrect key type used in reply from KDC.
SHISHI_APREP_BAD_KEYTYPEIncorrect key type used in AP reply.
SHISHI_APREP_VERIFY_FAILEDFailed verification of AP reply.
SHISHI_APREQ_BAD_KEYTYPEIncorrect key type used in AP request.
SHISHI_TOO_SMALL_BUFFERProvided buffer was too small.
SHISHI_DERIVEDKEY_TOO_SMALLDerived key material is too short to be applicable.
SHISHI_KEY_TOO_LARGEThe key is too large to be usable.
SHISHI_CRYPTO_ERRORLow-level cryptographic primitive failed. This usually indicates bad password or data corruption.
SHISHI_CRYPTO_INTERNAL_ERRORInternal error in low-level crypto routines.
SHISHI_SOCKET_ERRORThe system call socket() failed. This usually indicates that your system does not support the socket type.
SHISHI_BIND_ERRORThe system call bind() failed. This usually indicates insufficient permissions.
SHISHI_SENDTO_ERRORThe system call sendto() failed.
SHISHI_RECVFROM_ERRORError receiving data from server.
SHISHI_CLOSE_ERRORThe system call close() failed.
SHISHI_KDC_TIMEOUTTimed out talking to KDC. This usually indicates a network or KDC address problem.
SHISHI_KDC_NOT_KNOWN_FOR_REALMNo KDC known for given realm.
SHISHI_TTY_ERRORNo TTY assigned to process.
SHISHI_GOT_KRBERRORServer replied to the request with an error message.
SHISHI_HANDLE_ERRORFailure to use handle. Missing handle, or misconfigured.
SHISHI_INVALID_TKTSTicket set not initialized. This usually indicates an internal application error.
SHISHI_TICKET_BAD_KEYTYPEKey type used to encrypt ticket doesn’t match provided key. This usually indicates an internal application error.
SHISHI_INVALID_KEYReference to invalid encryption key.
SHISHI_APREQ_DECRYPT_FAILEDCould not decrypt AP-REQ using provided key. This usually indicates an internal application error.
SHISHI_TICKET_DECRYPT_FAILEDCould not decrypt Ticket using provided key. This usually indicates an internal application error.
SHISHI_INVALID_TICKETInvalid ticked passed in call.
SHISHI_OUT_OF_RANGEArgument lies outside of valid range.
SHISHI_ASN1_NO_ELEMENTThe ASN.1 structure does not contain the indicated element.
SHISHI_SAFE_BAD_KEYTYPEAttempted access to non-existent key type.
SHISHI_SAFE_VERIFY_FAILEDVerification failed on either side.
SHISHI_PKCS5_INVALID_PRFInvalid PKCS5 descriptor.
SHISHI_PKCS5_INVALID_ITERATION_COUNTInvalid claim of iteration count in PKCS5 descriptor.
SHISHI_PKCS5_INVALID_DERIVED_KEY_LENGTHDerived key length is incorrect for PKCS5 descriptor.
SHISHI_PKCS5_DERIVED_KEY_TOO_LONGDerived key is too long for PKCS5 descriptor.
SHISHI_INVALID_PRINCIPAL_NAMEPrincipal name syntax error.
SHISHI_INVALID_ARGUMENTInvalid argument passed in call. Wrong or unknown value.
SHISHI_ASN1_NO_VALUEThe indicated ASN.1 element does not carry a value.
SHISHI_CONNECT_ERRORConnection attempt failed. Try again, or check availability.
SHISHI_VERIFY_FAILEDVerification failed on either side.
SHISHI_PRIV_BAD_KEYTYPEThe private key uses an incompatible encryption type.
SHISHI_FILE_ERRORThe desired file could not be accessed. Check permissions.
SHISHI_ENCAPREPPART_BAD_KEYTYPEThe present AP reply specifies an inpermissible key type.
SHISHI_GETTIMEOFDAY_ERRORA request for present time of day has failed. This is usually internal, but a valid time is imperative for us.
SHISHI_KEYTAB_ERRORFailed to parse keytab file.
SHISHI_CCACHE_ERRORFailed to parse credential cache file.
Next: Error Functions, Up: Error Handling [Contents][Index]