mathieui
eab8c265f4
Record the current connection attempt in a future and allow cancellation
...
It does not make sense to have competing connection attempts, as the
XMLStream class is not designed for this. On slow and unpredictable
networks, it means we could have two c2s connections opened, leading to
mayhem.
2017-11-23 00:00:37 +01:00
Emmanuel Gil Peyrot
80b9cd43b1
MAM example: Also display the timestamp.
2017-10-24 10:54:53 +01:00
Emmanuel Gil Peyrot
af1f9e08ad
Clean up the MAM example a bit.
2017-10-24 10:47:42 +01:00
Emmanuel Gil Peyrot
e3fd0af9c8
xep_0054: Fix parsing BINVAL element.
2017-10-08 15:42:48 +01:00
mathieui
27e23672c1
Update the MAM plugin for asyncio & new namespace
...
And add an example
2017-09-24 17:43:06 +02:00
mathieui
b38e229359
Update RSM for asyncio
...
- Use an async iterator
- Add a "recv_interface" parameter in order to differenciate the stanza
we send from the stanza we receive (required for MAM)
- Add a pre_cb to run before sending the query stanza
- Add a post_cb to run after receiving the result stanza
2017-07-21 15:01:13 +02:00
Emmanuel Gil Peyrot
9a563f1425
XEP-0030: Optimise add_node usage a bit.
2017-07-17 22:46:48 +01:00
Emmanuel Gil Peyrot
8b6f5953a7
XEP-0319: Use the correct timezone.
...
This fixes a specification violation, XEP-0082 says that a date MUST
have a timezone, but we were sending the *local* time without any
timezone information.
2017-07-17 22:20:30 +01:00
Emmanuel Gil Peyrot
2d2a80c73d
xmlstream: Remove pygments dumping.
...
It’s slow and makes the debug logs difficult to parse.
2017-07-17 21:17:02 +01:00
Mathias Ertl
4dfdd5d8e3
always define ssl_context
2017-05-24 13:18:22 +02:00
Mathias Ertl
1994ed3025
pass SSL context to TLS connections
2017-05-24 11:31:13 +02:00
Mathias Ertl
aaa45846d3
add function to explicitly get the ssl context
2017-05-24 11:31:13 +02:00
louiz’
d7ffcb54eb
Merge remote-tracking branch 'samwhited/sslsocket_workaround'
2017-05-16 17:24:46 +02:00
Tom Wambold
c33749e57a
Fixes port being set to 0 when connecting via hostname.
...
This seems to be the same issue as:
https://dev.louiz.org/issues/3164
Using their suggested fix, if the DNS lookup doesn't return a port, use
the one passed in instead.
2017-05-08 15:58:28 -04:00
Emmanuel Gil Peyrot
e4107d8b4d
sasl: Merge two bytes instead of concatenating them at runtime.
2017-04-28 21:26:03 +01:00
mathieui
da5cb72d3a
Add XMPP classifier to setup.py
2017-04-10 02:24:14 +02:00
Emmanuel Gil Peyrot
c372bd5168
xmlstream: Warn when the parser is None when data is received.
2017-02-16 11:27:36 +00:00
mathieui
cabf623131
Fix the http over xmpp example
2017-02-14 01:04:38 +01:00
mathieui
ffc240d5b6
Fix the gtalk example
2017-02-14 01:04:27 +01:00
mathieui
cc4522d9cd
Fix custom stanza examples
2017-02-14 01:00:41 +01:00
mathieui
5bf69dca76
Return a Future on clientxmpp.get_roster()
2017-02-14 00:46:36 +01:00
Emmanuel Gil Peyrot
59dad12820
XEP-0300: Workaround for Python 3.5 or below.
2017-02-11 23:30:43 +00:00
Emmanuel Gil Peyrot
007c836296
XEP-0300: Add rudimentary tests.
2017-02-11 04:02:44 +00:00
Emmanuel Gil Peyrot
3721bf9f6b
Implement XEP-0300 (Use of Cryptographic Hash Functions in XMPP)
...
This is used to provide hash agility support and let other XEPs select
which hash function they support.
2017-02-11 04:02:20 +00:00
Cédric 'dek' Laudrel
802949eba8
fix small typo in README
2017-02-10 00:08:40 +01:00
mathieui
24f35e433f
slixmpp 1.2.4 release
2017-01-30 23:02:45 +01:00
mathieui
22664ee7b8
Fix carbons
2017-01-28 00:02:27 +01:00
Clint Olson
6476cfcde5
Remove unused import caught by Codacy.
2017-01-23 23:58:53 -08:00
Clint Olson
5bb347e884
Fix partially-merged Google plugin from acc52fd935
.
2017-01-23 23:51:59 -08:00
Emmanuel Gil Peyrot
eb1251b919
Fix a typo in the title of the MUC documentation.
2017-01-08 17:38:11 +00:00
Emmanuel Gil Peyrot
820144c40c
Add missing asyncio.coroutine decorators.
2016-12-30 13:41:15 +01:00
Emmanuel Gil Peyrot
6034df0a78
Check for XML parsing errors and disconnect in that case.
2016-12-29 18:59:09 +01:00
Emmanuel Gil Peyrot
df4012e66d
XMLStream: Break a long line to make it more readable.
2016-12-29 18:41:09 +01:00
Emmanuel Gil Peyrot
c372f3071a
Examples: Use argparse for http_over_xmpp.
2016-12-29 18:34:37 +01:00
Emmanuel Gil Peyrot
829c8b27b6
Test more things before trying to build our stringprep module.
2016-12-25 13:28:51 +01:00
mathieui
fb3ac78bf9
slixmpp 1.2.3
2016-12-07 21:47:54 +01:00
mathieui
ffd9436e5c
Fix roster push origin detection and tests
2016-12-07 19:06:25 +01:00
louiz’
bbb1344d79
Add very basic gitlab-ci.yml file
2016-12-05 00:13:13 +01:00
Emmanuel Gil Peyrot
457785b286
XEP-0380: Add a helper to test for the presence of an EME tag.
2016-11-26 16:41:48 +00:00
Emmanuel Gil Peyrot
4847f834bd
Add a plugin for XEP-0380: Explicit Message Encryption.
2016-11-26 16:29:19 +00:00
mathieui
53191ff1cf
slixmpp 1.2.2
...
Fix CVE-2015-8688, and a few bugfixes.
2016-11-21 21:46:02 +01:00
mathieui
ffdb6ffd69
Check origin of roster pushes
...
slixmpp is vulnerable to roster push attacks as described by Daniel
Gultsch at https://gultsch.de/gajim_roster_push_and_message_interception.html .
(CVE-2015-8688)
2016-11-21 21:42:51 +01:00
Emmanuel Gil Peyrot
7560db856b
stringprep_profiles: Emit a correct StringPrepError on query + unassigned.
2016-10-27 06:44:38 +01:00
Emmanuel Gil Peyrot
63d245ac48
SASL: Fix traceback on non-hashing mechanism using channel binding.
2016-10-27 06:26:39 +01:00
Emmanuel Gil Peyrot
7ddd37be29
XEP-0323: Fix wrong import.
2016-10-27 06:23:08 +01:00
Emmanuel Gil Peyrot
a4d3a4a25e
XEP-0313: Add missing setter argument.
2016-10-27 06:22:50 +01:00
mathieui
58bd07628b
Add missing parameters in XEP-0222 and XEP-0223
2016-10-27 00:21:01 +02:00
mathieui
3569038493
XEP-0009: fix a traceback on recipient unavailable
...
(probably a past typo)
2016-10-27 00:18:43 +02:00
mathieui
20c4ff823a
Add missing JID import in XEP-0079 and 0258
2016-10-27 00:17:29 +02:00
mathieui
8a7448a5a1
Add missing imports in XEP-0333
2016-10-27 00:15:25 +02:00