about summary refs log tree commit diff stats
path: root/src/xmpp/stanza.h
diff options
context:
space:
mode:
authorDebXWoody <stefan@debxwoody.de>2020-07-05 09:28:51 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-06 13:19:18 +0200
commit5a179572535805022580b264a99df60a47cb935d (patch)
treeb4236a482866d76fb435a40e74104c7ea878ce25 /src/xmpp/stanza.h
parent5e87b0dc51c941bcc819736c93ef06b9e24517a6 (diff)
downloadprofani-tty-5a179572535805022580b264a99df60a47cb935d.tar.gz
OX: Announce public key on PEP
src/pgp/gpg.c:p_ox_gpg_readkey

Used to read a public key from a file. The function will return the fingerprint
of the file and the base64 encoded key.

src/xmpp/ox.[hc]

ox_announce_public_key(const char* const filename) can be called from the /ox
announce <filename> command. The key within the file will be pushed on PEP and
the Metadata node will be set.

Issue: #1331
Diffstat (limited to 'src/xmpp/stanza.h')
-rw-r--r--src/xmpp/stanza.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xmpp/stanza.h b/src/xmpp/stanza.h
index 37cc8dc9..5910a7d9 100644
--- a/src/xmpp/stanza.h
+++ b/src/xmpp/stanza.h
@@ -64,6 +64,10 @@
 #define STANZA_NAME_X "x"
 // XEP-0373: OpenPGP for XMPP
 #define STANZA_NAME_OPENPGP "openpgp"
+#define STANZA_NAME_PUPKEY "pubkey"
+#define STANZA_NAME_PUBLIC_KEYS_LIST "public-keys-list"
+#define STANZA_NAME_PUBKEY_METADATA "pubkey-metadata"
+#define STANZA_NAME_DATA "data"
 #define STANZA_NAME_SHOW "show"
 #define STANZA_NAME_STATUS "status"
 #define STANZA_NAME_IQ "iq"
@@ -167,6 +171,9 @@
 #define STANZA_ATTR_AUTOJOIN "autojoin"
 #define STANZA_ATTR_PASSWORD "password"
 #define STANZA_ATTR_STATUS "status"
+#define STANZA_ATTR_DATE "date"
+#define STANZA_ATTR_V4_FINGERPRINT "v4-fingerprint"
+
 
 #define STANZA_TEXT_AWAY "away"
 #define STANZA_TEXT_DND "dnd"
@@ -198,6 +205,7 @@
 #define STANZA_NS_ENCRYPTED "jabber:x:encrypted"
 // XEP-0373: OpenPGP for XMPP
 #define STANZA_NS_OPENPGP_0 "urn:xmpp:openpgp:0"
+#define STANZA_NS_OPENPGP_0_PUBLIC_KEYS "urn:xmpp:openpgp:0:public-keys"
 #define STANZA_NS_HTTP_UPLOAD "urn:xmpp:http:upload"
 #define STANZA_NS_X_OOB "jabber:x:oob"
 #define STANZA_NS_BLOCKING "urn:xmpp:blocking"