Bugfixes for OX implementation

* autocomplete for /ox discover
 * fixed help description
 * Implemented /ox char command
 * Validated KeyID length
This commit is contained in:
DebXWoody
2021-06-28 21:28:58 +02:00
parent 49a0d97a43
commit 2a011e69ac
5 changed files with 73 additions and 43 deletions

View File

@@ -1717,10 +1717,11 @@ static struct cmd_t command_defs[] = {
"/ox char <char>",
"/ox sendfile on|off",
"/ox announce <file>",
"/ox discover",
"/ox request <jid>")
"/ox discover <jid>",
"/ox request <jid> <keyid>")
CMD_DESC(
"OpenPGP (OX) commands to manage keys, and perform PGP encryption during chat sessions. ")
"OpenPGP (OX) commands to manage keys, and perform OpenPGP encryption during chat sessions."
"Your key need a OpenPGP UI with xmpp:local@domain.tld as name.")
CMD_ARGS(
{ "keys", "List all keys known to the system." },
{ "contacts", "Show contacts with assigned public keys." },
@@ -1730,7 +1731,7 @@ static struct cmd_t command_defs[] = {
{ "log redact", "Log PGP encrypted messages, but replace the contents with [redacted]. This is the default." },
{ "char <char>", "Set the character to be displayed next to PGP encrypted messages." },
{ "announce <file>", "Announce a public key by pushing it on the XMPP Server" },
{ "discover <jid>", "Discover public keys of a jid " },
{ "discover <jid>", "Discover public keys of a jid. The keyids will be displayed" },
{ "request <jid>", "Request public keys" },
{ "sendfile on|off", "Allow /sendfile to send unencrypted files while otherwise using PGP." })
CMD_EXAMPLES(