summaryrefslogtreecommitdiff
path: root/poezio/plugin_e2ee.py
AgeCommit message (Collapse)Author
2019-12-31E2EEPlugin: Mute some lint warnings because of metaclassMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-30Add TODO in plugin_e2ee _decryptMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-28Disable a pylint error on a line (due to __getattr__ override)mathieui
2019-12-27omemo: remove unnecessary newline in docstringMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27omemo: prevent traceback when no JID is specified in non-supported tabMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27omemo: use dedicated method to check if encryption is enabledMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27omemo: use jid property instead of name on chat tabMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27omemo: fix show_fingerprints (JID instead of str)mathieui
2019-12-27omemo: add an api in plugin_e2ee to get the fingerprint(s) of a jidmathieui
2019-12-27omemo: fix an indent error and make mypy happymathieui
2019-12-27omemo: fix some errors / feedback in trust settingmathieui
2019-12-27omemo: fix the type of the supported tab tyoesmathieui
2019-12-27omemo: add supported_tab_types and trust_states plugin attributesmathieui
- supported tab types is a list of tabs this plugin should be active in (only chattabs) - trust_states is a dict[str → set] containing only two keys: accepted and rejected, whose values are the internal plugin states that should allow encryption and the ones that should not
2019-12-27omemo: add a wrapper around _encrypt() to handle user feedbackmathieui
(yes, another one)
2019-12-27omemo: fix indentation of one linemathieui
2019-12-27omemo: add missing typing importmathieui
2019-12-27Fix potential race condition when encryptingmathieui
(do not try to rely on the current tab)
2019-12-27Add a "passthrough" parameter for calls through the safetymetaclassmathieui
So errors don’t get caught
2019-12-27omemo: ensure whitelist includes encryption tag in the correct formatMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27omemo: handle async encryption methodsMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27omemo: handle StaticConversationTab as wellMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27omemo: adapt to new E2EE APIMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-26Fix missing typing importmathieui
2019-07-19poezio/plugin_e2ee: import missing typeMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-02poezio/plugin_e2ee: Use encrypted_tags attribute to complete whitelist ↵Maxime “pep” Buquet
filtering on encryption Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-02poezio/plugin_e2ee: Implement previous commit, add encrypted_tags attributeMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-02poezio/plugin_e2ee: Add TODO in decryption method to match more than EME ↵Maxime “pep” Buquet
messages Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-02e2ee-api: Fix 0380 link in documentationMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-02e2ee-api: Some more changes to the documentationMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Add documentationMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: change log line in _encryptMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Always remove non-whitelisted subelements of messagesMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Drop message if no body and no stanza encryptionMaxime “pep” Buquet
To avoid leaking data when plugin doesn't do stanza encryption. This will inevitably reduce the number of features available, but users want to send "secure" messages right. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: do not edit non-chat/groupchat messagesMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Do not remove body from messages if presentMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Add <eme/> only if <body/> is presentMaxime “pep” Buquet
As per discussion in jdev@ Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Fix log messageMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Add replace_body_with_eme parameter to the classMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: add comment on tag_whitelistMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee api: filter out non-whitelisted tags if not doing stanza encryptionMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee api: Utilize priority in event handlingMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee api: Ensure only one encryption method is enabled at a timeMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee api: Avoid creating EME tag when looking if it's presentMaxime “pep” Buquet
Some slixmpp API fail.. it's be great if we didn't have to fiddle with the xml lib directly Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee api: Add space before encryption name in status barMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01First shot of an E2EE plugin interfaceMaxime “pep” Buquet
Features: - Decryption by default once the plugin is loaded if messages contains the right EME magic - Encryption of messages only if encryption is enabled for the current tab Missing pieces: - No special treatment done on the order of the treatment for messages yet - No special handling of non-Partial(/Full) Stanza Encryption yet (i.e., removing stuff other than <body/>) Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>