Permalink
Browse files

MDL-9420 - SSO fails over https

  • Loading branch information...
1 parent 3cd4774 commit 0145441c4df0401c7134337d9c79ca11f57ee773 donal72 committed Apr 18, 2007
Showing with 4 additions and 0 deletions.
  1. +2 −0 mnet/lib.php
  2. +2 −0 mnet/xmlrpc/client.php
View
2 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);
View
2 mnet/xmlrpc/client.php
@@ -186,6 +186,8 @@ function send($mnet_peer) {
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);

0 comments on commit 0145441

Please sign in to comment.