Sha256: ed48283fffd0cb61a55a0b2d27fd926684a4e453b64f3ef2044d2d36cdaf80ed

Contents?: true

Size: 1.08 KB

Versions: 15

Compression:

Stored size: 1.08 KB

Contents

module RubySMB
  module Dcerpc
    # The Alter context PDU as defined in
    # [The alter_context PDU](https://pubs.opengroup.org/onlinepubs/9629399/chap12.htm#tagcjh_17_06_04_01)
    class AlterContext < BinData::Record
      PTYPE = PTypes::ALTER_CONTEXT

      endian :little

      # PDU Header
      pdu_header    :pdu_header, label: 'PDU header'
      ndr_uint16    :max_xmit_frag, label: 'Max transmit frag size', initial_value: RubySMB::Dcerpc::MAX_XMIT_FRAG
      ndr_uint16    :max_recv_frag, label: 'Max receive frag size', initial_value: RubySMB::Dcerpc::MAX_RECV_FRAG
      ndr_uint32    :assoc_group_id, label: 'Incarnation of client-server assoc group'
      p_cont_list_t :p_context_list, label: 'Presentation context list', endpoint: -> { endpoint }

      # Auth Verifier
      sec_trailer   :sec_trailer, onlyif: -> { pdu_header.auth_length > 0 }
      string        :auth_value,
        onlyif: -> { pdu_header.auth_length > 0 },
        read_length: -> { pdu_header.auth_length }

      def initialize_instance
        super
        pdu_header.ptype = PTYPE
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ruby_smb-3.3.12 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.3.11 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.3.10 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.3.9 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.3.7 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.3.6 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.3.5 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.3.4 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.3.3 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.3.2 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.3.1 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.3.0 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.2.8 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.2.7 lib/ruby_smb/dcerpc/alter_context.rb
ruby_smb-3.2.6 lib/ruby_smb/dcerpc/alter_context.rb