summaryrefslogtreecommitdiff
path: root/plugins/OStatus/lib/magicenvelope.php
diff options
context:
space:
mode:
authorJames Walker <walkah@walkah.net>2010-02-26 03:25:51 -0500
committerJames Walker <walkah@walkah.net>2010-02-26 03:25:51 -0500
commit84d0c865c4c2dd597e249c76fa1429175f5461a1 (patch)
tree449522a414bef8071bdfa4ea207be250b268370f /plugins/OStatus/lib/magicenvelope.php
parent7c8031dc4bf6ece83db893e13d89ced10c2f6b62 (diff)
salmon actually fetching remote keypairs
Diffstat (limited to 'plugins/OStatus/lib/magicenvelope.php')
-rw-r--r--plugins/OStatus/lib/magicenvelope.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/OStatus/lib/magicenvelope.php b/plugins/OStatus/lib/magicenvelope.php
index 4f8f88155..c642af548 100644
--- a/plugins/OStatus/lib/magicenvelope.php
+++ b/plugins/OStatus/lib/magicenvelope.php
@@ -52,14 +52,13 @@ class MagicEnvelope
{
$disco = new Discovery();
- $links = $disco->lookup($signer_uri);
- if ($link = Discovery::getService($links, 'magic-public-key')) {
+ $xrd = $disco->lookup($signer_uri);
+ if ($link = Discovery::getService($xrd->links, Magicsig::PUBLICKEYREL)) {
list($type, $keypair) = explode(';', $link['href']);
return $keypair;
}
throw new Exception('Unable to locate signer public key');
- //return 'RSA.79_L2gq-TD72Nsb5yGS0r9stLLpJZF5AHXyxzWmQmlqKl276LEJEs8CppcerLcR90MbYQUwt-SX9slx40Yq3vA==.AQAB.AR-jo5KMfSISmDAT2iMs2_vNFgWRjl5rbJVvA0SpGIEWyPdCGxlPtCbTexp8-0ZEIe8a4SyjatBECH5hxgMTpw==';
}