diff options
author | DebXWoody <stefan@debxwoody.de> | 2020-06-21 09:43:42 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-06-29 19:05:41 +0200 |
commit | 2c94ee5a88f64332a3f41f41a4d314fc52200e31 (patch) | |
tree | 6209fd4796609a7706f950b18a9bb652c6c137fb /src/xmpp/xmpp.h | |
parent | 3afd854dc862696c4842b2ed93efcad44d617910 (diff) | |
download | profani-tty-2c94ee5a88f64332a3f41f41a4d314fc52200e31.tar.gz |
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
Diffstat (limited to 'src/xmpp/xmpp.h')
-rw-r--r-- | src/xmpp/xmpp.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xmpp/xmpp.h b/src/xmpp/xmpp.h index 1444cffe..c097387b 100644 --- a/src/xmpp/xmpp.h +++ b/src/xmpp/xmpp.h @@ -126,7 +126,8 @@ typedef enum { PROF_MSG_ENC_NONE, PROF_MSG_ENC_OTR, PROF_MSG_ENC_PGP, - PROF_MSG_ENC_OMEMO + PROF_MSG_ENC_OMEMO, + PROF_MSG_ENC_OX } prof_enc_t; typedef enum { @@ -192,6 +193,8 @@ const char* connection_get_profanity_identifier(void); char* message_send_chat(const char *const barejid, const char *const msg, const char *const oob_url, gboolean request_receipt, const char *const replace_id); char* message_send_chat_otr(const char *const barejid, const char *const msg, gboolean request_receipt, const char *const replace_id); char* message_send_chat_pgp(const char *const barejid, const char *const msg, gboolean request_receipt, const char *const replace_id); +// XEP-0373: OpenPGP for XMPP +char* message_send_chat_ox(const char *const barejid, const char *const msg, gboolean request_receipt, const char *const replace_id); char* message_send_chat_omemo(const char *const jid, uint32_t sid, GList *keys, const unsigned char *const iv, size_t iv_len, const unsigned char *const ciphertext, size_t ciphertext_len, gboolean request_receipt, gboolean muc, const char *const replace_id); char* message_send_private(const char *const fulljid, const char *const msg, const char *const oob_url); char* message_send_groupchat(const char *const roomjid, const char *const msg, const char *const oob_url, const char *const replace_id); |