Mark KdcRequestBody encode as unsupported atm

bug/bundler_fix
jvazquez-r7 2014-12-09 17:05:20 -06:00
parent 24715bf78d
commit 82549315ff
2 changed files with 1 additions and 18 deletions

View File

@ -50,7 +50,7 @@ module Rex
end
def encode
raise ::RuntimeError, 'KdcRequestBody encoding is not supported'
end
private

View File

@ -207,21 +207,4 @@ describe Rex::Proto::Kerberos::Model::Field::KdcRequestBody do
end
end
end
=begin
describe "#encode" do
it "encodes correctly PrincipalName with single name" do
principal_name.name_type = 1
principal_name.name_string = ['juan']
expect(principal_name.encode.unpack('C*')).to eq(sample_single_name.unpack('C*'))
end
it "encodes correctly PrincipalName with several names" do
principal_name.name_type = 1
principal_name.name_string = ['krbtgt', 'DEMO.LOCAL']
expect(principal_name.encode.unpack('C*')).to eq(sample_multiple_name.unpack('C*'))
end
end
=end
end