summaryrefslogtreecommitdiff
path: root/src/rexmpp_console.c
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2021-02-08 22:29:28 +0300
committerdefanor <defanor@uberspace.net>2021-02-08 22:29:28 +0300
commitedb0f157d4cd4fd16481bce5013b7663fa219dac (patch)
tree4dfa3e23fd5273887c271db25c9558bc18e4fb57 /src/rexmpp_console.c
parentdf73e8fe84d3c2c544d12ffa78b310544bb395bb (diff)
Adjust and document XEP-0373 API
Diffstat (limited to 'src/rexmpp_console.c')
-rw-r--r--src/rexmpp_console.c6
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);