parent
635a54ca94
commit
13ec578d1a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue