Revert "Back to Create OpenSSL::BN from string"

This reverts commit 635a54ca94.
bug/bundler_fix
jvazquez-r7 2014-12-22 23:17:03 -06:00
parent 635a54ca94
commit 13ec578d1a
12 changed files with 17 additions and 17 deletions

View File

@ -55,7 +55,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_pvno
bn = OpenSSL::BN.new(pvno)
bn = OpenSSL::BN.new(pvno.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int
@ -65,7 +65,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_msg_type
bn = OpenSSL::BN.new(msg_type)
bn = OpenSSL::BN.new(msg_type.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int

View File

@ -85,7 +85,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_vno
bn = OpenSSL::BN.new(vno)
bn = OpenSSL::BN.new(vno.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int
@ -116,7 +116,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_cusec
bn = OpenSSL::BN.new(cusec)
bn = OpenSSL::BN.new(cusec.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int

View File

@ -65,7 +65,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_type(type)
bn = OpenSSL::BN.new(type)
bn = OpenSSL::BN.new(type.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int

View File

@ -40,7 +40,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_type
bn = OpenSSL::BN.new(type)
bn = OpenSSL::BN.new(type.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int

View File

@ -85,7 +85,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_etype
bn = OpenSSL::BN.new(etype)
bn = OpenSSL::BN.new(etype.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int
@ -95,7 +95,7 @@ module Rex
#
# @raise [RuntimeError]
def encode_kvno
bn = OpenSSL::BN.new(kvno)
bn = OpenSSL::BN.new(kvno.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int

View File

@ -87,7 +87,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_type
bn = OpenSSL::BN.new(type)
bn = OpenSSL::BN.new(type.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int

View File

@ -58,7 +58,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_pvno
bn = OpenSSL::BN.new(pvno)
bn = OpenSSL::BN.new(pvno.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int
@ -68,7 +68,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_msg_type
bn = OpenSSL::BN.new(msg_type)
bn = OpenSSL::BN.new(msg_type.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int

View File

@ -151,7 +151,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_nonce
bn = OpenSSL::BN.new(nonce)
bn = OpenSSL::BN.new(nonce.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int
@ -163,7 +163,7 @@ module Rex
def encode_etype
encoded_types = []
etype.each do |member|
bn = OpenSSL::BN.new(member)
bn = OpenSSL::BN.new(member.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
encoded_types << int
end

View File

@ -50,7 +50,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_type
int_bn = OpenSSL::BN.new(type)
int_bn = OpenSSL::BN.new(type.to_s)
int = OpenSSL::ASN1::Integer.new(int_bn)
int

View File

@ -79,7 +79,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_pausec
int_bn = OpenSSL::BN.new(pausec)
int_bn = OpenSSL::BN.new(pausec.to_s)
int = OpenSSL::ASN1::Integer.new(int_bn)
int

View File

@ -51,7 +51,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_name_type
int_bn = OpenSSL::BN.new(name_type)
int_bn = OpenSSL::BN.new(name_type.to_s)
int = OpenSSL::ASN1::Integer.new(int_bn)
int

View File

@ -57,7 +57,7 @@ module Rex
#
# @return [OpenSSL::ASN1::Integer]
def encode_tkt_vno
bn = OpenSSL::BN.new(tkt_vno)
bn = OpenSSL::BN.new(tkt_vno.to_s)
int = OpenSSL::ASN1::Integer.new(bn)
int