Commit 0239cc7d authored by Donal McMullan's avatar Donal McMullan
Browse files

Update the xmldsig_envelope function for Mahara

parent d4e22126
......@@ -302,6 +302,7 @@ function xmldsig_envelope($message) {
$sig = base64_encode($openssl->sign_message($message));
$message = base64_encode($message);
$time = time();
// TODO: Provide RESTful access to our public key as per KeyInfo element
return <<<EOF
<?xml version="1.0" encoding="iso-8859-1"?>
......@@ -317,7 +318,7 @@ return <<<EOF
</SignedInfo>
<SignatureValue>$sig</SignatureValue>
<KeyInfo>
<RetrievalMethod URI="{$wwwroot}/mnet/publickey.php"/>
<RetrievalMethod URI="{$wwwroot}/api/xmlrpc/publickey.php"/>
</KeyInfo>
</Signature>
<object ID="XMLRPC-MSG">$message</object>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment