Diaspora encloses magic envelope in <atom:entry>??!!?!

This commit is contained in:
Mikael Nordfeldth 2015-10-05 11:22:23 +02:00
parent ec19661312
commit 3902dc963a

View File

@ -108,6 +108,9 @@ class DiasporaPlugin extends Plugin
* Constructing the encryption header
*/
// For some reason it's supposed to be inside an <atom:entry>
$xs->elementStart('entry', array('xmlns'=>'http://www.w3.org/2005/Atom'));
/**
* Choose an AES key and initialization vector, suitable for the
* aes-256-cbc cipher. I shall refer to this as the “inner key”
@ -214,6 +217,8 @@ class DiasporaPlugin extends Plugin
$xs->element('me:sig', null, $magic_env->getSignature());
$xs->elementEnd('me:env');
$xs->elementEnd('entry');
return false;
}