You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/02/09 22:58:11 UTC
airavata-php-gateway git commit: set certificate only when verify
peer enabled
Repository: airavata-php-gateway
Updated Branches:
refs/heads/master ee31dc82b -> 1fd4df46a
set certificate only when verify peer enabled
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/1fd4df46
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/1fd4df46
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/1fd4df46
Branch: refs/heads/master
Commit: 1fd4df46a7b51ad0ed05dcf853725603e43015f4
Parents: ee31dc8
Author: scnakandala <su...@gmail.com>
Authored: Tue Feb 9 16:58:06 2016 -0500
Committer: scnakandala <su...@gmail.com>
Committed: Tue Feb 9 16:58:06 2016 -0500
----------------------------------------------------------------------
app/libraries/Wsis/Stubs/OAuthManager.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/1fd4df46/app/libraries/Wsis/Stubs/OAuthManager.php
----------------------------------------------------------------------
diff --git a/app/libraries/Wsis/Stubs/OAuthManager.php b/app/libraries/Wsis/Stubs/OAuthManager.php
index d50f37a..e127e18 100644
--- a/app/libraries/Wsis/Stubs/OAuthManager.php
+++ b/app/libraries/Wsis/Stubs/OAuthManager.php
@@ -134,7 +134,9 @@ class OAuthManager
curl_setopt($r, CURLOPT_ENCODING, 1);
curl_setopt($r, CURLOPT_SSL_VERIFYPEER, $this->_verifyPeer);
- curl_setopt($r, CURLOPT_CAINFO, $this->_cafilePath);
+ if($this->_verifyPeer){
+ curl_setopt($r, CURLOPT_CAINFO, $this->_cafilePath);
+ }
return ($r);
}