Omemo: confused by devicelist via pep

george b <[email protected]> Tue, 26 Jan 2021 20:36:57 +0100
Newsgroups gmane.network.jabber.devel
Message-ID <CAL30P+bRKBMmftTs-Xxa=usWAByAjSbUsL82QDno4Pn9Hd7j2Q@mail.gmail.com>
--===============1960773180==
Content-Type: multipart/alternative; boundary="000000000000b3df5705b9d2c730"

--000000000000b3df5705b9d2c730
Content-Type: text/plain; charset="UTF-8"

Hello all

I had included omemo in shmoose [1] by using libomemo with axc and
integrated lurch [2] by implementing an adapter to use without libpurple.
So far so good, it is working as expected.

The only thing wich does not work is deploying the devicelist via pep. I
had to ask for devicelist manually to use omemo encryption.

According to omemo xep [3] 5.2: "Devices MUST subscribe to
urn:xmpp:omemo:1:devices via PEP". But pep state [4] 1.2: "because they are
subscribed to your presence, they automatically receive your events". I
would expect, as long as the users are subscribed to the others presence,
they will automatically receive the devicelist nodes and updates? That does
not work for me.

This is the pep node shmoose client sends during add of devicelist entry:

<iq xmlns="jabber:client" id="d0093daf-8c93-4c3c-8382-68d0d1454295" type="
set">

<pubsub xmlns="http://jabber.org/protocol/pubsub">

<publish node="eu.siacs.conversations.axolotl.devicelist">

<item>

<list xmlns="eu.siacs.conversations.axolotl">

<device id="339564329"></device>

</list>

</item>

</publish>

</pubsub>

</iq>

As far as I understood it, this should trigger an automated message stanza
update to all presence-subscribed users. But it doesn't.

Any hints on this issue are appreciated.

Best regards
geobra

[1] https://github.com/geobra/harbour-shmoose
[2] https://github.com/gkdr/lurch/
[3] https://xmpp.org/extensions/xep-0384.html
[4] https://xmpp.org/extensions/xep-0163.html

P.S.
I am aware that this is not the latest omemo version. But this is what the
lurch plugin currently implements.

--000000000000b3df5705b9d2c730
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello all</div><div><br></div><div>I had included ome=
mo in shmoose [1] by using libomemo with axc and integrated lurch [2] by im=
plementing an adapter to use without libpurple. So far so good, it is worki=
ng as expected.<br></div><div><br></div><div>The only thing wich does not w=
ork is deploying the devicelist via pep. I had to ask for devicelist manual=
ly to use omemo encryption. <br></div><div><br></div><div>According to omem=
o xep [3] 5.2: &quot;Devices MUST subscribe to <code>urn:xmpp:omemo:1:devic=
es</code> via PEP&quot;. But pep state [4] 1.2: &quot;because they are subs=
cribed to your presence, they automatically receive your events&quot;. I wo=
uld expect, as long as the users are subscribed to the others presence, the=
y will automatically receive the devicelist nodes and updates? That does no=
t work for me. <br></div><div><br></div><div>This is the pep node shmoose c=
lient sends during add of devicelist entry:</div><div><br></div><div>

<p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap"><span style=3D=
"color:rgb(170,0,0)"> &lt;</span><span style=3D"font-weight:600;color:rgb(1=
70,170,0)">iq</span><span style=3D"color:rgb(170,0,0)"> </span><span style=
=3D"font-weight:600;color:rgb(0,170,0)">xmlns</span><span style=3D"color:rg=
b(170,0,0)">=3D&quot;</span><span style=3D"font-weight:600;color:rgb(170,0,=
0)">jabber:client</span><span style=3D"color:rgb(170,0,0)">&quot; </span><s=
pan style=3D"font-weight:600;color:rgb(0,170,0)">id</span><span style=3D"co=
lor:rgb(170,0,0)">=3D&quot;</span><span style=3D"font-weight:600;color:rgb(=
0,170,170)">d0093daf-8c93-4c3c-8382-68d0d1454295</span><span style=3D"color=
:rgb(170,0,0)">&quot; </span><span style=3D"font-weight:600;color:rgb(0,170=
,0)">type</span><span style=3D"color:rgb(170,0,0)">=3D&quot;</span><span st=
yle=3D"font-weight:600;color:rgb(0,170,170)">set</span><span style=3D"color=
:rgb(170,0,0)">&quot;&gt;</span></p>
<p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap"><span style=3D=
"color:rgb(170,0,0)">  &lt;</span><span style=3D"font-weight:600;color:rgb(=
170,170,0)">pubsub</span><span style=3D"color:rgb(170,0,0)"> </span><span s=
tyle=3D"font-weight:600;color:rgb(0,170,0)">xmlns</span><span style=3D"colo=
r:rgb(170,0,0)">=3D&quot;</span><span style=3D"font-weight:600;color:rgb(17=
0,0,0)"><a href=3D"http://jabber.org/protocol/pubsub">http://jabber.org/pro=
tocol/pubsub</a></span><span style=3D"color:rgb(170,0,0)">&quot;&gt;</span>=
</p>
<p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap"><span style=3D=
"color:rgb(170,0,0)">   &lt;</span><span style=3D"font-weight:600;color:rgb=
(170,170,0)">publish</span><span style=3D"color:rgb(170,0,0)"> </span><span=
 style=3D"font-weight:600;color:rgb(0,170,0)">node</span><span style=3D"col=
or:rgb(170,0,0)">=3D&quot;</span><span style=3D"font-weight:600;color:rgb(0=
,170,170)">eu.siacs.conversations.axolotl.devicelist</span><span style=3D"c=
olor:rgb(170,0,0)">&quot;&gt;</span></p>
<p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap"><span style=3D=
"color:rgb(170,0,0)">    &lt;</span><span style=3D"font-weight:600;color:rg=
b(170,170,0)">item</span><span style=3D"color:rgb(170,0,0)">&gt;</span></p>
<p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap"><span style=3D=
"color:rgb(170,0,0)">     &lt;</span><span style=3D"font-weight:600;color:r=
gb(170,170,0)">list</span><span style=3D"color:rgb(170,0,0)"> </span><span =
style=3D"font-weight:600;color:rgb(0,170,0)">xmlns</span><span style=3D"col=
or:rgb(170,0,0)">=3D&quot;</span><span style=3D"font-weight:600;color:rgb(1=
70,0,0)">eu.siacs.conversations.axolotl</span><span style=3D"color:rgb(170,=
0,0)">&quot;&gt;</span></p>
<p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap"><span style=3D=
"color:rgb(170,0,0)">      &lt;</span><span style=3D"font-weight:600;color:=
rgb(170,170,0)">device</span><span style=3D"color:rgb(170,0,0)"> </span><sp=
an style=3D"font-weight:600;color:rgb(0,170,0)">id</span><span style=3D"col=
or:rgb(170,0,0)">=3D&quot;</span><span style=3D"font-weight:600;color:rgb(0=
,170,170)">339564329</span><span style=3D"color:rgb(170,0,0)">&quot;&gt;&lt=
;/</span><span style=3D"font-weight:600;color:rgb(170,170,0)">device</span>=
<span style=3D"color:rgb(170,0,0)">&gt;</span></p>
<p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap"><span style=3D=
"color:rgb(170,0,0)">     &lt;/</span><span style=3D"font-weight:600;color:=
rgb(170,170,0)">list</span><span style=3D"color:rgb(170,0,0)">&gt;</span></=
p>
<p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap"><span style=3D=
"color:rgb(170,0,0)">    &lt;/</span><span style=3D"font-weight:600;color:r=
gb(170,170,0)">item</span><span style=3D"color:rgb(170,0,0)">&gt;</span></p=
>
<p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap"><span style=3D=
"color:rgb(170,0,0)">   &lt;/</span><span style=3D"font-weight:600;color:rg=
b(170,170,0)">publish</span><span style=3D"color:rgb(170,0,0)">&gt;</span><=
/p>
<p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap"><span style=3D=
"color:rgb(170,0,0)">  &lt;/</span><span style=3D"font-weight:600;color:rgb=
(170,170,0)">pubsub</span><span style=3D"color:rgb(170,0,0)">&gt;</span></p=
>
<p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap"><span style=3D=
"color:rgb(170,0,0)"> &lt;/</span><span style=3D"font-weight:600;color:rgb(=
170,170,0)">iq</span><span style=3D"color:rgb(170,0,0)">&gt;</span></p></di=
v><div><br></div><div>As far as I understood it, this should trigger an aut=
omated message stanza update to all presence-subscribed users. But it doesn=
&#39;t.</div><div></div><br><div>Any hints on this issue are appreciated.<b=
r></div><div><br></div><div>Best regards</div><div>geobra</div><div><br></d=
iv><div>[1] <a href=3D"https://github.com/geobra/harbour-shmoose">https://g=
ithub.com/geobra/harbour-shmoose</a></div><div>[2] <a href=3D"https://githu=
b.com/gkdr/lurch/">https://github.com/gkdr/lurch/</a></div><div>[3] <a href=
=3D"https://xmpp.org/extensions/xep-0384.html">https://xmpp.org/extensions/=
xep-0384.html</a></div><div>[4] <a href=3D"https://xmpp.org/extensions/xep-=
0163.html">https://xmpp.org/extensions/xep-0163.html</a></div><div><br></di=
v><div>P.S. <br><div>I am aware that this is not the latest omemo version. =
But this is what the lurch plugin currently implements.</div><div><br></div=
></div></div>

--000000000000b3df5705b9d2c730--

--===============1960773180==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
JDev mailing list
Info: https://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________

--===============1960773180==--