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

Reduce argument passing.

- set curlopts directly in wrapper invocation.
This commit is contained in:
Jean Paul Galea 2015-04-14 09:26:56 +02:00
parent 9d9875c39d
commit 642c2a79d5

View File

@ -434,7 +434,7 @@ class SyncLib
/* /*
Send out requests Send out requests
*/ */
$ans_arr=$this->retrieveURLasync_wrap($urls, $ans_req, $timeout, $this->curlopts); $ans_arr=$this->retrieveURLasync_wrap($urls, $ans_req, $timeout);
if (!is_array($ans_arr)) { if (!is_array($ans_arr)) {
$this->log(LOG_WARNING, 'No responses from validation server pool'); $this->log(LOG_WARNING, 'No responses from validation server pool');
@ -538,9 +538,9 @@ class SyncLib
else return 0; else return 0;
} }
function retrieveURLasync_wrap ($urls, $ans_req=1, $timeout=1.0, $curlopts) function retrieveURLasync_wrap ($urls, $ans_req=1, $timeout=1.0)
{ {
return retrieveURLasync("YK-VAL sync", $urls, $this->myLog, $ans_req, $match="status=OK", $returl=True, $timeout, $curlopts); return retrieveURLasync("YK-VAL sync", $urls, $this->myLog, $ans_req, $match="status=OK", $returl=True, $timeout, $this->curlopts);
} }
} }