couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject oauth commit: updated refs/heads/fix-deprecations to 36d2ff1
Date Sat, 20 Jun 2015 15:45:34 GMT
Repository: couchdb-oauth
Updated Branches:
  refs/heads/fix-deprecations [created] 36d2ff16f


fix deprecations


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

Branch: refs/heads/fix-deprecations
Commit: 36d2ff16f0b9c8f1ecae39e91bbebffe2e9e4033
Parents: 2e26bf0
Author: Robert Newson <rnewson@apache.org>
Authored: Sat Jun 20 16:45:26 2015 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Sat Jun 20 16:45:26 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/36d2ff16/src/oauth.erl
----------------------------------------------------------------------
diff --git a/src/oauth.erl b/src/oauth.erl
index e75d5fd..5f80008 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(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)).


Mime
View raw message