Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3DD4B18975 for ; Tue, 9 Feb 2016 22:26:44 +0000 (UTC) Received: (qmail 38676 invoked by uid 500); 9 Feb 2016 22:09:21 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 36639 invoked by uid 500); 9 Feb 2016 22:09:20 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 36279 invoked by uid 99); 9 Feb 2016 22:07:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2016 22:07:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 84BBBDFA3D; Tue, 9 Feb 2016 22:07:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: scnakandala@apache.org To: commits@airavata.apache.org Date: Tue, 09 Feb 2016 22:07:03 -0000 Message-Id: <002e0ffd012d4bcdadd271c8adab1a9c@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/3] airavata-php-gateway git commit: set certificate only when verify peer enabled 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/develop Commit: 1fd4df46a7b51ad0ed05dcf853725603e43015f4 Parents: ee31dc8 Author: scnakandala Authored: Tue Feb 9 16:58:06 2016 -0500 Committer: scnakandala 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); }