diff options
author | Marco Ceppi <marco@ceppi.net> | 2014-01-20 07:11:00 -0800 |
---|---|---|
committer | Marco Ceppi <marco@ceppi.net> | 2014-01-20 07:11:00 -0800 |
commit | 62f17268670c0859e7946a31303a06a0aa23ee67 (patch) | |
tree | f087351feffd5554def6380caa377dc087b831bb | |
parent | 3186fd2c5a15162632025f99b654be32685548fc (diff) | |
parent | 7004b666e7d9b7180d7b1264af95d2f51ac70e32 (diff) | |
download | php-openid-62f17268670c0859e7946a31303a06a0aa23ee67.zip php-openid-62f17268670c0859e7946a31303a06a0aa23ee67.tar.gz php-openid-62f17268670c0859e7946a31303a06a0aa23ee67.tar.bz2 |
Merge pull request #113 from thanhhh/master
Add Auth_OpenID_DISABLE_SSL_VERIFY opt to disable SSL verify
-rw-r--r-- | Auth/Yadis/ParanoidHTTPFetcher.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Auth/Yadis/ParanoidHTTPFetcher.php b/Auth/Yadis/ParanoidHTTPFetcher.php index 125029c..8f55667 100644 --- a/Auth/Yadis/ParanoidHTTPFetcher.php +++ b/Auth/Yadis/ParanoidHTTPFetcher.php @@ -90,7 +90,11 @@ class Auth_Yadis_ParanoidHTTPFetcher extends Auth_Yadis_HTTPFetcher { $this->reset(); $c = curl_init(); - + if (defined('Auth_OpenID_DISABLE_SSL_VERIFYPEER') + && Auth_OpenID_DISABLE_SSL_VERIFYPEER === true) { + curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false); + } + if ($c === false) { Auth_OpenID::log( "curl_init returned false; could not " . |