#[non_exhaustive]pub enum PacForgeError {
Decode(String),
Encode(String),
Decrypt(String),
Encrypt(String),
Signature(String),
MissingBuffer(u32),
Truncated(String),
NoAuthData,
InvalidVersion(u32),
InvalidIdentity(String),
}Expand description
Typed error for PAC marshaling + Kerberos ticket forgery. Replaces the
previous anyhow::Error public surface so callers can match specific
failure modes (wrong key vs malformed PAC vs encode failure).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decode(String)
DER / PAC decode failure.
Encode(String)
DER / PAC encode failure.
Decrypt(String)
EncTicketPart decrypt failure (usually a wrong krbtgt / service key).
Encrypt(String)
EncTicketPart encrypt failure.
Signature(String)
PAC signature / checksum computation failure.
MissingBuffer(u32)
A required PAC buffer type was not present.
Truncated(String)
PAC truncated or a buffer offset ran past the blob.
NoAuthData
The ticket carried no authorization-data (no PAC to extract).
InvalidVersion(u32)
PAC version field was not 0.
InvalidIdentity(String)
Caller-supplied identity was invalid.
Trait Implementations§
Source§impl Debug for PacForgeError
impl Debug for PacForgeError
Source§impl Display for PacForgeError
impl Display for PacForgeError
Source§impl Error for PacForgeError
impl Error for PacForgeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Forget for PacForgeError
impl Freeze for PacForgeError
impl Move for PacForgeError
impl RefUnwindSafe for PacForgeError
impl Send for PacForgeError
impl Sync for PacForgeError
impl Unpin for PacForgeError
impl UnsafeUnpin for PacForgeError
impl UnwindSafe for PacForgeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more