commit 0042dd65adeb78c82dfffa83820397be6c8a54dd Author: Tom Hughes <tom@compton.nu> Date: Sun Mar 10 18:42:50 2013 +0000 Remove fallback to javascript SHA1 implementation diff --git a/lib/oauth.js b/lib/oauth.js index be3c6d6..fdbc6b2 100644 --- a/lib/oauth.js +++ b/lib/oauth.js @@ -1,5 +1,4 @@ var crypto= require('crypto'), - sha1= require('./sha1'), http= require('http'), https= require('https'), URL= require('url'), @@ -198,12 +197,7 @@ exports.OAuth.prototype._createSignature= function(signatureBase, tokenSecret) { hash= key; } else { - if( crypto.Hmac ) { - hash = crypto.createHmac("sha1", key).update(signatureBase).digest("base64"); - } - else { - hash= sha1.HMACSHA1(key, signatureBase); - } + hash = crypto.createHmac("sha1", key).update(signatureBase).digest("base64"); } return hash; }