pub struct Ccache {
pub header: Vec<u8>,
pub primary: Principal,
pub credentials: Vec<Credential>,
}Expand description
A parsed ccache file — a default principal and every credential the KDC issued it.
Fields§
§header: Vec<u8>File-header tagged fields, exactly as read — v0.1 preserves them opaquely so round-tripping doesn’t disturb DConf / DeltaTime tags callers may not understand.
primary: PrincipalThe default principal — the identity klist labels the cache with.
credentials: Vec<Credential>Every credential in the cache, in file order (the order MIT tools rely on for “most recently added” selection).
Implementations§
Source§impl Ccache
impl Ccache
Sourcepub fn parse(bytes: &[u8]) -> Result<Self, CcacheError>
pub fn parse(bytes: &[u8]) -> Result<Self, CcacheError>
Parse the on-disk v4 format. Returns CcacheError::UnsupportedVersion on any
magic other than 0x0504 and CcacheError::Truncated on any length that would
run past the buffer.
Trait Implementations§
impl Eq for Ccache
impl StructuralPartialEq for Ccache
Auto Trait Implementations§
impl Freeze for Ccache
impl RefUnwindSafe for Ccache
impl Send for Ccache
impl Sync for Ccache
impl Unpin for Ccache
impl UnsafeUnpin for Ccache
impl UnwindSafe for Ccache
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