1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-27 06:54:16 +01:00

Drop some comments.

- not really helpful, better to just depend on what the code does.
This commit is contained in:
Jean Paul Galea 2015-09-15 19:54:23 +00:00
parent d0a8657e84
commit cf3b089fcc

View File

@ -417,10 +417,6 @@ if ($syncres == False)
sendResp(S_NOT_ENOUGH_ANSWERS, $myLog, $apiKey, $extra); sendResp(S_NOT_ENOUGH_ANSWERS, $myLog, $apiKey, $extra);
} }
/* Recreate parameters to make phising test work out
TODO: use timefunctionality in deltatime library instead */
// check the time stamp
if ($otpParams['yk_counter'] == $localParams['yk_counter'] && $otpParams['yk_use'] > $localParams['yk_use']) if ($otpParams['yk_counter'] == $localParams['yk_counter'] && $otpParams['yk_use'] > $localParams['yk_use'])
{ {
$ts = ($otpParams['yk_high'] << 16) + $otpParams['yk_low']; $ts = ($otpParams['yk_high'] << 16) + $otpParams['yk_low'];
@ -428,7 +424,6 @@ if ($otpParams['yk_counter'] == $localParams['yk_counter'] && $otpParams['yk_use
$tsDiff = $ts - $seenTs; $tsDiff = $ts - $seenTs;
$tsDelta = $tsDiff * TS_SEC; $tsDelta = $tsDiff * TS_SEC;
// check the real time
$now = time(); $now = time();
$elapsed = $now - $localParams['modified']; $elapsed = $now - $localParams['modified'];
$deviation = abs($elapsed - $tsDelta); $deviation = abs($elapsed - $tsDelta);