use crate::client::conf::KerberosConfigError;
#[derive(Debug)]
pub enum KrbError {
InvalidHmacSha1Key,
MessageAuthenticationFailed,
MessageEmpty,
InsufficientData,
PlaintextEmpty,
CtsCiphertextInvalid,
InsecurePassphrase,
UnsupportedEncryption,
UnsupportedChecksumType,
MissingPaData,
MissingServiceNameWithRealm,
MissingClientName,
MissingRealm,
DerDecodePaData,
DerDecodeEtypeInfo2,
DerEncodePaEncTsEnc,
DerDecodePaEncTsEnc,
DerDecodeEncKdcRepPart,
DerEncodeEncKdcRepPart,
DerEncodeOctetString,
DerEncodeEncTicketPart,
DerEncodeAny,
DerEncodeAuthenticator,
DerDecodeAuthenticator,
DerEncodeApReq,
DerEncodeKdcReqBody,
DerDecodeKdcReqBody,
DerEncodeKerberosString,
DerEncodeKerberosTime,
DerEncodeKrbErrorCode,
PreauthUnsupported,
PreauthMissingEtypeInfo2,
PreauthInvalidUnixTs,
PreauthInvalidS2KParams,
RequestTooLarge,
RequestIoRead,
TgsMissingPaApReq,
TgsInvalidPaApReq,
TgsAuthMissingChecksum,
TgsAuthChecksumFailure,
TgsNotForRealm,
TgsTicketIsNotTgt,
TgsKdcReqMissingServiceName,
TgsKdcMissingStartTime,
ApInappChecksum,
NameNotPrincipal,
NameNotServiceHost,
NameNumberOfComponents,
PrincipalNameInvalidComponents,
PrincipalNameInvalidType,
CredentialCacheError,
CredentialCacheNotFound,
UnsupportedCredentialCacheType,
UnsupportedKeytabType,
KeytabFileError,
IoError,
BinRWError,
KeyutilsError,
InvalidMessageType,
InvalidMessageDirection,
InvalidPvno,
InvalidEncryptionKey,
LastRequestInvalidType,
DoYouHaveATimeMachine,
ConfigError(KerberosConfigError),
}