[][src]Struct sspi::credssp::ts_request::TsRequest

pub struct TsRequest {
    pub peer_version: Option<u32>,
    pub nego_tokens: Option<Vec<u8>>,
    pub auth_info: Option<Vec<u8>>,
    pub pub_key_auth: Option<Vec<u8>>,
    pub error_code: Option<u32>,
    pub client_nonce: Option<[u8; 32]>,
}

Used for communication in the CredSSP client and server. It's a top-most structure that they use.

MSDN

Fields

peer_version: Option<u32>

Specifies the supported version of the CredSSP protocol.

nego_tokens: Option<Vec<u8>>

Contains the SPNEGO tokens or NTLM messages that are passed between the client and server.

auth_info: Option<Vec<u8>>

Contains the user's credentials that are delegated to the server.

pub_key_auth: Option<Vec<u8>>

Used to assure that the public key that is used by the server during the TLS handshake belongs to the target server and not to a man-in-the-middle.

error_code: Option<u32>

If the SPNEGO exchange fails on the server, this field is used to send the failure code to the client.

client_nonce: Option<[u8; 32]>

An array of cryptographically random bytes used to provide sufficient entropy during hash computation.

Methods

impl TsRequest[src]

pub fn from_buffer(buffer: &[u8]) -> Result<TsRequest>[src]

Creates a TsRequest structure from a raw array.

Arguments

  • buffer - the array of bytess

pub fn encode_ts_request(&self, buffer: impl Write) -> Result<()>[src]

Encodes the TsRequest to be ready to be sent to the TLS stream.

Arguments

  • buffer - an output buffer

pub fn buffer_len(&self) -> u16[src]

pub fn check_error(&self) -> Result<()>[src]

Trait Implementations

impl Default for TsRequest[src]

impl Clone for TsRequest[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for TsRequest[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self