[Pkg-owncloud-commits] [owncloud] 04/46: Use certificate bundle from files_external for external shares
David Prévot
taffit at moszumanska.debian.org
Fri Oct 24 15:11:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit d0101668ce86fa81dfbc54c50229d13306438566
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu Oct 16 13:42:42 2014 +0200
Use certificate bundle from files_external for external shares
---
apps/files_sharing/lib/external/storage.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php
index 855be28..665978e 100644
--- a/apps/files_sharing/lib/external/storage.php
+++ b/apps/files_sharing/lib/external/storage.php
@@ -190,6 +190,11 @@ class Storage extends DAV implements ISharedStorage {
http_build_query(array('password' => $password)));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
+ $path = \OC_User::getHome(\OC_User::getUser()) . '/files_external/rootcerts.crt';
+ curl_setopt($ch, CURLOPT_CAINFO, $path);
+
$result = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list