summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Hoyt <josh@janrain.com>2006-01-25 19:17:04 +0000
committerJosh Hoyt <josh@janrain.com>2006-01-25 19:17:04 +0000
commit531e1ff43648a3bef61e0c9436005141c75a0a6a (patch)
tree8fed40873305e315eaa6bae14bcf819461fbb240
parent4111c59710076807fc0300610e20238141d00b52 (diff)
downloadphp-openid-531e1ff43648a3bef61e0c9436005141c75a0a6a.zip
php-openid-531e1ff43648a3bef61e0c9436005141c75a0a6a.tar.gz
php-openid-531e1ff43648a3bef61e0c9436005141c75a0a6a.tar.bz2
[project @ Simplify $association->signDict]
-rw-r--r--Auth/OpenID/Association.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Auth/OpenID/Association.php b/Auth/OpenID/Association.php
index 7bc1a15..07110b6 100644
--- a/Auth/OpenID/Association.php
+++ b/Auth/OpenID/Association.php
@@ -238,7 +238,6 @@ class Auth_OpenID_Association {
*/
function sign($pairs)
{
- assert($this->assoc_type == 'HMAC-SHA1');
$kv = Auth_OpenID_KVForm::arrayToKV($pairs);
return Auth_OpenID_HMACSHA1($this->secret, $kv);
}
@@ -256,7 +255,7 @@ class Auth_OpenID_Association {
{
$pairs = array();
foreach ($fields as $field) {
- $pairs[] = array($field, $data[$prefix . $field]);
+ $pairs[$field] = $data[$prefix . $field];
}
return base64_encode($this->sign($pairs));