mirror of
https://github.com/Yubico/yubikey-ksm.git
synced 2025-03-02 06:29:17 +01:00
Accidentally reversed high/low. Rename fields slightly.
This commit is contained in:
parent
30fc93a8d2
commit
348399df50
@ -103,11 +103,11 @@ if (!$result) {
|
|||||||
# Mask out interesting fields
|
# Mask out interesting fields
|
||||||
|
|
||||||
$counter = substr($plaintext, 14, 2) . substr($plaintext, 12, 2);
|
$counter = substr($plaintext, 14, 2) . substr($plaintext, 12, 2);
|
||||||
$tstamphi = substr($plaintext, 18, 2) . substr($plaintext, 16, 2);
|
$low = substr($plaintext, 18, 2) . substr($plaintext, 16, 2);
|
||||||
$tstamplo = substr($plaintext, 20, 2);
|
$high = substr($plaintext, 20, 2);
|
||||||
$sessionuse = substr($plaintext, 22, 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()
|
mysql_close()
|
||||||
or syslog(LOG_ERR, "Database close error (otp $otp): " . mysql_error());
|
or syslog(LOG_ERR, "Database close error (otp $otp): " . mysql_error());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user