Sha256: 7ef9d9bb333d109aadf06da66bcdbfd9542fd6e4bc65f460397e0aebe03c90b7

Contents?: true

Size: 1.31 KB

Versions: 10

Compression:

Stored size: 1.31 KB

Contents

module RubySMB
  module Dcerpc

    # This class represents a RPC_SECURITY_DESCRIPTOR structure as defined in
    # [2.2.8 RPC_SECURITY_DESCRIPTOR](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/9729e781-8eb9-441b-82ca-e898f98d29c2)
    class RpcSecurityDescriptor < BinData::Record
      endian :little

      ndr_lp_byte_array :lp_security_descriptor
      uint32            :cb_in_security_descriptor
      uint32            :cb_out_security_descriptor
    end

    # This class represents a RPC_SECURITY_ATTRIBUTES structure as defined in
    # [2.2.7 RPC_SECURITY_ATTRIBUTES](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/bc37b8cf-8c94-4804-ad53-0aaf5eaf0ecb)
    class RpcSecurityAttributes < BinData::Record
      endian :little

      uint32                  :n_length
      rpc_security_descriptor :rpc_security_descriptor
      uint8                   :b_inheritHandle
    end

    # This class represents a pointer to a RPC_SECURITY_ATTRIBUTES structure as defined in
    # [2.2.7 RPC_SECURITY_ATTRIBUTES](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/bc37b8cf-8c94-4804-ad53-0aaf5eaf0ecb)
    class PrpcSecurityAttributes < Ndr::NdrPointer
      endian :little

      rpc_security_attributes :referent, onlyif: -> { self.referent_id != 0 }
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby_smb-2.0.12 lib/ruby_smb/dcerpc/rpc_security_attributes.rb
ruby_smb-2.0.11 lib/ruby_smb/dcerpc/rpc_security_attributes.rb
ruby_smb-2.0.10 lib/ruby_smb/dcerpc/rpc_security_attributes.rb
ruby_smb-2.0.9 lib/ruby_smb/dcerpc/rpc_security_attributes.rb
ruby_smb-2.0.8 lib/ruby_smb/dcerpc/rpc_security_attributes.rb
ruby_smb-2.0.7 lib/ruby_smb/dcerpc/rpc_security_attributes.rb
ruby_smb-2.0.6 lib/ruby_smb/dcerpc/rpc_security_attributes.rb
ruby_smb-2.0.5 lib/ruby_smb/dcerpc/rpc_security_attributes.rb
ruby_smb-2.0.4 lib/ruby_smb/dcerpc/rpc_security_attributes.rb
ruby_smb-2.0.3 lib/ruby_smb/dcerpc/rpc_security_attributes.rb