You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2015/09/25 13:09:06 UTC

couch-plugins commit: updated refs/heads/master to 3e73b72

Repository: couchdb-couch-plugins
Updated Branches:
  refs/heads/master 2b2933edd -> 3e73b723c


Fix crypto deprecations

COUCHDB-2825


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/commit/3e73b723
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/tree/3e73b723
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/diff/3e73b723

Branch: refs/heads/master
Commit: 3e73b723cb126cfc471b560d17c24a8b5c540085
Parents: 2b2933e
Author: Robert Newson <rn...@apache.org>
Authored: Wed Sep 23 19:32:58 2015 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Sep 23 19:32:58 2015 +0100

----------------------------------------------------------------------
 src/couch_plugins.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/blob/3e73b723/src/couch_plugins.erl
----------------------------------------------------------------------
diff --git a/src/couch_plugins.erl b/src/couch_plugins.erl
index c6dad48..c3ac946 100644
--- a/src/couch_plugins.erl
+++ b/src/couch_plugins.erl
@@ -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 ->