Package: irssi-plugin-xmpp / 0.54-3

singpolyma-0016-trust-keys.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 6e82d11a2414edff0b01965fdae501bccfcb79b8 Mon Sep 17 00:00:00 2001
From: Stephen Paul Weber <singpolyma@singpolyma.net>
Date: Sun, 24 Apr 2011 15:07:32 -0500
Subject: [PATCH 16/18] trust keys

---
 src/core/tools.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/src/core/tools.c
+++ b/src/core/tools.c
@@ -66,8 +66,8 @@
 		if(write(tmp2_fd, input2, strlen(input2)) < 0) goto pgp_error;
 	}
 
-	cmd = malloc(sizeof("gpg -u '' --passphrase-fd '' -qo - --batch " \
-	              "--no-tty '' '' 2>/dev/null") \
+	cmd = malloc(sizeof("gpg -u '' --passphrase-fd '' --trust-model always" \
+	              " -qo - --batch --no-tty '' '' 2>/dev/null") \
 	              +strlen(switches)+8+strlen(tmp_path)+ \
 	              (tmp2_path ? strlen(tmp2_path) : 0));
 	if(keyid) {
@@ -76,7 +76,7 @@
 		strcpy(cmd, "gpg ");
 	}
 	strcat(cmd, switches);
-	strcat(cmd, " -qo - --batch --no-tty '");
+	strcat(cmd, " --trust-model always -qo - --batch --no-tty '");
 	strcat(cmd, tmp_path);
 	strcat(cmd, "' ");