summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID/Association.php
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-01-15 20:24:59 +0000
committertailor <cygnus@janrain.com>2007-01-15 20:24:59 +0000
commit899f8c2562b3528c94efb6e602c043ab5a0fb667 (patch)
treea62cd3cb0d6ae6402f19b5f52e49d2bbb4435e11 /Auth/OpenID/Association.php
parent03634c658cb7451a8d14935e70a8fdeec8c0364c (diff)
downloadphp-openid-899f8c2562b3528c94efb6e602c043ab5a0fb667.zip
php-openid-899f8c2562b3528c94efb6e602c043ab5a0fb667.tar.gz
php-openid-899f8c2562b3528c94efb6e602c043ab5a0fb667.tar.bz2
[project @ Fix no-math-support in consumer]
Diffstat (limited to 'Auth/OpenID/Association.php')
-rw-r--r--Auth/OpenID/Association.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/Auth/OpenID/Association.php b/Auth/OpenID/Association.php
index 9e7ac14..241d590 100644
--- a/Auth/OpenID/Association.php
+++ b/Auth/OpenID/Association.php
@@ -370,9 +370,15 @@ function Auth_OpenID_checkSessionType($assoc_type, $session_type)
function Auth_OpenID_getDefaultAssociationOrder()
{
- return array(
- array('HMAC-SHA1', 'DH-SHA1'),
- array('HMAC-SHA1', 'no-encryption'));
+ $order = array();
+
+ if (!defined('Auth_OpenID_NO_MATH_SUPPORT')) {
+ $order[] = array('HMAC-SHA1', 'DH-SHA1');
+ }
+
+ $order[] = array('HMAC-SHA1', 'no-encryption');
+
+ return $order;
}
function Auth_OpenID_getOnlyEncryptedOrder()