Skip to content

Commit

Permalink
Merge pull request tpyo#36 from tmuras/master
Browse files Browse the repository at this point in the history
Wrong value set for CURLOPT_SSL_VERIFYHOST
  • Loading branch information
tpyo committed Dec 7, 2012
2 parents 53b42bc + 07bb73f commit 5677037
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 5677037

Please sign in to comment.