Klas Lindfors
6c9edb0db2
instead of passing context to sendResp, give it a logger.
2012-06-14 15:15:47 +02:00
Klas Lindfors
01969a279e
let sendResp take one more parameter $context
...
use for logging if it's a response to sync or verify.
2012-06-14 14:55:50 +02:00
Fredrik Thulin
b5976ad3c9
delete-trailing-whitespace
2012-05-29 11:07:19 +02:00
Klas Lindfors
a8e3d36f80
use urldecode(http_build_request()) instead of looping and building request string
2012-05-16 13:45:36 +02:00
Simon Josefsson
a68539e884
Tiny fixes to silence PHP warnings from Hiroki Nose <Hiroki_Nose@totec.co.jp>.
...
1. PHP Notice: Use of undefined constant CURL_OK - assumed 'CURL_OK' in /usr/share/ykval/ykval-common.php on line 156
2. PHP Notice: Undefined index: HTTPS in /usr/share/ykval/ykval-verify.php on line 14
3. PHP Notice: Undefined variable: query in /usr/share/ykval/ykval-db.php on line 186
2011-10-25 08:08:31 +00:00
Simon Josefsson
8ea97ab0fb
Sanity check OTP variable before trusting it.
...
Reported by Ricky Zhou <ricky@fedoraproject.org>.
2010-09-12 10:39:23 +00:00
Simon Josefsson
369a6e0fbc
Timestamp responses.
2010-08-22 13:41:21 +00:00
Simon Josefsson
c94affd1d9
When there is only one KSM, use more portable code without async.
...
Patch from arte42.ripe in issue #7 .
2010-05-17 13:08:48 +00:00
Simon Josefsson
218a92c42c
More debugging.
2010-02-22 13:17:52 +00:00
Simon Josefsson
754b0d53c8
Re-add, some duplication but needed by KSMdecryptOTP.
2010-02-22 12:55:29 +00:00
Simon Josefsson
c1fbae2408
Remove (hopefully) unused stuff.
2010-02-22 12:53:09 +00:00
Olov Danielson
a839954882
Unified logging to use Log class defined in ykval-log.php which in turn uses syslog.
...
NOTE: ykval common debug function is still available but uses Log class aswell to actually
log message.
2010-01-11 12:06:00 +00:00
Olov Danielson
6788e5effa
1. Nonce introduced in protocol. This required changes in the chain from client->verify->sync.
...
2. ykval-verify is modified a bit. It now acts more as a flow controller and relies on ykval-synclib
to do details on DB-calls and counterlogic. The "system" decision making is still located in ykval-verify.
2009-12-15 10:17:51 +00:00
Olov Danielson
55aeffc066
Storing local param info at the time when verify request arrived.
...
Used to give correct warnings of wether local/remote is out of sync or not
2009-12-04 11:57:49 +00:00
Olov Danielson
f04dcbc0e7
Committed first trial version for replication protocol.
2009-12-02 17:32:20 +00:00
Olov Danielson
65d150ccde
Added option to get timestamp and session counters in the response.
...
Use with
verify?id=x&otp=xxx..×tamp=1
returns timestamp, sessoncounter and session use in response
2009-10-05 14:53:28 +00:00
Simon Josefsson
9b5602656a
Lay foundation for get-api-key service.
2009-08-28 10:55:56 +00:00
Simon Josefsson
479d5b1e7f
Cleanups.
2009-05-06 15:07:05 +00:00
Simon Josefsson
0a82e6bcce
Fix field names.
2009-05-06 14:42:44 +00:00
Simon Josefsson
5ba43fe314
Drop removed field.
2009-05-06 14:41:51 +00:00
Simon Josefsson
c651228340
Don't die.
2009-05-06 14:40:25 +00:00
Simon Josefsson
c72f75f539
Drop chk_time.
2009-05-06 13:20:40 +00:00
Simon Josefsson
716182d744
Rename and cleanup.
2009-05-04 14:41:18 +00:00