Struct red_ntlm::NegotiateMsg[][src]

pub struct NegotiateMsg {
    pub flags: u32,
    pub domain: Option<String>,
    pub workstation: Option<String>,
    pub version: Option<Version>,
}

Negotiate NTLM message. It is the first message that is sent in a NTLM authentication.

It is defined in [MS-NLMP] section 2.2.1.

Fields

flags: u32domain: Option<String>

The domain of the host that sends the message.

workstation: Option<String>

The name of the host that sends the message.

version: Option<Version>

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

Implementations

impl NegotiateMsg[src]

pub fn has_flag(&self, flag: u32) -> bool[src]

Indicates if the given flag is set in the message.

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

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

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

Parse network bytes to build a Negotiate message.

Trait Implementations

impl Clone for NegotiateMsg[src]

impl Debug for NegotiateMsg[src]

impl Default for NegotiateMsg[src]

impl PartialEq<NegotiateMsg> for NegotiateMsg[src]

impl StructuralPartialEq for NegotiateMsg[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.