pub struct AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
    Inner: SspiImpl,
    CredsHandleSet: ToAssign,
    ContextRequirementsSet: ToAssign,
    TargetDataRepresentationSet: ToAssign,
    OutputSet: ToAssign
{ pub credentials_handle: Option<&'a mut CredsHandle>, pub context_requirements: ServerRequestFlags, pub target_data_representation: DataRepresentation, pub output: &'a mut [SecurityBuffer], pub input: Option<&'a mut [SecurityBuffer]>, /* private fields */ }
Expand description

A builder to execute one of the SSPI functions. Returned by the accept_security_context method.

Requirements for execution

These methods are required to be called before calling the execute method

Fields

credentials_handle: Option<&'a mut CredsHandle>context_requirements: ServerRequestFlagstarget_data_representation: DataRepresentationoutput: &'a mut [SecurityBuffer]input: Option<&'a mut [SecurityBuffer]>

Implementations

Specifies the server credentials. To retrieve this handle, the server calls the acquire_credentials_handle method with either the CredentialUse::Inbound or CredentialUse::Outbound flag set.

Specifies bit flags that specify the attributes required by the server to establish the context.

Specifies the data representation, such as byte ordering, on the target.

Specifies a mutable reference to a buffer with SecurityBuffer that contains the output buffer descriptor. This buffer is sent to the client for input into additional calls to initialize_security_context. An output buffer may be generated even if the function returns SecurityStatus::Ok. Any buffer generated must be sent back to the client application.

Specifies a mutable reference to a SecurityBuffer generated by a client call to initialize_security_context. The structure contains the input buffer descriptor.

Executes the SSPI function that the builder represents.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.