Class: Rex::Proto::Kerberos::Model::Pkinit::EncapsulatedContentInfo

Inherits:
RASN1::Model
  • Object
show all
Defined in:
lib/rex/proto/kerberos/model/pkinit.rb

Instance Method Summary collapse

Instance Method Details

#econtentObject



99
100
101
102
103
104
105
# File 'lib/rex/proto/kerberos/model/pkinit.rb', line 99

def econtent
  if self[:econtent_type].value == '1.3.6.1.5.2.3.2'
    KdcDhKeyInfo.parse(self[:econtent].value)
  elsif self[:econtent_type].value == '1.3.6.1.5.2.3.1'
    AuthPack.parse(self[:econtent].value)
  end
end