comparison sat/plugins/plugin_sec_oxps.py @ 3948:cd4d95b3fed3

plugin OXPS, XEP-0060: indicate which items were e2ee: the new `encryption` key is added to `getItems` metadata if items were e2ee, it contains a map from item ID to encryption metadata. rel 380
author Goffi <goffi@goffi.org>
date Sat, 15 Oct 2022 20:38:33 +0200
parents e345d93fb6e5
children 9badc46c5481
comparison
equal deleted inserted replaced
3947:08c1d5485411 3948:cd4d95b3fed3
734 shared_secret.key 734 shared_secret.key
735 ) 735 )
736 decrypted_elt = xml_tools.parse(decrypted) 736 decrypted_elt = xml_tools.parse(decrypted)
737 item.children.clear() 737 item.children.clear()
738 item.addChild(decrypted_elt) 738 item.addChild(decrypted_elt)
739 extra.setdefault("encrypted", {})[item["id"]] = {"type": NS_OXPS}
739 740
740 async def _message_received_trigger( 741 async def _message_received_trigger(
741 self, 742 self,
742 client: SatXMPPEntity, 743 client: SatXMPPEntity,
743 message_elt: domish.Element, 744 message_elt: domish.Element,