mirror of
https://github.com/Yubico/yubikey-val.git
synced 2024-12-03 03:24:15 +01:00
Timestamp responses.
This commit is contained in:
parent
069092fd6b
commit
369a6e0fbc
4
NEWS
4
NEWS
@ -1,7 +1,7 @@
|
||||
* Version 2.7 unreleased
|
||||
|
||||
* Record complete timestamp when request is received
|
||||
(syslog doesn't record year nor sub-second resolution).
|
||||
* Timestamp request and response because syslog doesn't record year
|
||||
nor sub-second resolution.
|
||||
|
||||
* Version 2.6 released 2010-08-02
|
||||
|
||||
|
@ -238,14 +238,20 @@ function sendResp($status, $apiKey = '', $extra = null) {
|
||||
}
|
||||
$h = sign($a, $apiKey);
|
||||
|
||||
echo "h=" . $h . "\r\n";
|
||||
echo "t=" . ($a['t']) . "\r\n";
|
||||
$str = "h=" . $h . "\r\n";
|
||||
$str .= "t=" . ($a['t']) . "\r\n";
|
||||
if ($extra){
|
||||
foreach ($extra as $param => $value) {
|
||||
echo $param . "=" . $value . "\r\n";
|
||||
$str .= $param . "=" . $value . "\r\n";
|
||||
}
|
||||
}
|
||||
echo "status=" . ($a['status']) . "\r\n";
|
||||
echo "\r\n";
|
||||
$str .= "status=" . ($a['status']) . "\r\n";
|
||||
$str .= "\r\n";
|
||||
|
||||
global $ykval_common_log;
|
||||
$ykval_common_log->log(LOG_INFO, "Response: " . $str .
|
||||
" (at " . date("c") . " " . microtime() . ")");
|
||||
|
||||
echo $str;
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user