1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-20 01:52:15 +01:00

Add timeout for ykksm queries.

This commit is contained in:
Simon Josefsson 2009-03-11 02:12:36 +00:00
parent 6ea1355f9b
commit a714a63774

View File

@ -104,6 +104,7 @@ function decryptOTP($otp, $base_url) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERAGENT, "YK-VAL");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
$response = curl_exec($ch);
curl_close($ch);