Updating Janrain OpenID auth library

Source: https://github.com/openid/php-openid
This commit is contained in:
Mikael Nordfeldth
2013-09-24 01:49:34 +02:00
parent f01c478aab
commit 49b755912f
17 changed files with 738 additions and 73 deletions

View File

@@ -104,5 +104,19 @@ class Auth_OpenID_CryptUtil {
return $str;
}
static function constEq($s1, $s2)
{
if (strlen($s1) != strlen($s2)) {
return false;
}
$result = true;
$length = strlen($s1);
for ($i = 0; $i < $length; $i++) {
$result &= ($s1[$i] == $s2[$i]);
}
return $result;
}
}