Mark EncryptedData encode as unsupported atm

bug/bundler_fix
jvazquez-r7 2014-12-09 17:06:51 -06:00
parent 82549315ff
commit bed1e06d13
1 changed files with 5 additions and 1 deletions

View File

@ -28,12 +28,16 @@ module Rex
when OpenSSL::ASN1::Sequence
decode_asn1(input)
else
raise ::RuntimeError, 'Failed to decode Principal Name, invalid input'
raise ::RuntimeError, 'Failed to decode EncryptedData Name, invalid input'
end
self
end
def encode
raise ::RuntimeError, 'EncryptedData encoding is not supported'
end
private
# Decodes a Rex::Proto::Kerberos::Model::Type::EncryptedData from an String