class RubySMB::SMB2::NegotiateContext

An SMB2 NEGOTIATE_CONTEXT struct as defined in [2.2.3.1 SMB2 NEGOTIATE_CONTEXT Request Values](docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/15332256-522e-4a53-8cd7-0bd17678a2f7)

Constants

SMB2_COMPRESSION_CAPABILITIES

The NegotiateContext Data field contains a list of compression algorithms, as specified in section 2.2.3.1.3.

SMB2_ENCRYPTION_CAPABILITIES

The NegotiateContext Data field contains a list of encryption algorithms, as specified in section 2.2.3.1.2.

SMB2_NETNAME_NEGOTIATE_CONTEXT_ID

The NegotiateContext Data field contains the server name to which the client connects.

SMB2_PREAUTH_INTEGRITY_CAPABILITIES

The NegotiateContext Data field contains a list of preauthentication integrity hash functions as well as an optional salt value, as specified in section 2.2.3.1.1.

SMB2_TRANSPORT_CAPABILITIES

The NegotiateContext Data field contains the transport capabilities, as specified in section 2.2.3.1.5.

Public Instance Methods

pad_length() click to toggle source
# File lib/ruby_smb/smb2/negotiate_context.rb, line 117
def pad_length
  offset = pad.abs_offset % 8
  (8 - offset) % 8
end