Add constant with CRYPTO_MSG_TYPE

bug/bundler_fix
jvazquez-r7 2014-12-11 17:03:31 -06:00
parent 38a0506f2d
commit 424ce6ad53
1 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ module Rex
include Rex::Proto::Kerberos::Crypto::Rc4Hmac
CRYPTO_MSG_TYPE = 1
# @!attribute pa_time_stamp
# @return [Time] client's time
attr_accessor :pa_time_stamp
@ -56,7 +58,7 @@ module Rex
res = ''
case etype
when KERB_ETYPE_RC4_HMAC
res = encrypt_rc4_hmac(data, key, msg_type)
res = encrypt_rc4_hmac(data, key, CRYPTO_MSG_TYPE)
else
raise ::RuntimeError, 'EncryptedData schema is not supported'
end