Martin Dosch
dd9566eaee
Move string validation into own helper function.
2022-11-05 12:40:40 +01:00
Martin Dosch
cb033bbf59
Improve error handling in XML parsing.
2022-09-02 11:05:42 +02:00
Martin Dosch
ce8f783301
Ox: Don't encrypt empty messages.
2022-07-04 16:20:17 +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
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
0e852f6b2c
Ox: Improve time stamp parsing.
2022-05-02 16:35:25 +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
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
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
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
bfb5e28a03
Change variable names and error strings [golint].
2022-04-25 21:29:14 +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
Martin Dosch
11cf616e99
Change from encoding/xml to etree.
2022-04-23 23:34:03 +02:00
Martin Dosch
5d36173be7
Use proper variable names for etree xml.
2022-04-23 13:19:42 +02:00
Martin Dosch
aa8e79aa88
Ox: Add store hint.
2022-04-22 13:22:37 +02:00
Martin Dosch
33066fea8a
Ox: Remove from
...
The server will add it anyway so don't perform
unnecessary tasks, also it's not in XEP-0373
examples.
2022-04-21 19:06:16 +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
d25294add7
Ox: Cache public keys.
2022-04-18 17:14:03 +02:00
Martin Dosch
edc35dd8df
Fix file opening.
2022-04-18 14:43:50 +02:00
Martin Dosch
5124dbb1e7
Set MaxItems for keylist request to 1.
2022-04-18 14:12:40 +02:00
Martin Dosch
428bb86de2
Ox: Add private key import.
2022-04-18 11:16:41 +02:00
Martin Dosch
20953ab1ac
Move file reading into own helper func.
2022-04-18 10:16:00 +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