From 07bb73fe2ad2c74e0d1af395a391ddb8d0fcaa7c Mon Sep 17 00:00:00 2001 From: Tomasz Muras Date: Sun, 25 Nov 2012 17:09:38 +0100 Subject: [PATCH] Correct value for CURLOPT_SSL_VERIFYHOST - 2 instead of 1. --- S3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/S3.php b/S3.php index 247d6c38..4bd51114 100644 --- a/S3.php +++ b/S3.php @@ -1809,7 +1809,7 @@ public function getResponse() if (S3::$useSSL) { // SSL Validation can now be optional for those with broken OpenSSL installations - curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, S3::$useSSLValidation ? 1 : 0); + curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, S3::$useSSLValidation ? 2 : 0); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, S3::$useSSLValidation ? 1 : 0); if (S3::$sslKey !== null) curl_setopt($curl, CURLOPT_SSLKEY, S3::$sslKey);