Commit Graph

62 Commits (master)

Author SHA1 Message Date
Martin Dosch d2f758b4f9
Use `fmt.Errorf()` instead of `errors.New()` to create new error messages. 3 weeks ago
Martin Dosch b98a071472
Add new parameter subject. 1 month ago
Martin Dosch 9b30af207d
Improve error message. 2 months ago
Martin Dosch 31ae111c80
New ox priv key location. 2 months ago
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.
2 months ago
Martin Dosch ce89cd94b9
Improve file name for private ox keys. 4 months ago
Martin Dosch 55e16b417d
Make comment more precise. 4 months ago
Martin Dosch ae4a727cef
Use human readable file name for private Ox keys. 4 months ago
Martin Dosch fc1342ab29
Update go modules. 5 months ago
Martin Dosch 802f57d404
[gofumpt]: Improve formatting. 7 months ago
Martin Dosch d482347310
Switch back to upstream go-xmpp library. 7 months ago
Martin Dosch 7dbbcf45e7
Add support for SCRAM PLUS variants and mechanism pinning. 7 months ago
Martin Dosch a034a8e501
Temporarily switch to go-xmpp fork. 7 months ago
Martin Dosch b004015e18
Don't unwrap errors when checking errors. 10 months ago
Martin Dosch 5f8f8e019c
Fix typo. 1 year ago
Martin Dosch aad725b721
Unbreak function heads. 1 year ago
Martin Dosch a912408d16
Wrap and unwrap errors. 1 year ago
Martin Dosch 61027844d2
[golangci-lint]: Don't use magic numbers. 1 year ago
Martin Dosch b8c7876b77
Remove unused iqc. 1 year ago
Martin Dosch 8a52c0ca44
Rename delete to del. 1 year ago
Martin Dosch 620130aded
gofumpt 1 year ago
Martin Dosch b9610c81a4
[golangci-lint]: Check for errors on file.Close(). 1 year ago
Martin Dosch fd3d9f0d9f
[golangci-lint]: regexp: Simplify code. 1 year ago
Martin Dosch a0b6c045c7
[golangci-lint]: Use constant for result. 1 year ago
Martin Dosch d85cf8fee7
[golangci-lint]: Use constant for error. 1 year ago
Martin Dosch 437cd7eec6
Remove copyright years. 1 year ago
Martin Dosch e381942708
Use single quotes for stanzas created by beevik/etree.
Squashed commit of the following:

commit 8e33952869831f620fa289f1bc997128a40eaee3
Author: Martin Dosch <martin@mdosch.de>
Date:   Tue May 9 21:22:40 2023 +0200

    Clean go.mod

commit 11bb88fca2d4bb76557e912f46f726e675e0b0cb
Merge: 8d45413 b01ed4b
Author: Martin Dosch <martin@mdosch.de>
Date:   Tue May 9 21:21:48 2023 +0200

    Merge branch 'master' into singlequotes

commit 8d45413f05
Author: Martin Dosch <martin@mdosch.de>
Date:   Tue May 2 09:39:54 2023 +0200

    Add more singlequotes. :)

commit c496e2596a
Author: Martin Dosch <martin@mdosch.de>
Date:   Tue May 2 09:35:12 2023 +0200

    Use single quotes.

commit e4556759d8
Author: Martin Dosch <martin@mdosch.de>
Date:   Tue May 2 07:25:09 2023 +0200

    Use single quotes for XML attributes.
1 year ago
Martin Dosch 8819c4f13d
Don't capitalize error messages. 1 year ago
Martin Dosch dd9566eaee
Move string validation into own helper function. 2 years ago
Martin Dosch cb033bbf59
Improve error handling in XML parsing. 2 years ago
Martin Dosch ce8f783301 Ox: Don't encrypt empty messages. 2 years ago
Martin Dosch 25d73bbe07 Ox: Improve log messages. 2 years ago
Martin Dosch e340828cb5 Improve deleting pubkeys. 2 years ago
Martin Dosch 4d38661174 Ox: Improve private key import. 2 years ago
Martin Dosch f26a91d965 Add possibility to delete Ox nodes. 2 years ago
Martin Dosch 52adb579d8 Don't capitalize error strings (staticcheck). 2 years ago
Martin Dosch 2f2a2fd4fd Rework receiving stanzas.
Calling client.Recv() multiple times caused messages not appear
in `--listen` mode as calling Recv() for receiving IQs (e.g. for
receiving Ox keys) also received the messages so they were no longer
available for the Recv in the listening function.
2 years ago
Martin Dosch 0e852f6b2c Ox: Improve time stamp parsing. 2 years ago
Martin Dosch a196856f76 Ox: Improve stability of decrypting.
Accept all allowed time stamps and remove invalid xml chars from
decrypted messages.
2 years ago
Martin Dosch 10c9986e7d Ox: Add support for receiving and decrypting Ox messages. 2 years ago
Martin Dosch 6556ab1188 Ox: Change rpad from random length to length dependent on message length
The length of message + the length of the rpad will always be a
total length of a multiple of 100.
2 years ago
Martin Dosch 23b2437ad1 Ox: Also publish pubkey for imported privkeys
Check whether the public key is already in pubsub,
if not publish it.
2 years ago
Martin Dosch b092039ac3 Ox: Allow also RSA key generation. 2 years ago
Martin Dosch b25ba60415 Don't set email for Ox private key.
Prior to this commit [1] it was necessary to provide a
name and an email address for key generation. So the
UID of the key had the format `xmpp:user@example.com
<xmpp:user@example.com>` whereas XEP-0373 defines the
UID in the format `xmpp:user@example.com`.

[1] 74905cd51f
2 years ago
Martin Dosch 07d3491c2a Just create key file if key generation is requested. 2 years ago
Martin Dosch bfb5e28a03 Change variable names and error strings [golint]. 2 years ago
Martin Dosch 8aab6810d2 Change from encoding/xml to etree. 2 years ago
Martin Dosch 8764f03eec Change from encoding/xml to etree. 2 years ago
Martin Dosch dd4a9c9bed Fix Ox encryption. 2 years ago
Martin Dosch 28c5884044 Change from encoding/xml to etree. 2 years ago