From 7bb849e394c3dbc9acbe3de756c192a9515fd49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Samard=C5=BEija?= Date: Fri, 25 Apr 2014 11:16:34 +0200 Subject: [PATCH] Update Curl class to support CURLOPT_CAINFO and CURLOPT_CAPATH options --- src/BeSimple/SoapClient/Curl.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/BeSimple/SoapClient/Curl.php b/src/BeSimple/SoapClient/Curl.php index d349f14..e630e9b 100644 --- a/src/BeSimple/SoapClient/Curl.php +++ b/src/BeSimple/SoapClient/Curl.php @@ -95,6 +95,12 @@ class Curl curl_setopt($this->ch, CURLOPT_SSLCERT, $options['local_cert']); 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']); + } } /**