diff options
author | defanor <defanor@uberspace.net> | 2021-03-10 02:30:15 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-03-10 02:30:15 +0300 |
commit | 6956f33f4b594804b48511229971fae3421c9642 (patch) | |
tree | bf17de6cf92676ed59b147d516015b912dad511f /src/rexmpp_console.c | |
parent | 9185f8eaa387893a4c8ef18963d2ec54b76af61d (diff) |
Allow to choose which OpenPGP keys to use for signing
Diffstat (limited to 'src/rexmpp_console.c')
-rw-r--r-- | src/rexmpp_console.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rexmpp_console.c b/src/rexmpp_console.c index ecc1338..5476f0b 100644 --- a/src/rexmpp_console.c +++ b/src/rexmpp_console.c @@ -338,11 +338,11 @@ void rexmpp_console_feed (rexmpp_t *s, char *str, ssize_t str_len) { rcpt[1] = NULL; char *b64 = NULL; if (strcmp(word, "signcrypt") == 0) { - b64 = rexmpp_openpgp_payload(s, body, rcpt, REXMPP_OX_SIGNCRYPT); + b64 = rexmpp_openpgp_payload(s, body, rcpt, NULL, REXMPP_OX_SIGNCRYPT); } else if (strcmp(word, "sign") == 0) { - b64 = rexmpp_openpgp_payload(s, body, rcpt, REXMPP_OX_SIGN); + b64 = rexmpp_openpgp_payload(s, body, rcpt, NULL, REXMPP_OX_SIGN); } else if (strcmp(word, "crypt") == 0) { - b64 = rexmpp_openpgp_payload(s, body, rcpt, REXMPP_OX_CRYPT); + b64 = rexmpp_openpgp_payload(s, body, rcpt, NULL, REXMPP_OX_CRYPT); } xmlNodePtr openpgp = xmlNewNode(NULL, "openpgp"); openpgp->ns = xmlNewNs(openpgp, "urn:xmpp:openpgp:0", NULL); |