From 6e82d11a2414edff0b01965fdae501bccfcb79b8 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber 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, "' ");