about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-03-29 21:24:37 +0100
committerJames Booth <boothj5@gmail.com>2016-03-29 21:24:37 +0100
commit7b138b71db8cabfd228ecf61b406fe194aee19fb (patch)
treee4bf322bba2ad93e109b69e3eeff15ec328bc48d /src/xmpp
parent18555ffcb431adab1f0968ed49d5cc66b9847205 (diff)
downloadprofani-tty-7b138b71db8cabfd228ecf61b406fe194aee19fb.tar.gz
PGP: Also encrypt using sender public key
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index e40f8ff1..4ac84756 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -163,7 +163,7 @@ message_send_chat_pgp(const char *const barejid, const char *const msg)
     ProfAccount *account = accounts_get_account(account_name);
     if (account->pgp_keyid) {
         Jid *jidp = jid_create(jid);
-        char *encrypted = p_gpg_encrypt(jidp->barejid, msg);
+        char *encrypted = p_gpg_encrypt(jidp->barejid, msg, account->pgp_keyid);
         if (encrypted) {
             message = stanza_create_message(ctx, id, jid, STANZA_TYPE_CHAT, "This message is encrypted.");
             xmpp_stanza_t *x = xmpp_stanza_new(ctx);