diff options
author | Christian Helbling | 2019-01-14 14:42:03 +0100 |
---|---|---|
committer | Christian Helbling | 2019-01-14 14:42:03 +0100 |
commit | 0cbd104cc306c0148325c35910b3f0b50e0b99e1 (patch) | |
tree | 04672ab5d50c7dd28d5051b6ed2b42b884430df9 /it_url.class | |
parent | b1898d315f414f69d497b2cf5fdc6ae686aac215 (diff) | |
download | itools-0cbd104cc306c0148325c35910b3f0b50e0b99e1.tar.gz itools-0cbd104cc306c0148325c35910b3f0b50e0b99e1.tar.bz2 itools-0cbd104cc306c0148325c35910b3f0b50e0b99e1.zip |
add options to use client certificates in it_url::get
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class index 531af8b..db09ea0 100644 --- a/it_url.class +++ b/it_url.class @@ -209,6 +209,12 @@ static function curl_opts($p=array()) ]; } + if ($p['sslkey']) + $add += [CURLOPT_SSLKEY => $p['sslkey']]; + + if ($p['sslcert']) + $add += [CURLOPT_SSLCERT => $p['sslcert']]; + if ($p['verbose'] || EDC('curlverbose')) $add += [ CURLOPT_VERBOSE => true ]; |