pub struct SessionEntry {
pub session_key: Option<[u8; 16]>,
pub signing_key: Option<[u8; 16]>,
pub dialect: Option<u16>,
pub user: String,
pub guest: bool,
pub cipher: Option<u16>,
pub enc_keys: Option<([u8; 32], [u8; 32])>,
pub encrypt_data: bool,
}Expand description
Established-session crypto material, shared server-wide so a new connection can bind another channel to the session ([MS-SMB2] §3.3.5.5.3 multichannel).
Fields§
§session_key: Option<[u8; 16]>Exported NTLM session key.
signing_key: Option<[u8; 16]>Dialect-specific signing key.
dialect: Option<u16>Negotiated dialect.
user: StringAuthenticated user name.
guest: boolWhether the session mapped to guest.
cipher: Option<u16>Negotiated cipher id.
enc_keys: Option<([u8; 32], [u8; 32])>(client-to-server, server-to-client) cipher keys.
encrypt_data: boolWhether the session forces encryption.
Trait Implementations§
Source§impl Clone for SessionEntry
impl Clone for SessionEntry
Source§fn clone(&self) -> SessionEntry
fn clone(&self) -> SessionEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionEntry
impl RefUnwindSafe for SessionEntry
impl Send for SessionEntry
impl Sync for SessionEntry
impl Unpin for SessionEntry
impl UnsafeUnpin for SessionEntry
impl UnwindSafe for SessionEntry
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