Commit Graph

697 Commits

Author SHA1 Message Date
Martin Dosch
013756cec9
Update go modules. 2024-04-12 12:59:06 +02:00
Martin Dosch
9aea1e294a
Improve listening mode. 2024-04-12 12:57:08 +02:00
Martin Dosch
93d8bbedaa
FAST: Fix check for expiry. 2024-04-12 11:41:30 +02:00
Martin Dosch
72e517e14d
Update go modules. 2024-04-12 10:54:53 +02:00
Martin Dosch
c87f1bdb83
Move stanza receiving goroutine outside of for loop. 2024-04-12 10:52:31 +02:00
Martin Dosch
f2b20502c6
FAST: Update token if expiry is reduced. 2024-04-12 10:50:18 +02:00
Martin Dosch
25b8a8e243
Reintroduce context and cancel func
There are still some rare races without.
2024-04-11 10:18:39 +02:00
Martin Dosch
c77eae826a
Update go modules. 2024-04-11 09:52:42 +02:00
Martin Dosch
be78a2b845
Catch error when listening mode is stopped with Ctrl+C. 2024-04-10 17:53:41 +02:00
Martin Dosch
e244f14548
Retry without FAST if FAST authentication fails. 2024-04-10 16:14:46 +02:00
Martin Dosch
79897fd295
Use fast.bin for fast cache file
So it's clear that this is no clear text file and it is not supposed to
be edited by the user.
2024-04-10 15:50:58 +02:00
Martin Dosch
61f5ab705d
Add support for FAST authentication. 2024-04-10 15:19:50 +02:00
Martin Dosch
5ecfe200c1
Revert "Do not use sasl2 uuid attribute."
This reverts commit 557d105238.
2024-04-09 14:52:15 +02:00
Martin Dosch
19812b0863
Reorder changelog. 2024-04-09 10:59:49 +02:00
Martin Dosch
9f9c533941
Add support for SASL2 and BIND2
Squashed commit of the following:

commit 0805b1f06a
Author: Martin Dosch <martin@mdosch.de>
Date:   Tue Apr 9 10:57:29 2024 +0200

    Move to upstream go-xmpp.

commit 557d105238
Author: Martin Dosch <martin@mdosch.de>
Date:   Sun Apr 7 12:45:10 2024 +0200

    Do not use sasl2 uuid attribute.

commit 986aea7957
Author: Martin Dosch <martin@mdosch.de>
Date:   Sun Apr 7 11:29:33 2024 +0200

    Don't print error on io.EOF

commit ef927ce5cc
Author: Martin Dosch <martin@mdosch.de>
Date:   Sun Apr 7 11:25:40 2024 +0200

    Detect stream error while receiving stanzas.

commit 73b00f0612
Author: Martin Dosch <martin@mdosch.de>
Date:   Sun Apr 7 10:00:54 2024 +0200

    Use a client uuid per JID.

commit b2d090a623
Author: Martin Dosch <martin@mdosch.de>
Date:   Sun Apr 7 09:29:50 2024 +0200

    Improve sasl2 user agent id stuff.

commit c7376832ce
Author: Martin Dosch <martin@mdosch.de>
Date:   Sun Apr 7 09:11:03 2024 +0200

    Rework getting data path.

commit 080100486e
Author: Martin Dosch <martin@mdosch.de>
Date:   Sun Apr 7 08:49:49 2024 +0200

    Update go-xmpp.

commit 9c56a79bae
Author: Martin Dosch <martin@mdosch.de>
Date:   Sun Apr 7 00:26:04 2024 +0200

    SASL2: Create per client installation ID.

commit cce36b070a
Author: Martin Dosch <martin@mdosch.de>
Date:   Sat Apr 6 22:20:35 2024 +0200

    Update go-xmpp.

commit 1c4acfd07c
Author: Martin Dosch <martin@mdosch.de>
Date:   Fri Apr 5 12:04:09 2024 +0200

    Update go-xmpp.

commit 0703a7c2d6
Author: Martin Dosch <martin@mdosch.de>
Date:   Fri Apr 5 11:38:28 2024 +0200

    Update go-xmpp.

commit 4f033fc5b9
Author: Martin Dosch <martin@mdosch.de>
Date:   Fri Apr 5 09:39:30 2024 +0200

    Update vendored lib.

commit a44554218d
Author: Martin Dosch <martin@mdosch.de>
Date:   Fri Apr 5 09:32:54 2024 +0200

    Use google/uuid for message IDs.

    It is used for go-xmpp in the sasl2 branch anyway.

commit 3e57ec3603
Author: Martin Dosch <martin@mdosch.de>
Date:   Fri Apr 5 09:12:50 2024 +0200

    Update vendored modules.

commit ead44ef99d
Author: Martin Dosch <martin@mdosch.de>
Date:   Fri Apr 5 09:12:25 2024 +0200

    Add . between go-sendxmpp and short id.

commit b3271a3530
Author: Martin Dosch <martin@mdosch.de>
Date:   Fri Apr 5 08:38:03 2024 +0200

    Update Changelog.

commit 639b9b6657
Author: Martin Dosch <martin@mdosch.de>
Date:   Fri Apr 5 08:22:56 2024 +0200

    Add short ID back to resource string.

    That's still necessary to avoid two instances with the same resource
    when using SASL instead of SASL2.

commit 680593359b
Author: Martin Dosch <martin@mdosch.de>
Date:   Thu Apr 4 23:56:15 2024 +0200

    Experimental sasl2 support.
2024-04-09 10:59:00 +02:00
Martin Dosch
06bbd9fda5
Update go modules. 2024-04-04 11:03:20 +02:00
Martin Dosch
c392eeb858
Close receiving of stanzas if io.EOF is received. 2024-04-02 17:05:24 +02:00
Martin Dosch
09e2423da4
Update go modules. 2024-04-02 16:33:33 +02:00
Martin Dosch
2a6ed7b54d
Merge branch 'remove-mutex-and-context' 2024-04-02 15:59:53 +02:00
Martin Dosch
5de4d1f8fe
Regenerate manpage. 2024-04-02 15:58:37 +02:00
Martin Dosch
99689ea2cd
Ignore EOF errors when receiving stanzas. 2024-04-02 15:57:48 +02:00
Martin Dosch
86a2280277 Merge branch 'Menelmacar-master-patch-37014' into 'master'
Update man for FISH - Shell completions

See merge request mdosch/go-sendxmpp!5
2024-04-02 13:56:49 +00:00
Maik Holme
fc860dfebb Update man for FISH - Shell completions 2024-04-02 13:49:57 +00:00
Martin Dosch
11a31d6ad0
Remove mutex and context.
Those should hopefully no longer be necessary as the races
have been fixed in the library.
2024-04-02 15:36:33 +02:00
Martin Dosch
f1e9bfcdc8
Update README. 2024-04-02 14:54:42 +02:00
Martin Dosch
dbed11323d
Remove mutex as the locking is now done in the library. 2024-04-02 13:44:59 +02:00
Martin Dosch
c13a0c7016
Update go modules. 2024-04-02 13:40:41 +02:00
Martin Dosch
872eaa847a
Clean up go.sum 2024-04-01 16:45:13 +02:00
Martin Dosch
4483863795
Lock mutex before starting the goroutine. 2024-04-01 16:45:08 +02:00
Martin Dosch
09693ba1bf
Further improvements to make race conditions less likely. 2024-03-31 16:55:45 +02:00
Martin Dosch
46ed540910
Update go-xmpp to latest master. 2024-03-31 16:05:50 +02:00
Martin Dosch
5704798b09
Improve stanza reading. 2024-03-31 16:05:37 +02:00
Martin Dosch
8936ba2acc
Only perform root check on non-windows systems.
Is anyone using go-sendxmpp on windows?
2024-03-30 14:08:54 +01:00
Martin Dosch
1574e2f4df
Add a warning when run by root. 2024-03-30 14:06:56 +01:00
Martin Dosch
606ca8cc18
Fix typo. 2024-03-30 13:11:12 +01:00
Martin Dosch
b04196a19f
Add hint about usage is root to the manpage. 2024-03-30 13:03:36 +01:00
Martin Dosch
e666f33030
Start new development cycle. 2024-03-28 19:22:39 +01:00
Martin Dosch
ffae83f8ea
Prepare release v0.9.0. 2024-03-28 19:14:05 +01:00
Martin Dosch
e1708129e2
Switch to latest go-xmpp release. 2024-03-28 19:09:16 +01:00
Martin Dosch
8b4b8105b2
Update go modules. 2024-03-28 18:18:18 +01:00
Martin Dosch
36d6b26fe8
Update go modules. 2024-03-28 18:08:32 +01:00
Martin Dosch
ea515401d1
Fixed hanging forever in stream close if server doesn't reply. 2024-03-28 17:26:28 +01:00
Martin Dosch
2ddfcb8383
Add support for XEP-0478: Stream Limits Advertisement. 2024-03-28 16:04:48 +01:00
Martin Dosch
911763b2e5
Update go modules. 2024-03-27 21:20:24 +01:00
Martin Dosch
9a186aeec1
Don't capitalize --ssdp-off command line flag. 2024-03-26 21:47:41 +01:00
Martin Dosch
ca268e957e
Add command line flag to disable XEP-0474: SASL SCRAM Downgrade Protection. 2024-03-26 21:41:45 +01:00
Martin Dosch
b9018ec2d9
Update changelog. 2024-03-26 21:02:45 +01:00
Martin Dosch
e5cbe832e3
Properly exit listening mode if Ctrl+C is pressed. 2024-03-26 20:43:30 +01:00
Martin Dosch
27c45a1877
Switch to development branch of go-xmpp 2024-03-26 19:28:13 +01:00
Martin Dosch
92db3d2fb1
Use latest release of go-xmpp. 2024-03-22 18:52:22 +01:00