1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 09:24:12 +01:00

Reorder high/low to match internal order.

This commit is contained in:
Simon Josefsson 2009-03-18 15:21:50 +00:00
parent b50ad0757b
commit d9e7bb9345

View File

@ -116,8 +116,8 @@ function decryptOTP($otp, $base_url) {
if (sscanf ($response, if (sscanf ($response,
"OK counter=%04x low=%04x high=%02x use=%02x", "OK counter=%04x low=%04x high=%02x use=%02x",
$ret["session_counter"], $ret["high"], $ret["session_counter"], $ret["low"], $ret["high"],
$ret["low"], $ret["session_use"]) != 4) { $ret["session_use"]) != 4) {
return false; return false;
} }
return $ret; return $ret;