Skip to content

Commit

Permalink
Cloud artefact release 2012121202 (updated OAuth library)
Browse files Browse the repository at this point in the history
  • Loading branch information
anzeljg committed Dec 13, 2012
1 parent bd740e5 commit c112160
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cloud/lib/oauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,7 @@ function oauth_compute_hmac_sig($http_method, $url, $params, $consumer_secret, $
$base_string = signature_base_string($http_method, $url, $params);
$signature_key = rfc3986_encode($consumer_secret) . '&' . rfc3986_encode($token_secret);
$sig = base64_encode(hash_hmac('sha1', $base_string, $signature_key, true));
if ($debug) {
logit("oauth_compute_hmac_sig:DBG:sig:$sig");
}

return $sig;
}

Expand Down Expand Up @@ -325,8 +323,6 @@ function signature_base_string($http_method, $url, $params)
rfc3986_encode(normalize_url($url)) . '&' .
rfc3986_encode(oauth_http_build_query($params));

logit("signature_base_string:INFO:normalized_base_string:$base_string");

return $base_string;
}

Expand Down

0 comments on commit c112160

Please sign in to comment.