Jean Paul Galea
9d9875c39d
Set __YKVAL_SYNC_CURL_OPTS__ for resync requests.
...
- Ensure sync/resync requests set the same curl options.
- This changes a debug message from "url is " to
"YK-VAL resync adding URL: "
- curlopts is now a property of SyncLib class.
Removes duplication between sync/resync code.
2015-04-14 09:20:38 +02:00
Jean Paul Galea
8df329aa0e
Allowed certain cURL options to be configurable.
...
- When calling either URLs in the sync pool or the KSMs,
the following curl options are configurable;
CURLOPT_PROTOCOLS
CURLOPT_IPRESOLVE
CURLOPT_SSLVERSION
CURLOPT_SSL_VERIFYPEER
CURLOPT_SSL_VERIFYHOST
CURLOPT_CAINFO
CURLOPT_CAPATH
2015-04-13 17:42:13 +02:00
Simon Josefsson
92297d3c4d
Drop log level of useless messages.
2014-09-24 13:05:09 +02:00
Klas Lindfors
ecd49aca59
change wiki links
2014-09-23 10:36:39 +02:00
Klas Lindfors
02d3090bf8
move some logging in reSync() to LOG_DEBUG
...
this is only run from ykval-queue
fixes #24
2014-09-23 10:27:44 +02:00
Klas Lindfors
2424d153ce
always verify ssl peer
...
fixes #15
2014-01-07 12:38:10 +01:00
Dain Nilsson
ee1f040b00
Updated copyright headers.
2013-02-04 17:39:36 +01:00
Dain Nilsson
ad88ccdb1f
Updated references to old Google Code project.
2013-02-04 17:06:32 +01:00
Klas Lindfors
34706698a4
Merge branch 'master' into feature/oracle_support
...
Conflicts:
ykval-db.php
ykval-export.php
ykval-synclib.php
2012-06-29 10:33:41 +02:00
Remi Mollon
f9e1a3a883
getRowValue is not needed anymore
2012-06-28 14:55:00 +02:00
Fredrik Thulin
b8d18af10c
Remove now unused retrieveURLasync_old()
2012-06-14 15:22:38 +02:00
Fredrik Thulin
c8e9eb828f
Pass logger object to retrieveURLasync()
2012-06-14 15:19:04 +02:00
Fredrik Thulin
46180c9de9
Merge branch 'master' of github.com:Yubico/yubikey-val-server-php into devel/refactor_retrieveURLasync
2012-06-14 15:00:47 +02:00
Fredrik Thulin
32c94e9256
Use retrieveURLasync in ykval-common instead.
2012-06-14 14:55:07 +02:00
Klas Lindfors
d37c41011a
if the remote sync site says BAD_OTP log and remove from queue
2012-06-14 13:52:53 +02:00
Fredrik Thulin
605abc8cbf
delete-trailing-whitespace
2012-06-13 13:41:12 +02:00
Fredrik Thulin
2a7a6e3503
Don't LOG_NOTICE when remote server has seen latest OTP too.
...
This is an expected condition for many (most) validation requests
using the asynchronous validation protocol 2.0.
2012-06-13 13:23:55 +02:00
Fredrik Thulin
afb42d7c0a
Logging improvements.
2012-06-13 13:22:35 +02:00
Klas Lindfors
40b5949f44
Merge branch 'master' into feature/oracle_support
2012-06-13 09:55:59 +02:00
Klas Lindfors
3f17b7bdc1
and { is needed.
2012-06-13 09:00:39 +02:00
Klas Lindfors
2bbb3b4c02
findByMultiple() calls fetchArray on it's own result, just loop it.
2012-06-13 08:53:52 +02:00
Fredrik Thulin
dfaa9a89aa
Use consistent camel-casing of function countersEqual().
...
Reduces confusion, even though PHP apparently has case insensitive
function names.
2012-06-12 17:56:01 +02:00
Klas Lindfors
9e9f20b959
more oracle compatibility
2012-06-12 13:27:51 +02:00
Klas Lindfors
cf49385bf3
rest of oracle patches from Remi Mollon <Remi.Mollon@cern.ch>
2012-06-12 10:35:49 +02:00
Klas Lindfors
060b35453d
Merge branch 'master' of github.com:Yubico/yubikey-val-server-php
...
Conflicts:
ykval-synclib.php
2012-06-11 12:54:55 +02:00
Klas Lindfors
b754c24d29
use one curl-handle per server
...
does connection re-use while syncing to that server
2012-06-11 12:41:50 +02:00
Fredrik Thulin
9d93e28739
Improve logging of refused sync requests.
2012-05-29 11:11:56 +02:00
Fredrik Thulin
b5976ad3c9
delete-trailing-whitespace
2012-05-29 11:07:19 +02:00
Simon Josefsson
f2b05822ef
Silence PHP warnings.
2012-05-21 09:12:33 +02:00
Simon Josefsson
13a312191b
Remove rowCount entries instead, it reset the search result.
2011-11-14 11:00:30 +00:00
Simon Josefsson
72a001072b
Fix two remaining non-portable uses of rowCount.
2011-11-14 10:28:08 +00:00
Simon Josefsson
393ef0c44e
Don't use PDO rowCount function to get number of rows returned
...
because that isn't portable. Patch from arte42.ripe in issue #7
(yubikey-val-2.1-php-rowcount.patch).
2010-05-17 13:20:49 +00:00
Simon Josefsson
f33e6413fe
Fix undefined warnings. Solves Issue #8 .
2010-04-23 17:36:23 +00:00
Simon Josefsson
eb736f7ac4
Whitespace.
2010-02-22 13:01:49 +00:00
Simon Josefsson
201a89bc5e
Drop internalname. Fix nonce.
2010-01-25 15:09:15 +00:00
Simon Josefsson
03bcd4b2e8
Fix modified/nonce.
2010-01-25 14:49:49 +00:00
Simon Josefsson
c6e7ce2ae4
Use -1 for non-existing YubiKey.
2010-01-25 14:28:46 +00:00
Olov Danielson
4d33f44909
When new OTP is discovered, local DB is set to yk_counter=-1 and yk_use=-1 .
2010-01-25 13:43:13 +00:00
Olov Danielson
a91be40d4a
Refactored. Db log gets name after synclib + db now.
2010-01-14 13:45:44 +00:00
Olov Danielson
e5b6a9d5bb
refactoring. removed unneccessary SQL query
2010-01-14 12:15:26 +00:00
Olov Danielson
12bd456dca
.
2010-01-14 11:58:19 +00:00
Olov Danielson
433c82cce7
Added a few checks for input parameters and corrected warnings according to new docuemnt
2010-01-14 09:39:48 +00:00
Olov Danielson
bfee638917
Corrected a few log entries
2010-01-13 12:32:38 +00:00
Olov Danielson
0e41f1cb53
.
2010-01-12 18:16:27 +00:00
Olov Danielson
1fbe73dbf8
.
2010-01-12 18:13:07 +00:00
Olov Danielson
78de5a978e
when creatin yubikey entries all values better be filled in
2010-01-12 17:37:00 +00:00
Olov Danielson
38edb79866
.
2010-01-12 17:14:58 +00:00
Olov Danielson
6cc547f791
Remove ID column from yubikeys and queue table. Renamed and changed random_key to server_nonce
2010-01-12 13:00:28 +00:00
Simon Josefsson
f27fa7b8bd
Cleanup.
2010-01-11 14:44:13 +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