summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-31Use gethostbyname when using aiodnsDaniel Roschka
Slixmpp behaves differently when resolving host names, whether aiodns is used or not. With aiodns only DNS is used, while without `asyncio.loop.getaddrinfo()` is used instead, which utilizes the Name Service Switch (NSS) to resolve host names by other means (hosts-file, mDNS, ...) as well. To unify the behavior, this replaces the use of `aiodns.DNSResolver().query()` with `aiodns.DNSResolver().gethostbyname()`. This makes the behavior resolving host names more consistent between using aiodns or not, as both now honor the NSS configuration and removes the need for the previously existing workaround to resolve localhost.
2022-07-16Merge branch 'fix-xep_0115-static' into 'master'Maxime Buquet
XEP-0115: Make get_caps() async See merge request poezio/slixmpp!203
2022-07-12Merge branch 'mini_dateutil-no-more' into 'master'Maxime Buquet
Remove mini_dateutil and replace it with datetime See merge request poezio/slixmpp!210
2022-07-12Merge branch 'prevent-naive-datetime' into 'master'Maxime Buquet
XEP-0203: Prevent naïve datetime from being passed Closes #3471 See merge request poezio/slixmpp!211
2022-07-12Merge branch 'affs-outcast-jid' into 'master'Link Mauve
xep_0045: Require JID when setting outcast affiliation See merge request poezio/slixmpp!188
2022-07-12Merge branch 'nicoco-master-patch-90506' into 'master'Link Mauve
Add xep_0356 to plugins.__all__ See merge request poezio/slixmpp!201
2022-07-12Merge branch 'xep0356-v0.4' into 'master'Link Mauve
XEP-0356: namespace version bump See merge request poezio/slixmpp!206
2022-07-12Merge branch 'default-to-CAs' into 'master'Link Mauve
xmlstream: load default CA store by default See merge request poezio/slixmpp!209
2022-07-12XEP-0203: Prevent naïve datetime from being passedEmmanuel Gil Peyrot
The specification says “The format MUST adhere to the dateTime format specified in XEP-0082 and MUST be expressed in UTC.” We now respect this requirement, by rejecting naïve datetimes with a ValueError exception, and converting the passed datetime to UTC. Fixes #3471.
2022-07-12thirdparty: Remove the mini_dateutil moduleEmmanuel Gil Peyrot
The builtin datetime module already provides the same features, there is no need to carry that code any longer.
2022-07-12XEP-0202: Remove usage of mini_dateutilEmmanuel Gil Peyrot
Like the previous commit, we now use the builtin datetime module always.
2022-07-12XEP-0082: Move from mini_dateutil to datetimeEmmanuel Gil Peyrot
Since datetime got merged into Python (probably around py3k), it’s now usable for all of our needs and so we can do away with the old fallback.
2022-07-11xmlstream: load default CA store by defaultMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-06-22Merge branch 'dns-reconnect' into 'master'Link Mauve
Fix delayed reconnect after DNS failure See merge request poezio/slixmpp!208
2022-06-22Fix delayed reconnect after DNS failureGeorg Lukas
The XML stream will re-schedule a reconnect on socket errors, except for DNS failures. If a user has no uplink connection, then DNS will also fail, preventing an automatic reconnection. This patch consolidates the two code paths and sets a maximum back-off time of 5min (300s).
2022-06-09XEP-0356: namespace version bumpNicolas Cedilnik
2022-06-09XEP-0115: Make get_caps() asyncNicolas Cedilnik
2022-05-28Merge branch 'origin-id-non-default' into 'master'Link Mauve
Change origin-id defaults to False See merge request poezio/slixmpp!202
2022-05-28Change origin-id defaults to FalseMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-05-19Add xep_0356 to plugins.__all__Nicoco K
2022-05-15Merge branch 'nicoco-master-patch-38938' into 'master'mathieui
Fix typo in chat markers (fixes #3469) Closes #3469 See merge request poezio/slixmpp!199
2022-05-15Fix typo in chat markers (fixes #3469)Nicoco K
2022-04-06Merge branch 'release-version-1.8.2' into 'master'slix-1.8.2mathieui
Update version to 1.8.2 See merge request poezio/slixmpp!197
2022-04-06Update version to 1.8.2mathieui
2022-04-05Merge branch 'starttls-exception' into 'master'mathieui
features_starttls/Proceed: raise exception on InvalidCABundle See merge request poezio/slixmpp!196
2022-04-05features_starttls/Proceed: raise exception on InvalidCABundleMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-05Merge branch 'exn-invalidcabundle-arg' into 'master'mathieui
Pass in useful value when raising InvalidCABundle See merge request poezio/slixmpp!195
2022-04-05Pass in useful value when raising InvalidCABundleMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-01Merge branch 'fix-old-session' into 'master'mathieui
stream features: fix old "session" establishment Closes #3468 See merge request poezio/slixmpp!193
2022-04-01stream features: fix old "session" establishmentmathieui
As it is and old and deprecated code path, nobody noticed that it was broken by the new filtering code. Fix #3468
2022-03-21Merge branch 'upload-encrypt' into 'master'Maxime Buquet
XEP-0454: OMEMO Media Sharing See merge request poezio/slixmpp!189
2022-03-20xep_0454: str.removeprefix is available since 3.9Maxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-20Merge branch 'release-version-1.8.1' into 'master'slix-1.8.1mathieui
Update version to 1.8.1 See merge request poezio/slixmpp!192
2022-03-20Update version to 1.8.1mathieui
2022-03-20Merge branch 'allow-disabling-defusedxml' into 'master'mathieui
Do not use defusedxml by default if available See merge request poezio/slixmpp!190
2022-03-20xep_0454: keep original filename extension if availableMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-20xep_0454: use staticmethods where possibleMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-20setup.py: add cryptography in extras_require; update exampleMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19Only defuse stdlib through an env varmathieui
https://github.com/inducer/relate/issues/905
2022-03-19doap: add 454 entryMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19xep_0454: also include finalize's result in the payloadMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19xep_0454: Don't force content-type to application/octect-streamMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19examples/http_upload.py: Add --encrypt parameter to send encrypted filesMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19xep_0454: Ensure format_url returns a strMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19tests: XEP-0454Maxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19xep_0454: implement decrypt methodMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19xep_0454: use streaming API from CipherContextMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19xep_0454: Add wrapper to xep_363's upload_fileMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19xep_0454: new plugin. OMEMO Media SharingMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-19xep_0363: change filename to PathMaxime “pep” Buquet
This shouldn't break anything as I'm not using Path specific APIs Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>