couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couchdb-mango git commit: Fix crypto deprecations
Date Fri, 25 Sep 2015 11:10:42 GMT
Repository: couchdb-mango
Updated Branches:
  refs/heads/master bb595d010 -> 9eb60e78c


Fix crypto deprecations

COUCHDB-2825


Project: http://git-wip-us.apache.org/repos/asf/couchdb-mango/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mango/commit/9eb60e78
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mango/tree/9eb60e78
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mango/diff/9eb60e78

Branch: refs/heads/master
Commit: 9eb60e78ca2d8abb42d40324470dd54d37a84746
Parents: bb595d0
Author: Robert Newson <rnewson@apache.org>
Authored: Wed Sep 23 19:38:33 2015 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Sep 23 19:38:33 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/9eb60e78/src/mango_idx.erl
----------------------------------------------------------------------
diff --git a/src/mango_idx.erl b/src/mango_idx.erl
index 56b7fc2..867cbef 100644
--- a/src/mango_idx.erl
+++ b/src/mango_idx.erl
@@ -325,7 +325,7 @@ get_idx_name(Idx, Opts) ->
 gen_name(Idx, Opts0) ->
     Opts = lists:usort(Opts0),
     TermBin = term_to_binary({Idx, Opts}),
-    Sha = crypto:sha(TermBin),
+    Sha = couch_crypto:hash(sha, TermBin),
     mango_util:enc_hex(Sha).
 
 


Mime
View raw message