Skip to content

Commit

Permalink
Correct value for CURLOPT_SSL_VERIFYHOST - 2 instead of 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmuras committed Nov 25, 2012
1 parent 53b42bc commit 07bb73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S3.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 07bb73f

Please sign in to comment.