Skip to content

Commit

Permalink
Fix crypto deprecations
Browse files Browse the repository at this point in the history
COUCHDB-2825
  • Loading branch information
rnewson committed Sep 23, 2015
1 parent 2b2933e commit 3e73b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/couch_plugins.erl
Expand Up @@ -231,7 +231,7 @@ do_verify_checksum(Filename, Checksum) ->
couch_log:debug("Checking Filename: ~s", [Filename]),
case file:read_file(Filename) of
{ok, Data} ->
ComputedChecksum = binary_to_list(base64:encode(crypto:sha(Data))),
ComputedChecksum = binary_to_list(base64:encode(couch_crypto:hash(sha, Data))),
case ComputedChecksum of
Checksum -> ok;
_Else ->
Expand Down

0 comments on commit 3e73b72

Please sign in to comment.