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:48 UTC

oauth commit: updated refs/heads/master to 099057a

Repository: couchdb-oauth
Updated Branches:
  refs/heads/master 2e26bf0f4 -> 099057a98


Fix crypto deprecations

COUCHDB-2825


Project: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/commit/099057a9
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/tree/099057a9
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/diff/099057a9

Branch: refs/heads/master
Commit: 099057a98e41f3aff91e77e3cf496d6c6fd901df
Parents: 2e26bf0
Author: Robert Newson <rn...@apache.org>
Authored: Wed Sep 23 19:36:52 2015 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Sep 23 19:36:52 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/099057a9/src/oauth.erl
----------------------------------------------------------------------
diff --git a/src/oauth.erl b/src/oauth.erl
index e75d5fd..56c7f7b 100644
--- a/src/oauth.erl
+++ b/src/oauth.erl
@@ -128,7 +128,7 @@ hmac_sha1_signature(HttpMethod, URL, Params, Consumer, TokenSecret) ->
 
 hmac_sha1_signature(BaseString, Consumer, TokenSecret) ->
   Key = uri_join([consumer_secret(Consumer), TokenSecret]),
-  base64:encode_to_string(crypto:sha_mac(Key, BaseString)).
+  base64:encode_to_string(couch_crypto:hmac(sha, Key, BaseString)).
 
 hmac_sha1_verify(Signature, HttpMethod, URL, Params, Consumer, TokenSecret) ->
   verify_in_constant_time(Signature, hmac_sha1_signature(HttpMethod, URL, Params, Consumer, TokenSecret)).