mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 00:56:21 +00:00
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
This commit is contained in:
committed by
Michael Vetter
parent
5e87b0dc51
commit
5a17957253
@@ -89,6 +89,7 @@
|
||||
|
||||
#ifdef HAVE_LIBGPGME
|
||||
#include "pgp/gpg.h"
|
||||
#include "xmpp/ox.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_OMEMO
|
||||
@@ -7570,9 +7571,9 @@ cmd_ox(ProfWin *window, const char *const command, gchar **args)
|
||||
chatwin->is_ox = TRUE;
|
||||
win_println(window, THEME_DEFAULT, "!", "OX encryption enabled.");
|
||||
return TRUE;
|
||||
} else if (g_strcmp0(args[0], "push") == 0) {
|
||||
} else if (g_strcmp0(args[0], "announce") == 0) {
|
||||
if( args[1] ) {
|
||||
cons_show("Push file...%s ", args[1] );
|
||||
ox_announce_public_key( args[1] );
|
||||
} else {
|
||||
cons_show("Filename is required");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user