Class: RubySMB::SMB2::NegotiateContext
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- RubySMB::SMB2::NegotiateContext
- 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
- SMB2_TRANSPORT_CAPABILITIES =
The NegotiateContext Data field contains the transport capabilities, as specified in section 2.2.3.1.5.
0x0006
- SMB2_RDMA_TRANSFORM_CAPABILITIES =
The NegotiateContext Data field contains the RDMA transform capabilities, as specified in section 2.2.3.1.6.
0x0007
- SMB2_SIGNING_CAPABILITIES =
The NegotiateContext Data field contains the signing capabilities, as specified in section 2.2.3.1.7.
0x0008
Instance Method Summary collapse
Instance Method Details
#pad_length ⇒ Object
126 127 128 129 |
# File 'lib/ruby_smb/smb2/negotiate_context.rb', line 126 def pad_length offset = pad.abs_offset % 8 (8 - offset) % 8 end |