[TYPO3-core] RFC #9474: Integrate OpenID authentication support to TYPO3
Dmitry Dulepov
dmitry at typo3.org
Fri Oct 3 15:30:39 CEST 2008
Hi again!
Dmitry Dulepov wrote:
> The code above should take care of it. /dev/urandom definitely does not
> exist on Windows and we can even check OS before we check that
> /dev/urandom exists. So on Windows it will be just built–in generator.
> trigger_error will never be called in this case.
if (TYPO3_OS == 'WIN') {
// No random generator on Windows!
define('Auth_OpenID_RAND_SOURCE', null);
} elseif (!is_readable('/dev/urandom')) {
if (is_readable('/dev/random')) {
define('Auth_OpenID_RAND_SOURCE', '/dev/random');
} else {
define('Auth_OpenID_RAND_SOURCE', null);
}
}
--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/duplicate_content_with_realurl/
More information about the TYPO3-team-core
mailing list