1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-20 10:52:15 +01:00

Permit somewhat longer nonces (think SHA1 hex).

This commit is contained in:
Simon Josefsson 2010-04-23 20:33:45 +00:00
parent 4ac054f9cd
commit 522c301dae

View File

@ -86,7 +86,7 @@ if ($nonce && preg_match("/^[A-Za-z0-9]+$/", $nonce)==0) {
exit; exit;
} }
if (strlen($nonce) < 16 || strlen($nonce) > 32) { if (strlen($nonce) < 16 || strlen($nonce) > 40) {
$myLog->log(LOG_NOTICE, 'Nonce too short or too long'); $myLog->log(LOG_NOTICE, 'Nonce too short or too long');
sendResp(S_MISSING_PARAMETER, $apiKey, $extra); sendResp(S_MISSING_PARAMETER, $apiKey, $extra);
exit; exit;