From: donal72 Date: Wed, 18 Apr 2007 02:23:20 +0000 (+0000) Subject: MDL-9420 - SSO fails over https X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6bed4299ce5b62cb8549227132e947a108515ce3;p=moodle.git MDL-9420 - SSO fails over https --- diff --git a/mnet/lib.php b/mnet/lib.php index ff5aca1fb2..9b73d88b07 100644 --- a/mnet/lib.php +++ b/mnet/lib.php @@ -63,6 +63,8 @@ function mnet_get_public_key($uri) { curl_setopt($ch, CURLOPT_USERAGENT, 'Moodle'); curl_setopt($ch, CURLOPT_POSTFIELDS, $rq); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml charset=UTF-8")); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); $res = xmlrpc_decode(curl_exec($ch)); curl_close($ch); diff --git a/mnet/xmlrpc/client.php b/mnet/xmlrpc/client.php index efd494f798..8d17e2c329 100644 --- a/mnet/xmlrpc/client.php +++ b/mnet/xmlrpc/client.php @@ -186,6 +186,8 @@ class mnet_xmlrpc_client { curl_setopt($ch, CURLOPT_USERAGENT, 'Moodle'); curl_setopt($ch, CURLOPT_POSTFIELDS, $rq); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml charset=UTF-8")); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); $timestamp_send = time(); $this->rawresponse = curl_exec($ch);