airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: set certificate only when verify peer enabled
Date Tue, 09 Feb 2016 21:58:11 GMT
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 <supun.nakandala@gmail.com>
Authored: Tue Feb 9 16:58:06 2016 -0500
Committer: scnakandala <supun.nakandala@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);
     }


Mime
View raw message