Skip to content

Commit

Permalink
Merge pull request #4 from dmaloney-r7/master
Browse files Browse the repository at this point in the history
Typo in NTLM namespace calls
  • Loading branch information
pmorton committed Jul 23, 2013
2 parents 47dedef + 9c13117 commit 3210f0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/net/ntlm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ def lm_response(arg)
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
Expand All @@ -236,7 +236,7 @@ def ntlmv2_response(arg, opt = {})
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]
Expand Down

0 comments on commit 3210f0b

Please sign in to comment.