1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-21 23:28:51 -05:00

Fix some copypasta problems.

Items returned from a pubsub items request are encapsulated in an
<items/> element, not <publish/>, which is used for publishing items.

Example for requesting the secret key was labelled as requesting the
public key.
This commit is contained in:
Brian Cully 2016-06-08 14:12:23 -04:00
parent be306113e1
commit 7e2b3c144d

View File

@ -300,7 +300,7 @@ Standards Foundation.</permissions>
type='result' type='result'
id='getpub'> id='getpub'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'> <pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='urn:xmpp:openpgp:0'> <items node='urn:xmpp:openpgp:0'>
<item> <item>
<pubkeys xmlns='urn:xmpp:openpgp:0'> <pubkeys xmlns='urn:xmpp:openpgp:0'>
<pubkey> <pubkey>
@ -308,7 +308,7 @@ Standards Foundation.</permissions>
</pubkey> </pubkey>
</pubkeys> </pubkeys>
</item> </item>
</publish> </items>
</pubsub> </pubsub>
</iq>]]></example> </iq>]]></example>
@ -409,19 +409,19 @@ Standards Foundation.</permissions>
</section3> </section3>
<section3 topic='PEP Service Success Response'> <section3 topic='PEP Service Success Response'>
<example caption='Personal Eventing Protocol result containing the requested public key.'><![CDATA[ <example caption='Personal Eventing Protocol result containing the requested secret key.'><![CDATA[
<iq from='juliet@example.org' <iq from='juliet@example.org'
to='romeo@example.org/orchard' to='romeo@example.org/orchard'
type='result' type='result'
id='getsecret'> id='getsecret'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'> <pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='urn:xmpp:openpgp:secret-key:0'> <items node='urn:xmpp:openpgp:secret-key:0'>
<item> <item>
<secretkey xmlns='urn:xmpp:openpgp:0'> <secretkey xmlns='urn:xmpp:openpgp:0'>
BASE64_OPENPGP_ENCRYPTED_SECRET_KEY BASE64_OPENPGP_ENCRYPTED_SECRET_KEY
</secretkey> </secretkey>
</item> </item>
</publish> </items>
</pubsub> </pubsub>
</iq>]]></example> </iq>]]></example>