couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [1/2] chttpd commit: updated refs/heads/master to 64a5728
Date Fri, 25 Sep 2015 11:07:10 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 6f14c6169 -> 64a572815


Fix crypto deprecations

COUCHDB-2825


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/65de6ae1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/65de6ae1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/65de6ae1

Branch: refs/heads/master
Commit: 65de6ae1fd32f03e2923f4f6d86c972800da5bce
Parents: 091c5ac
Author: Robert Newson <rnewson@apache.org>
Authored: Wed Sep 23 19:29:54 2015 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Sep 23 19:29:54 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/65de6ae1/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index 8613578..1bd7e42 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -595,7 +595,7 @@ doc_etag(#doc{revs={Start, [DiskRev|_]}}) ->
     "\"" ++ ?b2l(couch_doc:rev_to_str({Start, DiskRev})) ++ "\"".
 
 make_etag(Term) ->
-    <<SigInt:128/integer>> = erlang:md5(term_to_binary(Term)),
+    <<SigInt:128/integer>> = couch_crypto:hash(md5, term_to_binary(Term)),
     list_to_binary(io_lib:format("\"~.36B\"",[SigInt])).
 
 etag_match(Req, CurrentEtag) when is_binary(CurrentEtag) ->


Mime
View raw message