From 2c94ee5a88f64332a3f41f41a4d314fc52200e31 Mon Sep 17 00:00:00 2001 From: DebXWoody Date: Sun, 21 Jun 2020 09:43:42 +0200 Subject: Feature request - XEP-0373: OpenPGP for XMPP (OX) Basic implementation of XEP-0373: OpenPGP for XMPP. https://xmpp.org/extensions/xep-0373.html Command /ox Issue: #1331 --- src/command/cmd_defs.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'src/command/cmd_defs.c') diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 85140430..815fe9d8 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -1691,6 +1691,48 @@ static struct cmd_t command_defs[] = "/pgp char P") }, +// XEP-0373: OpenPGP for XMPP +#ifdef HAVE_LIBGPGME + { "/ox", + parse_args, 1, 3, NULL, + CMD_NOSUBFUNCS + CMD_MAINFUNC(cmd_ox) + CMD_TAGS( + CMD_TAG_CHAT, + CMD_TAG_UI) + CMD_SYN( + "/ox keys", + "/ox contacts", + "/ox start []", + "/ox end", + "/ox log on|off|redact", + "/ox char ", + "/ox sendfile on|off", + "/ox announce ", + "/ox discover", + "/ox request ") + CMD_DESC( + "OpenPGP (OX) commands to manage keys, and perform PGP encryption during chat sessions. ") + CMD_ARGS( + { "keys", "List all keys known to the system." }, + { "contacts", "Show contacts with assigned public keys." }, + { "start []", "Start PGP encrypted chat, current contact will be used if not specified." }, + { "end", "End PGP encrypted chat with the current recipient." }, + { "log on|off", "Enable or disable plaintext logging of PGP encrypted messages." }, + { "log redact", "Log PGP encrypted messages, but replace the contents with [redacted]. This is the default." }, + { "char ", "Set the character to be displayed next to PGP encrypted messages." }, + { "announce ", "Announce a public key by pushing it on the XMPP Server"}, + { "discover ", "Discover public keys of a jid "}, + { "request ", "Request public keys"}, + { "sendfile on|off", "Allow /sendfile to send unencrypted files while otherwise using PGP."}) + CMD_EXAMPLES( + "/ox log off", + "/ox start odin@valhalla.edda", + "/ox end", + "/ox char X") + }, +#endif // HAVE_LIBGPGME + { "/otr", parse_args, 1, 3, NULL, CMD_SUBFUNCS( -- cgit 1.4.1-2-gfad0