]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9420 - SSO fails over https
authordonal72 <donal72>
Wed, 18 Apr 2007 02:23:20 +0000 (02:23 +0000)
committerdonal72 <donal72>
Wed, 18 Apr 2007 02:23:20 +0000 (02:23 +0000)
mnet/lib.php
mnet/xmlrpc/client.php

index ff5aca1fb260c90e087e46a607fe590f017e080a..9b73d88b07fb8bfa2cba3cdadc3a609522d696a1 100644 (file)
@@ -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);
index efd494f79839243692d856abdbe81112b7a645a8..8d17e2c32940739fad7380af1376b84c244b5937 100644 (file)
@@ -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);