Class: RubySMB::Dcerpc::SecTrailer

Inherits:
Ndr::NdrStruct show all
Defined in:
lib/ruby_smb/dcerpc/sec_trailer.rb

Overview

Instance Method Summary collapse

Methods inherited from Ndr::NdrStruct

#initialize_shared_instance, method_missing, validate_conformant_array

Instance Method Details

#get_auth_pad_length(obj) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/ruby_smb/dcerpc/sec_trailer.rb', line 16

def get_auth_pad_length(obj)
  parent = obj&.parent&.parent
  if parent&.respond_to?(:auth_pad)
    return parent.auth_pad.length if parent.auth_pad.respond_to?(:length)
  end
  0
end