1
0
mirror of https://github.com/Yubico/yubikey-ksm.git synced 2025-01-31 16:52:12 +01:00

Accidentally reversed high/low. Rename fields slightly.

This commit is contained in:
Simon Josefsson 2009-03-11 01:25:19 +00:00
parent 30fc93a8d2
commit 348399df50

View File

@ -103,11 +103,11 @@ if (!$result) {
# Mask out interesting fields
$counter = substr($plaintext, 14, 2) . substr($plaintext, 12, 2);
$tstamphi = substr($plaintext, 18, 2) . substr($plaintext, 16, 2);
$tstamplo = substr($plaintext, 20, 2);
$sessionuse = substr($plaintext, 22, 2);
$low = substr($plaintext, 18, 2) . substr($plaintext, 16, 2);
$high = substr($plaintext, 20, 2);
$use = substr($plaintext, 22, 2);
print "OK counter=$counter tstamphi=$tstamphi tstamplo=$tstamplo sessionuse=$sessionuse\n";
print "OK counter=$counter high=$high low=$low use=$use\n";
mysql_close()
or syslog(LOG_ERR, "Database close error (otp $otp): " . mysql_error());