Merge pull request #33 from borissamardzija/master
Update Curl class to support CURLOPT_CAINFO and CURLOPT_CAPATH options
This commit is contained in:
commit
59ea6b1ce0
|
@ -95,6 +95,12 @@ class Curl
|
||||||
curl_setopt($this->ch, CURLOPT_SSLCERT, $options['local_cert']);
|
curl_setopt($this->ch, CURLOPT_SSLCERT, $options['local_cert']);
|
||||||
curl_setopt($this->ch, CURLOPT_SSLCERTPASSWD, $options['passphrase']);
|
curl_setopt($this->ch, CURLOPT_SSLCERTPASSWD, $options['passphrase']);
|
||||||
}
|
}
|
||||||
|
if (isset($options['ca_info'])) {
|
||||||
|
curl_setopt($this->ch, CURLOPT_CAINFO, $options['ca_info']);
|
||||||
|
}
|
||||||
|
if (isset($options['ca_path'])) {
|
||||||
|
curl_setopt($this->ch, CURLOPT_CAPATH, $options['ca_path']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue