summaryrefslogtreecommitdiff
path: root/src/erlang-oauth/oauth_plaintext.erl
diff options
context:
space:
mode:
authorJason David Davies <jasondavies@apache.org>2010-01-12 19:29:23 +0000
committerJason David Davies <jasondavies@apache.org>2010-01-12 19:29:23 +0000
commitb9f59ca2986075112ff1de42320168affa10921e (patch)
tree5e2a443b255803cd1c4f75689055db2099fd9c4e /src/erlang-oauth/oauth_plaintext.erl
parent84fd4ae77ef7b4c53a9159394747676a1c65ab51 (diff)
Add utility for verifying hashes.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@898477 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/erlang-oauth/oauth_plaintext.erl')
-rw-r--r--src/erlang-oauth/oauth_plaintext.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/erlang-oauth/oauth_plaintext.erl b/src/erlang-oauth/oauth_plaintext.erl
index d8085e02..41a1e9b2 100644
--- a/src/erlang-oauth/oauth_plaintext.erl
+++ b/src/erlang-oauth/oauth_plaintext.erl
@@ -7,4 +7,4 @@ signature(CS, TS) ->
oauth_uri:calate("&", [CS, TS]).
verify(Signature, CS, TS) ->
- Signature =:= signature(CS, TS).
+ couch_util:verify(signature(CS, TS), Signature).