Debian Codegraph @

debian/patches/singpolyma-0102-Add-discovery-information-for-OpenPGP-support.patch

raw
1 From 6f4cca5148df764979dc1d13d6b786f68c509f90 Mon Sep 17 00:00:00 2001
2 From: Stephen Paul Weber <[email protected]>
3 Date: Wed, 18 Mar 2015 09:55:59 -0500
4 Subject: [PATCH 02/10] Add discovery information for OpenPGP support
5
6 ---
7 src/core/protocol.c | 3 +++
8 1 file changed, 3 insertions(+)
9
10 diff --git a/src/core/protocol.c b/src/core/protocol.c
11 index ba89160..10626e5 100644
12 --- a/src/core/protocol.c
13 +++ b/src/core/protocol.c
14 @@ -22,6 +22,7 @@
15 #include "xmpp-servers.h"
16 #include "rosters-tools.h"
17 #include "tools.h"
18 +#include "xep/disco.h"
19
20 char *pgp_passwd = NULL;
21
22 @@ -62,6 +63,8 @@ sig_set_presence(XMPP_SERVER_REC *server, const int show, const char *status,
23 if((pgp_keyid = settings_get_str("xmpp_pgp"))) {
24 LmMessageNode *x;
25 char *signature = call_gpg("-ab", str, NULL, 0, 1);
26 + disco_add_feature("jabber:x:signed");
27 + disco_add_feature("jabber:x:encrypted");
28
29 if(signature) {
30 x = lm_message_node_add_child(lmsg->node, "x", signature);
31 --
32 2.1.4
33