Struct red_ntlm::AuthenticateMsg[][src]

pub struct AuthenticateMsg {
    pub flags: u32,
    pub version: Option<Version>,
    pub mic: Option<[u8; 16]>,
    pub lm_response: Option<LmResponse>,
    pub ntlm_response: Option<NtlmResponse>,
    pub domain_name: String,
    pub username: String,
    pub workstation: String,
    pub encrypted_session_key: Option<Vec<u8>>,
}

Fields

flags: u32version: Option<Version>

The Operating System version of the host that sends the message. It must be sent when NTLM_NEG_VERSION is set.

mic: Option<[u8; 16]>

The message integrity code.

lm_response: Option<LmResponse>

The LM response to the challenge.

ntlm_response: Option<NtlmResponse>

The NTLM response to the challenge.

domain_name: String

The domain or computer name hosting the user account.

username: String

The username to authenticate.

workstation: String

The host where the user is logged.

encrypted_session_key: Option<Vec<u8>>

The session key encrypted to transmit. It must be sent when NTLMSSP_NEGOTIATE_KEY_EXCH is set.

Implementations

impl AuthenticateMsg[src]

pub fn build(&self) -> Vec<u8>[src]

Create the raw representation in bytes to be transmitted over the network.

pub fn parse(raw: &[u8], auth_version: NtlmAuth) -> Result<Self>[src]

Parse network bytes to build a Authenticate message.

Trait Implementations

impl Clone for AuthenticateMsg[src]

impl Debug for AuthenticateMsg[src]

impl Default for AuthenticateMsg[src]

impl PartialEq<AuthenticateMsg> for AuthenticateMsg[src]

impl StructuralPartialEq for AuthenticateMsg[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.