mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-26 21:54:16 +01:00
Refactor.
This commit is contained in:
parent
11c160b05c
commit
847f288cf5
@ -258,8 +258,7 @@ if ($h != '')
|
|||||||
|
|
||||||
$hmac = sign($a, $apiKey, $myLog);
|
$hmac = sign($a, $apiKey, $myLog);
|
||||||
|
|
||||||
// Compare it
|
if (hash_equals($hmac, $h) === FALSE)
|
||||||
if (!hash_equals($hmac, $h))
|
|
||||||
{
|
{
|
||||||
$myLog->log(LOG_DEBUG, "client hmac=$h, server hmac=$hmac");
|
$myLog->log(LOG_DEBUG, "client hmac=$h, server hmac=$hmac");
|
||||||
sendResp(S_BAD_SIGNATURE, $myLog, $apiKey);
|
sendResp(S_BAD_SIGNATURE, $myLog, $apiKey);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user