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

Refactor.

This commit is contained in:
Jean Paul Galea 2015-07-21 21:03:03 +00:00
parent 11c160b05c
commit 847f288cf5

View File

@ -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);