summaryrefslogtreecommitdiff
path: root/src/rexmpp_console.c
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2021-02-07 18:49:03 +0300
committerdefanor <defanor@uberspace.net>2021-02-07 18:49:03 +0300
commit4373a677b753297ea59b1c0f80851bd72648c960 (patch)
tree90eecc3a27cb7a300218bcd3f1ffdabbdf64126b /src/rexmpp_console.c
parent8828545f084a5b295ed73a7c8b1655e440f39b71 (diff)
Add the rexmpp_openpgp_retract_key function
Diffstat (limited to 'src/rexmpp_console.c')
-rw-r--r--src/rexmpp_console.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rexmpp_console.c b/src/rexmpp_console.c
index 05f28a0..7884455 100644
--- a/src/rexmpp_console.c
+++ b/src/rexmpp_console.c
@@ -230,6 +230,7 @@ void rexmpp_console_feed (rexmpp_t *s, char *str, ssize_t str_len) {
"gtell <muc jid> <message>\n"
"signcrypt <jid> <message>\n"
"publish-key <fingerprint>\n"
+ "retract-key <fingerprint>\n"
"join <conference> [as] <nick>\n"
"leave <conference> [as] <nick>\n"
"roster list\n"
@@ -254,6 +255,10 @@ void rexmpp_console_feed (rexmpp_t *s, char *str, ssize_t str_len) {
char *fingerprint = strtok_r(NULL, " ", &words_save_ptr);
rexmpp_openpgp_publish_key(s, fingerprint);
}
+ if (! strcmp(word, "retract-key")) {
+ char *fingerprint = strtok_r(NULL, " ", &words_save_ptr);
+ rexmpp_openpgp_retract_key(s, fingerprint);
+ }
if (! strcmp(word, "tell")) {
jid_str = strtok_r(NULL, " ", &words_save_ptr);