Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
0239cc7d
Commit
0239cc7d
authored
Apr 24, 2007
by
Donal McMullan
Browse files
Update the xmldsig_envelope function for Mahara
parent
d4e22126
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/api/xmlrpc/lib.php
View file @
0239cc7d
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment