Struct red_ntlm::ChallengeMsg[][src]

pub struct ChallengeMsg {
    pub flags: u32,
    pub server_challenge: [u8; 8],
    pub version: Option<Version>,
    pub target_name: Option<String>,
    pub target_info: AvPairs,
}

Fields

flags: u32server_challenge: [u8; 8]

A nonce generated by the authentication server.

version: Option<Version>

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

target_name: Option<String>

Indicates the server authentication realm. If server is in a domain, then is the domain name, else is the server name. It must be sent when NTLMSSP_REQUEST_TARGET is set.

target_info: AvPairs

An array with several information about the server.

Implementations

impl ChallengeMsg[src]

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

Indicates if the given flag is set in the message.

pub fn nb_computer_name(&self) -> Option<&String>[src]

Returns the NetBIOS computer name if it is in target_info.

pub fn nb_domain_name(&self) -> Option<&String>[src]

Returns the NetBIOS domain name if it is in target_info.

pub fn dns_computer_name(&self) -> Option<&String>[src]

Returns the DNS computer name if it is in target_info.

pub fn dns_domain_name(&self) -> Option<&String>[src]

Returns the DNS domain name if it is in target_info.

pub fn dns_tree_name(&self) -> Option<&String>[src]

Returns the DNS tree name (forest name) if it is in target_info.

pub fn timestamp(&self) -> Option<&NtlmTime>[src]

Returns the timestamp if it is in target_info.

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

Parse network bytes to build a Challenge message.

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

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

Trait Implementations

impl Clone for ChallengeMsg[src]

impl Debug for ChallengeMsg[src]

impl Default for ChallengeMsg[src]

impl PartialEq<ChallengeMsg> for ChallengeMsg[src]

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