2011-12-13 12:29:05 +01:00
|
|
|
This library contains a copy of the PHP OpenID library.
|
|
|
|
To reduce the size of this distribution, the following directories
|
|
|
|
and their contents have been removed:
|
|
|
|
admin, doc, examples and Tests
|
|
|
|
No other modifications have been made to the library, so the included
|
|
|
|
files may be replaced by those found at the location specified in the
|
|
|
|
COPYING file.
|
|
|
|
|
|
|
|
Rob Richards
|
2012-03-22 04:19:23 +01:00
|
|
|
rrichards@ctindustries.net
|
|
|
|
|
2012-03-24 13:36:38 +01:00
|
|
|
|
|
|
|
----------------------------
|
2012-03-22 04:19:23 +01:00
|
|
|
22.03.2012 Grischa Brockhaus
|
|
|
|
* Replaced with newest version of library
|
|
|
|
* Added this pull request changes https://github.com/arnaud-lb/php-openid/commit/bb6da3326a330b2d4dd235a23316d23bc5569016
|
2012-03-24 13:36:38 +01:00
|
|
|
(Fixing some big problems with new ERROR HANDLING in S9Y 1.7)
|
|
|
|
|
|
|
|
----------------------------
|
|
|
|
24.03.2012 Grischa Brockhaus
|
|
|
|
* Do an atofallback, if /dev/urandom is not accessible in CryptUtil
|
|
|
|
|
|
|
|
Changed
|
|
|
|
|
|
|
|
static function getBytes($num_bytes)
|
|
|
|
{
|
|
|
|
static $f = null;
|
|
|
|
$bytes = '';
|
|
|
|
if ($f === null) {
|
|
|
|
if (Auth_OpenID_RAND_SOURCE === null) {
|
|
|
|
$f = false;
|
|
|
|
} else {
|
|
|
|
$f = @fopen(Auth_OpenID_RAND_SOURCE, "r");
|
|
|
|
if ($f === false) {
|
|
|
|
$msg = 'Define Auth_OpenID_RAND_SOURCE as null to ' .
|
|
|
|
' continue with an insecure random number generator.';
|
|
|
|
trigger_error($msg, E_USER_ERROR);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
to
|
|
|
|
|
|
|
|
static function getBytes($num_bytes)
|
|
|
|
{
|
|
|
|
static $f = null;
|
|
|
|
$bytes = '';
|
|
|
|
if ($f === null) {
|
|
|
|
if (Auth_OpenID_RAND_SOURCE === null) {
|
|
|
|
$f = false;
|
|
|
|
} else {
|
|
|
|
$f = @fopen(Auth_OpenID_RAND_SOURCE, "r");
|
|
|
|
// Grischa Brockhaus patch: Do an autofallback, don't fail!
|
|
|
|
/*
|
|
|
|
if ($f === false) {
|
|
|
|
$msg = 'Define Auth_OpenID_RAND_SOURCE as null to ' .
|
|
|
|
' continue with an insecure random number generator.';
|
|
|
|
trigger_error($msg, E_USER_ERROR);
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
----------------------------
|