Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 03BDB200CD8 for ; Wed, 2 Aug 2017 16:06:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0050D169895; Wed, 2 Aug 2017 14:06:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 691E9169894 for ; Wed, 2 Aug 2017 16:06:58 +0200 (CEST) Received: (qmail 11580 invoked by uid 500); 2 Aug 2017 14:06:57 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 11558 invoked by uid 99); 2 Aug 2017 14:06:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2017 14:06:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3A729E95C7; Wed, 2 Aug 2017 14:06:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: iilyak@apache.org To: commits@couchdb.apache.org Date: Wed, 02 Aug 2017 14:06:56 -0000 Message-Id: <0fed2b43870c40c7b3db2aa5c4a9a21a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] oauth commit: updated refs/heads/master to 0285163 archived-at: Wed, 02 Aug 2017 14:06:59 -0000 Repository: couchdb-oauth Updated Branches: refs/heads/master 099057a98 -> 02851639f Remove couch_crypto Project: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/commit/55d4441a Tree: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/tree/55d4441a Diff: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/diff/55d4441a Branch: refs/heads/master Commit: 55d4441ad235e89a1549dc8fd54edb43ee9442a8 Parents: 099057a Author: ILYA Khlopotov Authored: Tue Aug 1 14:29:50 2017 -0700 Committer: ILYA Khlopotov Committed: Tue Aug 1 14:29:50 2017 -0700 ---------------------------------------------------------------------- src/oauth.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/55d4441a/src/oauth.erl ---------------------------------------------------------------------- diff --git a/src/oauth.erl b/src/oauth.erl index 56c7f7b..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(couch_crypto:hmac(sha, 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)).