Skip to content

Commit

Permalink
Replace call to obsolete digest method
Browse files Browse the repository at this point in the history
  • Loading branch information
robdavid committed Mar 20, 2021
1 parent 31ca429 commit 2830ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xmpp/auth/scram-sha.cr
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module XMPP

# stored_key = OpenSSL::SHA1.hash(client_key.to_unsafe, LibC::SizeT.new(client_key.bytesize))
hasher.update(client_key)
stored_key = hasher.digest
stored_key = hasher.final

auth_msg = "#{initial_msg},#{server_resp},#{bare_msg}"
client_sig = OpenSSL::HMAC.digest(algorithm: algorithm, key: stored_key, data: auth_msg)
Expand Down

0 comments on commit 2830ad5

Please sign in to comment.