Commit Graph

315 Commits

Author SHA1 Message Date
Martin Dosch
3e4a93c808 Start new development cycle. 2022-05-22 12:37:35 +02:00
Martin Dosch
81cfc0b6c2 Prepare v0.5.1 release. 2022-05-22 12:34:25 +02:00
Martin Dosch
c2200c3915 Update go modules. 2022-05-22 12:16:52 +02:00
Martin Dosch
1d2ef175a5 Fix changelog. 2022-05-07 10:29:54 +02:00
Martin Dosch
392be78f61 Fix nick in MUCs if not manually set. 2022-05-05 20:04:50 +02:00
Martin Dosch
eec7fb2d73 Improve listening mode for groupchats. 2022-05-05 20:01:35 +02:00
Martin Dosch
4aac059c4e Prepare new development cycle. 2022-05-05 18:23:18 +02:00
Martin Dosch
49e97981cb Prepare v0.5.0 release. 2022-05-05 18:20:53 +02:00
Martin Dosch
25d73bbe07 Ox: Improve log messages. 2022-05-05 15:56:53 +02:00
Martin Dosch
e340828cb5 Improve deleting pubkeys. 2022-05-04 12:12:10 +02:00
Martin Dosch
4d38661174 Ox: Improve private key import. 2022-05-04 11:42:42 +02:00
Martin Dosch
f26a91d965 Add possibility to delete Ox nodes. 2022-05-04 11:18:24 +02:00
Martin Dosch
1214e7920f Revert "Ox: Improve rpad"
This reverts commit 83c92bd4cc.
2022-05-03 17:40:47 +02:00
Martin Dosch
83c92bd4cc Ox: Improve rpad
Pad to a multiple of 200 bytes as recommended.
2022-05-03 17:35:46 +02:00
Martin Dosch
52adb579d8 Don't capitalize error strings (staticcheck). 2022-05-03 14:20:32 +02:00
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.
2022-05-03 12:25:43 +02:00
Martin Dosch
6893307841 Fix typo in license header. 2022-05-02 17:13:50 +02:00
Martin Dosch
0e852f6b2c Ox: Improve time stamp parsing. 2022-05-02 16:35:25 +02:00
Martin Dosch
433e974a4a Clean up. 2022-05-02 16:13:00 +02:00
Martin Dosch
917dabe6af Ox: Improve rpad generation. 2022-05-02 15:07:58 +02:00
Martin Dosch
0b0feffb69 Prepare new development cycle. 2022-04-30 13:52:07 +02:00
Martin Dosch
d4de1abcc9 Release v0.4.0 2022-04-30 13:48:39 +02:00
Martin Dosch
409268aa40 Update go modules. 2022-04-30 13:42:53 +02:00
Martin Dosch
a196856f76 Ox: Improve stability of decrypting.
Accept all allowed time stamps and remove invalid xml chars from
decrypted messages.
2022-04-30 13:27:44 +02:00
Martin Dosch
10c9986e7d Ox: Add support for receiving and decrypting Ox messages. 2022-04-30 13:06:04 +02:00
Martin Dosch
7a6948bf86 Break long line. 2022-04-30 10:24:14 +02:00
Martin Dosch
ce463b9bf8 Use stamp for printing time of received messages. 2022-04-30 10:23:34 +02:00
Martin Dosch
a3e093557d Update manpage. 2022-04-29 12:04:35 +02:00
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.
2022-04-29 11:36:41 +02:00
Martin Dosch
13dc48bbb4 Remove println. 2022-04-28 17:40:39 +02:00
Martin Dosch
658ef9b653 Ox: Use crypto/rand instead of math/rand for rpad. 2022-04-28 17:39:00 +02:00
Martin Dosch
72bc564fa6 Update go modules. 2022-04-28 11:58:10 +02:00
Martin Dosch
23b2437ad1 Ox: Also publish pubkey for imported privkeys
Check whether the public key is already in pubsub,
if not publish it.
2022-04-28 11:35:14 +02:00
Martin Dosch
82652ba7c6 Fix typo. 2022-04-27 14:31:44 +02:00
Martin Dosch
b092039ac3 Ox: Allow also RSA key generation. 2022-04-26 19:47:22 +02:00
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
2022-04-26 19:14:08 +02:00
Martin Dosch
07d3491c2a Just create key file if key generation is requested. 2022-04-25 22:50:31 +02:00
Martin Dosch
0279deae17 Use etree to create disco info request. 2022-04-25 21:43:18 +02:00
Martin Dosch
bfb5e28a03 Change variable names and error strings [golint]. 2022-04-25 21:29:14 +02:00
Martin Dosch
4c77a043b3 Code cleanup. 2022-04-25 21:14:40 +02:00
Martin Dosch
4ce9daec09 Update changelog. 2022-04-25 16:55:49 +02:00
Martin Dosch
56bab555b7 Fix typo. 2022-04-25 16:49:03 +02:00
Martin Dosch
a82c5541ad Update go modules. 2022-04-25 16:38:47 +02:00
Martin Dosch
d3cdd71f03 Move from encoding/xml to etree. 2022-04-25 11:59:26 +02:00
Martin Dosch
8369d28f9e Remove debug println… 2022-04-24 01:45:55 +02:00
Martin Dosch
03f744a886 Change from encoding/xml to etree. 2022-04-24 01:45:20 +02:00
Martin Dosch
8aab6810d2 Change from encoding/xml to etree. 2022-04-24 01:20:39 +02:00
Martin Dosch
8764f03eec Change from encoding/xml to etree. 2022-04-24 00:56:44 +02:00
Martin Dosch
dd4a9c9bed Fix Ox encryption. 2022-04-24 00:33:17 +02:00
Martin Dosch
28c5884044 Change from encoding/xml to etree. 2022-04-23 23:59:19 +02:00