b18f7d9973
Update trust methods for 0.11.0 omemo update
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-13 19:05:49 +01:00
39a9fef73b
Phrasing + english in docstring
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-25 03:36:38 +02:00
9096891e28
Add docstring for _set_node_config
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-25 03:27:00 +02:00
753c5de27c
Merge branch 'precondition-not-met-fallback' into 'master'
...
Implement fallback on precondition-not-met error when publishing devicelist and bundle
Closes #6
See merge request poezio/slixmpp-omemo!2
2019-10-25 03:20:37 +02:00
6850051b32
Implement fallback on precondition-not-met error when publishing devicelist and bundle
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-25 03:19:34 +02:00
9e2dcc5529
Prepare for version 0.2.0
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-02 02:31:38 +02:00
e6ce39bcc9
Echo_bot: Add documentation for expect_problems
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-02 02:28:39 +02:00
153edfb564
Echo_bot: Use expect_problems and handle MissingBundleException
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-02 02:21:53 +02:00
2dc08c9d2f
Echo_bot: prevent loops when decrypting/encrypting
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-02 02:21:00 +02:00
79a4f417ed
Adapt example to new decrypt API
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-02 02:18:16 +02:00
62b6037611
Convert jid to str before passing in decrypt_message
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-02 02:17:19 +02:00
e893e6aeec
Change decrypt_message API. Don't take the entire message anymore
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-27 23:43:04 +02:00
2b63352626
Remove fingerprint from get_trust_for_jid, simply wrap the omemo lib method
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-25 23:20:42 +02:00
508a1fe987
Coding style changes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-25 23:19:40 +02:00
9d3915a27c
Add docstring for get_trust_for_jid
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-25 11:48:48 +02:00
179db446fe
Add get_trust_for_jid method
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-25 01:56:28 +02:00
545123773b
Style fixes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-25 00:39:03 +02:00
96e4ecf683
Properly name values passed to EncryptionPrepareException
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-25 00:35:30 +02:00
2a346ac48d
Keep track of known bundles on the instance
...
Since we're raising exceptions often to yield to the client, we need to
keep track of bundles on the object and not just in the method itself.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-24 00:44:46 +02:00
869b11d322
Make session_start handler async and use asyncio helper in it
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-24 00:14:41 +02:00
0e65c68371
Check for publish-options support and add them in devicelist and bundle set operations
...
Ensure that publish-options are added at the end in the pubsub request,
otherwise it seems to be invalid.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-24 00:13:41 +02:00
0b6ef3a860
Use get_info instead of get_items to get account features
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-23 22:36:43 +02:00
de585a23b2
Unnecessary elif after raise
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-23 12:52:46 +02:00
bf2b2283f5
Use session_start instead of session_bind to ensure we're authenticated
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-22 19:44:21 +02:00
a07c3d9745
Only use publish-options if advertized by the server
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-22 19:43:49 +02:00
c7e54488b7
v0.1.3 release
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-04 18:34:44 +00:00
4da2bf06e9
Prevent accessing list index when no device is available also in _store_device_ids
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-27 23:26:52 +00:00
7449e5c908
Remove wrong return types for now; Remove unused JID import
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-27 13:34:40 +00:00
36e385a6ea
example-bot: specify why we automatically trust when encrypting
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-27 12:15:06 +00:00
1496becac7
example-bot: Add note about encrypting for MUCs
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-27 11:45:21 +00:00
c753a672f4
setup.py: specify 'packages' value to properly include slixmpp_omemo; remove MANIFEST.in
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-27 09:27:08 +00:00
be9139957c
Prevent accessing list index when no device is available
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-27 09:26:44 +00:00
b5f9eb7e87
Add manifest and bump version
...
Oops. Forgot to include _some_ files in the tarball..
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-27 09:02:56 +00:00
34226fbea7
Fix typo in bot docstring
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 18:25:55 +00:00
555275e257
Add long_description_content_type in setup.py
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 17:28:27 +00:00
478d56803a
Add TODO for NoEligibleDevicesException and MissingBundleException
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 17:28:15 +00:00
75c07a9974
Replace find_version logic with exec to fix package version
...
Remove all the importlib trickery and use exec instead, as it was
essentially what this was doing anyway.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 17:00:58 +00:00
97b564fb85
Modify CONTRIBUTING. Remove mentions of github
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 16:25:59 +00:00
72c8acca85
example-bot: add TODO for expect_problems
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 12:28:06 +00:00
63dc98b07b
example-bot: Add catchall except in decryption and encryption
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 12:28:06 +00:00
9e70954a0e
example-bot: attempt at returning encrypted messages
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 12:28:06 +00:00
af8c731307
example-bot: Use async methods instead
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 12:28:06 +00:00
c7983d176d
Remove handler on message_encryption
...
This event is being sent by slixmpp's EME plugin, when a message
contains an EME tag. I can already test for this myself, so I'd rather
not hook this event to remove duplicated messages.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 12:28:06 +00:00
b71a367bcb
Remove the while loop; add dummy encrypted_reply
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 12:28:06 +00:00
368bbd9005
Add some more comments in NoAvailableSession handling
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 12:28:06 +00:00
643b1695a1
Change undecided/untrusted exceptions' comment
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 12:28:06 +00:00
3061aa3372
First attempt at an example
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 12:28:06 +00:00
a72e81c329
xep_0384: Add publish-options when publishing devices and bundles
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 12:23:39 +00:00
e9717cd652
xep_0384: explicitely add 0060 as dep as we also depend on it
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 11:13:40 +00:00
99fdb6e3fc
xep_0384: rename variable to remove linting warning
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-23 18:34:43 +00:00