forked from GNUsocial/gnu-social
Diaspora encloses magic envelope in <atom:entry>??!!?!
This commit is contained in:
parent
ec19661312
commit
3902dc963a
@ -108,6 +108,9 @@ class DiasporaPlugin extends Plugin
|
|||||||
* Constructing the encryption header
|
* 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
|
* Choose an AES key and initialization vector, suitable for the
|
||||||
* aes-256-cbc cipher. I shall refer to this as the “inner key”
|
* 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->element('me:sig', null, $magic_env->getSignature());
|
||||||
$xs->elementEnd('me:env');
|
$xs->elementEnd('me:env');
|
||||||
|
|
||||||
|
$xs->elementEnd('entry');
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user