about summary refs log tree commit diff stats
path: root/src/pgp/gpg.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/pgp/gpg.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/pgp/gpg.h')
-rw-r--r--src/pgp/gpg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pgp/gpg.h b/src/pgp/gpg.h
index 3eae6032..b3202505 100644
--- a/src/pgp/gpg.h
+++ b/src/pgp/gpg.h
@@ -76,6 +76,8 @@ char* p_ox_gpg_signcrypt(const char* const sender_barejid, const char* const rec
 
 char* p_ox_gpg_decrypt(char* base64);
 
+void p_ox_gpg_readkey(const char* const filename, char** key, char** fp);
+
 /*!
  * \brief List of public keys with xmpp-URI.
  *