aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-pgp-context.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-09-30 07:47:04 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-09-30 07:47:04 +0800
commitb940ba617f427ca4b31b576c3b3bbc4e0f3ce8c8 (patch)
treed683689328b4b2d9ffc5b2f22f7dbb1def96836a /camel/camel-pgp-context.c
parent004a5970f7936716b0740ef68645cbf71b99389a (diff)
downloadgsoc2013-evolution-b940ba617f427ca4b31b576c3b3bbc4e0f3ce8c8.tar.gz
gsoc2013-evolution-b940ba617f427ca4b31b576c3b3bbc4e0f3ce8c8.tar.zst
gsoc2013-evolution-b940ba617f427ca4b31b576c3b3bbc4e0f3ce8c8.zip
Add --no-secmem-warning and --no-greeting to the gpg command-line options.
2001-09-29 Jeffrey Stedfast <fejj@ximian.com> * camel-pgp-context.c (pgp_sign): Add --no-secmem-warning and --no-greeting to the gpg command-line options. (pgp_clearsign): Same. (pgp_verify): Here too. (pgp_encrypt): And here. (pgp_decrypt): And finally here. svn path=/trunk/; revision=13251
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r--camel/camel-pgp-context.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c
index 5983dd71bb..9a5fa74e0e 100644
--- a/camel/camel-pgp-context.c
+++ b/camel/camel-pgp-context.c
@@ -573,6 +573,8 @@ pgp_sign (CamelCipherContext *ctx, const char *userid, CamelCipherHash hash,
}
argv[i++] = "--verbose";
+ argv[i++] = "--no-secmem-warning";
+ argv[i++] = "--no-greeting";
argv[i++] = "--yes";
argv[i++] = "--batch";
@@ -745,6 +747,8 @@ pgp_clearsign (CamelCipherContext *ctx, const char *userid, CamelCipherHash hash
}
argv[i++] = "--verbose";
+ argv[i++] = "--no-secmem-warning";
+ argv[i++] = "--no-greeting";
argv[i++] = "--yes";
argv[i++] = "--batch";
@@ -913,6 +917,8 @@ pgp_verify (CamelCipherContext *ctx, CamelCipherHash hash, CamelStream *istream,
argv[i++] = "gpg";
argv[i++] = "--verbose";
+ argv[i++] = "--no-secmem-warning";
+ argv[i++] = "--no-greeting";
argv[i++] = "--yes";
argv[i++] = "--batch";
@@ -1105,6 +1111,8 @@ pgp_encrypt (CamelCipherContext *ctx, gboolean sign, const char *userid, GPtrArr
g_ptr_array_add (argv, "gpg");
g_ptr_array_add (argv, "--verbose");
+ 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, "--batch");
@@ -1278,7 +1286,10 @@ pgp_decrypt (CamelCipherContext *ctx, CamelStream *istream,
switch (context->priv->type) {
case CAMEL_PGP_TYPE_GPG:
argv[i++] = "gpg";
+
argv[i++] = "--verbose";
+ argv[i++] = "--no-secmem-warning";
+ argv[i++] = "--no-greeting";
argv[i++] = "--yes";
argv[i++] = "--batch";