lib/net/ntlm.rb in rubyntlm-0.3.2 vs lib/net/ntlm.rb in rubyntlm-0.3.3
- old
+ new
@@ -52,11 +52,11 @@
module NTLM
# @private
module VERSION
MAJOR = 0
MINOR = 3
- TINY = 2
+ TINY = 3
STRING = [MAJOR, MINOR, TINY].join('.')
end
SSP_SIGN = "NTLMSSP\0"
BLOB_SIGN = 0x00000101
@@ -213,19 +213,19 @@
hash = arg[:lm_hash]
chal = arg[:challenge]
rescue
raise ArgumentError
end
- chal = NTL::pack_int64le(chal) if chal.is_a?(Integer)
+ chal = NTLM::pack_int64le(chal) if chal.is_a?(Integer)
keys = gen_keys hash.ljust(21, "\0")
apply_des(chal, keys).join
end
def ntlm_response(arg)
hash = arg[:ntlm_hash]
chal = arg[:challenge]
- chal = NTL::pack_int64le(chal) if chal.is_a?(Integer)
+ chal = NTLM::pack_int64le(chal) if chal.is_a?(Integer)
keys = gen_keys hash.ljust(21, "\0")
apply_des(chal, keys).join
end
def ntlmv2_response(arg, opt = {})
@@ -234,10 +234,10 @@
chal = arg[:challenge]
ti = arg[:target_info]
rescue
raise ArgumentError
end
- chal = NTL::pack_int64le(chal) if chal.is_a?(Integer)
+ chal = NTLM::pack_int64le(chal) if chal.is_a?(Integer)
if opt[:client_challenge]
cc = opt[:client_challenge]
else
cc = rand(MAX64)