From 52f97b57eb4f04f7dcc3db16cad63144b592ab60 Mon Sep 17 00:00:00 2001 From: Liviu Panainte Date: Tue, 19 Jan 2016 18:11:28 +0000 Subject: [PATCH] Make CURLOPT_SSLVERSION configurable --- Curl.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Curl.php b/Curl.php index e777fc8..cfabee6 100644 --- a/Curl.php +++ b/Curl.php @@ -113,6 +113,9 @@ public function __construct(array $options = array(), $followLocationMaxRedirect if (isset($options['ca_path'])) { curl_setopt($this->ch, CURLOPT_CAPATH, $options['ca_path']); } + if (isset($options['ssl_version'])) { + curl_setopt($this->ch, CURLOPT_SSLVERSION, $options['ssl_version']); + } } /**