pub struct NegotiateResponse {
pub security_mode: NegotiateSecurityMode,
pub dialect_revision: NegotiateDialect,
pub server_guid: Guid,
pub capabilities: GlobalCapabilities,
pub max_transact_size: u32,
pub max_read_size: u32,
pub max_write_size: u32,
pub system_time: FileTime,
pub server_start_time: FileTime,
pub buffer: Vec<u8>,
pub negotiate_context_list: Option<Vec<NegotiateContext>>,
}Expand description
SMB2 NEGOTIATE Response.
Sent by the server to notify the client of the preferred common dialect.
Reference: MS-SMB2 2.2.4
Fields§
§security_mode: NegotiateSecurityModeServer security mode.
dialect_revision: NegotiateDialectSelected dialect revision.
server_guid: GuidServer GUID.
capabilities: GlobalCapabilitiesServer capabilities.
max_transact_size: u32Maximum transaction size supported by the server.
max_read_size: u32Maximum read size supported by the server.
max_write_size: u32Maximum write size supported by the server.
system_time: FileTimeCurrent system time on the server.
server_start_time: FileTimeServer start time.
buffer: Vec<u8>Security buffer containing GSSAPI token.
negotiate_context_list: Option<Vec<NegotiateContext>>Negotiate contexts (SMB 3.1.1+ only).
Implementations§
Source§impl NegotiateResponse
impl NegotiateResponse
Sourcepub fn get_ctx_preauth_integrity_capabilities(
&self,
) -> Option<&PreauthIntegrityCapabilities>
pub fn get_ctx_preauth_integrity_capabilities( &self, ) -> Option<&PreauthIntegrityCapabilities>
Gets the negotiate context of type PreauthIntegrityCapabilities if present.
This method is auto-generated by the negotiate_context_type! macro.
Sourcepub fn get_ctx_encryption_capabilities(&self) -> Option<&EncryptionCapabilities>
pub fn get_ctx_encryption_capabilities(&self) -> Option<&EncryptionCapabilities>
Gets the negotiate context of type EncryptionCapabilities if present.
This method is auto-generated by the negotiate_context_type! macro.
Sourcepub fn get_ctx_compression_capabilities(
&self,
) -> Option<&CompressionCapabilities>
pub fn get_ctx_compression_capabilities( &self, ) -> Option<&CompressionCapabilities>
Gets the negotiate context of type CompressionCapabilities if present.
This method is auto-generated by the negotiate_context_type! macro.
Sourcepub fn get_ctx_netname_negotiate_context_id(
&self,
) -> Option<&NetnameNegotiateContextId>
pub fn get_ctx_netname_negotiate_context_id( &self, ) -> Option<&NetnameNegotiateContextId>
Gets the negotiate context of type NetnameNegotiateContextId if present.
This method is auto-generated by the negotiate_context_type! macro.
Sourcepub fn get_ctx_transport_capabilities(&self) -> Option<&TransportCapabilities>
pub fn get_ctx_transport_capabilities(&self) -> Option<&TransportCapabilities>
Gets the negotiate context of type TransportCapabilities if present.
This method is auto-generated by the negotiate_context_type! macro.
Sourcepub fn get_ctx_rdma_transform_capabilities(
&self,
) -> Option<&RdmaTransformCapabilities>
pub fn get_ctx_rdma_transform_capabilities( &self, ) -> Option<&RdmaTransformCapabilities>
Gets the negotiate context of type RdmaTransformCapabilities if present.
This method is auto-generated by the negotiate_context_type! macro.
Sourcepub fn get_ctx_signing_capabilities(&self) -> Option<&SigningCapabilities>
pub fn get_ctx_signing_capabilities(&self) -> Option<&SigningCapabilities>
Gets the negotiate context of type SigningCapabilities if present.
This method is auto-generated by the negotiate_context_type! macro.
Trait Implementations§
Source§impl BinRead for NegotiateResponse
impl BinRead for NegotiateResponse
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for NegotiateResponse
impl BinWrite for NegotiateResponse
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming native-endian byte order. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Self to the writer, assuming big-endian byte order, using the
given arguments. Read more