Class: RubySMB::SMB2::NegotiateContext

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/ruby_smb/smb2/negotiate_context.rb

Overview

An SMB2 NEGOTIATE_CONTEXT struct as defined in 2.2.3.1 SMB2 NEGOTIATE_CONTEXT Request Values

Constant Summary collapse

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.

0x0001
SMB2_ENCRYPTION_CAPABILITIES =

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

0x0002
SMB2_COMPRESSION_CAPABILITIES =

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

0x0003
SMB2_NETNAME_NEGOTIATE_CONTEXT_ID =

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

0x0005

Instance Method Summary collapse

Instance Method Details

#pad_lengthObject



101
102
103
104
# File 'lib/ruby_smb/smb2/negotiate_context.rb', line 101

def pad_length
  offset = pad.abs_offset % 8
  (8 - offset) % 8
end