Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 3084 → Rev 3085

/web/intercept.php
443,7 → 443,7
//correction password length in coova-chilli
//thanks to http://www.stochasticgeometry.ie/2009/09/09/maximum-password-length-in-coova-chilli/
$hexchal = pack('H*', $challenge);
$newchal = pack('H*', md5($hexchal . $uamsecret));
$newchal = pack('H*', hash('sha256',$hexchal . $uamsecret));
 
// If challenge isn't long enough, repeat it until it is
while (strlen($newchal) < strlen($password)) {