Commit Graph

52 Commits

Author SHA1 Message Date
Martin Dosch
a912408d16
Wrap and unwrap errors. 2023-06-07 22:28:01 +02:00
Martin Dosch
ea4b1a7de4
Start wrapping errors. 2023-06-06 22:09:59 +02:00
Martin Dosch
61027844d2
[golangci-lint]: Don't use magic numbers. 2023-06-06 10:47:41 +02:00
Martin Dosch
b8c7876b77
Remove unused iqc. 2023-06-06 10:47:41 +02:00
Martin Dosch
620130aded
gofumpt 2023-06-06 10:47:40 +02:00
Martin Dosch
f173bcf698
[golangci-lint]: Remove unnecessary newlines. 2023-06-04 16:49:50 +02:00
Martin Dosch
b9610c81a4
[golangci-lint]: Check for errors on file.Close(). 2023-06-04 16:39:00 +02:00
Martin Dosch
de7312a313
[golangci-lint]: Remove unnecessary newlines. 2023-06-04 16:20:10 +02:00
Martin Dosch
5738c9989a
[golangci-lint]: Use constant for chat. 2023-06-04 15:25:15 +02:00
Martin Dosch
85f2ad7409
[golangci-lint]: Use constant for groupchat. 2023-06-04 15:23:40 +02:00
Martin Dosch
437cd7eec6
Remove copyright years. 2023-05-11 20:06:23 +02:00
Martin Dosch
97c5b7013f
Print --help output to stdout. 2023-02-18 18:56:07 +01:00
Martin Dosch
4fbd7efb91
Make sending of OOB URLs more robust. 2023-02-18 16:24:46 +01:00
Martin Dosch
d481aa688c
Add support for sending files OOB. 2023-02-18 15:42:04 +01:00
Martin Dosch
a6c0fe3ca8
Add short option -h for http-upload. 2022-11-11 17:54:00 +01:00
Martin Dosch
19ee89197e
Remove unnecessary if condition. 2022-11-06 14:38:31 +01:00
Martin Dosch
c8dde8963f
Fix Ox key generation. 2022-11-06 14:30:22 +01:00
Martin Dosch
77e6fe0429
Add previously lost comment. 2022-11-05 13:22:35 +01:00
Martin Dosch
dd9566eaee
Move string validation into own helper function. 2022-11-05 12:40:40 +01:00
Martin Dosch
03054643dc
Improve interactive mode. 2022-10-16 10:57:35 +02:00
Martin Dosch
612a43566b
Fix http-upload. 2022-09-29 20:02:05 +02:00
Martin Dosch
36b4d06e88
Don't check for empty message in listen mode. 2022-09-29 15:35:38 +02:00
Martin Dosch
9706f7d5c1
Don't connect to the XMPP server if the message is empty 2022-09-29 14:38:33 +02:00
Martin Dosch
8d27a72b39
Use resource as alias if specified and no alias is specified. 2022-08-12 12:42:29 +02:00
Martin Dosch
d7cfbcfb8f Deprecate resource setting and introduce alias setting. 2022-08-06 11:52:47 +02:00
Martin Dosch
f0a4bcf10c Reply to IQs. 2022-07-26 22:28:04 +02:00
Martin Dosch
c187b83314 Add new lines to stanzas created by go-sendxmpp itself. 2022-07-15 11:27:36 +02:00
Martin Dosch
7623d121aa Added more checks for empty messages. 2022-07-04 17:16:40 +02:00
Martin Dosch
5326b2b558 Ox: Improve error messages for failed key requests. 2022-06-28 18:31:03 +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
f26a91d965 Add possibility to delete Ox nodes. 2022-05-04 11:18:24 +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
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
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
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
644b1f809d Use shorter random string for resource. 2022-04-23 23:40:15 +02:00
Martin Dosch
7877f3d498 Assure that no unencrypted messages are sent while using --ox. 2022-04-21 18:54:55 +02:00
Martin Dosch
19dee4b8fd Ox: (Hopefully) support multiple pubkeys in result.
See https://xmpp.org/extensions/xep-0373.html#discover-pubkey
2022-04-21 17:28:59 +02:00
Martin Dosch
b5557ab251 Only fetch ox keys if --ox is used. 2022-04-18 14:59:29 +02:00
Martin Dosch
428bb86de2 Ox: Add private key import. 2022-04-18 11:16:41 +02:00
Martin Dosch
1922d0a1b0 Ox: Don't try to send Ox messages if no key is present. 2022-04-17 17:34:28 +02:00
Martin Dosch
e9e0d8c735 Add experimental Ox (OpenPGP for XMPP) support. 2022-04-17 17:16:29 +02:00
Martin Dosch
9b9fcedf25 Move constants in separate file. 2022-04-10 14:01:23 +08:00
Martin Dosch
47a4c19cfb Prepare new development cycle. 2022-03-21 09:17:28 +08:00
Martin Dosch
910f1976d8 Release v0.3.0 2022-03-21 09:16:26 +08:00