aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-pgp-context.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-02-15 07:44:21 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-02-15 07:44:21 +0800
commit924d62f6d8dc03ee2d72d607f66f976ebbecd9c4 (patch)
tree992e516fb3445dc021f0608f61ef3294b8c37394 /camel/camel-pgp-context.c
parent2cbdc27d35f742c208fd7ce264ab9574fea4d824 (diff)
downloadgsoc2013-evolution-924d62f6d8dc03ee2d72d607f66f976ebbecd9c4.tar.gz
gsoc2013-evolution-924d62f6d8dc03ee2d72d607f66f976ebbecd9c4.tar.zst
gsoc2013-evolution-924d62f6d8dc03ee2d72d607f66f976ebbecd9c4.zip
Pass --always-trust to gpg (requested by users). (pgp_clearsign): Same.
2002-02-14 Jeffrey Stedfast <fejj@ximian.com> * camel-pgp-context.c (pgp_sign): Pass --always-trust to gpg (requested by users). (pgp_clearsign): Same. (pgp_encrypt): Here too. svn path=/trunk/; revision=15731
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r--camel/camel-pgp-context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c
index 16b3ea72b7..85354dca7f 100644
--- a/camel/camel-pgp-context.c
+++ b/camel/camel-pgp-context.c
@@ -626,6 +626,7 @@ pgp_sign (CamelCipherContext *ctx, const char *userid, CamelCipherHash hash,
argv[i++] = "--no-secmem-warning";
argv[i++] = "--no-greeting";
argv[i++] = "--yes";
+ argv[i++] = "--always-trust";
argv[i++] = "--batch";
argv[i++] = "--armor";
@@ -727,7 +728,7 @@ pgp_clearsign (CamelCipherContext *ctx, const char *userid, CamelCipherHash hash
CamelPgpContext *context = CAMEL_PGP_CONTEXT (ctx);
GByteArray *plaintext;
CamelStream *stream;
- char *argv[15];
+ char *argv[20];
char *ciphertext = NULL;
char *diagnostics = NULL;
char *passphrase = NULL;
@@ -806,6 +807,7 @@ pgp_clearsign (CamelCipherContext *ctx, const char *userid, CamelCipherHash hash
argv[i++] = "--no-secmem-warning";
argv[i++] = "--no-greeting";
argv[i++] = "--yes";
+ argv[i++] = "--always-trust";
argv[i++] = "--batch";
argv[i++] = "--armor";
@@ -1181,6 +1183,7 @@ pgp_encrypt (CamelCipherContext *ctx, gboolean sign, const char *userid, GPtrArr
g_ptr_array_add (argv, "--no-secmem-warning");
g_ptr_array_add (argv, "--no-greeting");
g_ptr_array_add (argv, "--yes");
+ g_ptr_array_add (argv, "--always-trust");
g_ptr_array_add (argv, "--batch");
g_ptr_array_add (argv, "--armor");