diff options
author | defanor <defanor@uberspace.net> | 2021-02-08 22:29:28 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-02-08 22:29:28 +0300 |
commit | edb0f157d4cd4fd16481bce5013b7663fa219dac (patch) | |
tree | 4dfa3e23fd5273887c271db25c9558bc18e4fb57 /src/rexmpp_console.c | |
parent | df73e8fe84d3c2c544d12ffa78b310544bb395bb (diff) |
Adjust and document XEP-0373 API
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 a2f14a8..1211129 100644 --- a/src/rexmpp_console.c +++ b/src/rexmpp_console.c @@ -304,11 +304,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_encrypt_sign(s, body, rcpt); + b64 = rexmpp_openpgp_payload(s, body, rcpt, REXMPP_OX_SIGNCRYPT); } else if (strcmp(word, "sign") == 0) { - b64 = rexmpp_openpgp_sign(s, body, rcpt); + b64 = rexmpp_openpgp_payload(s, body, rcpt, REXMPP_OX_SIGN); } else if (strcmp(word, "crypt") == 0) { - b64 = rexmpp_openpgp_encrypt(s, body, rcpt); + b64 = rexmpp_openpgp_payload(s, body, rcpt, REXMPP_OX_CRYPT); } xmlNodePtr openpgp = xmlNewNode(NULL, "openpgp"); openpgp->ns = xmlNewNs(openpgp, "urn:xmpp:openpgp:0", NULL); |