aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-pgp-context.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-06 04:37:30 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-06 04:37:30 +0800
commit652c3e8225f363180269634afd6a31d00b230ce2 (patch)
tree7a2652cd0e99807ac1fcc62a45ba615703c5b9db /camel/camel-pgp-context.c
parent02ed2b57e1dc789a73e3e3b267f6f7f7be115019 (diff)
downloadgsoc2013-evolution-652c3e8225f363180269634afd6a31d00b230ce2.tar
gsoc2013-evolution-652c3e8225f363180269634afd6a31d00b230ce2.tar.gz
gsoc2013-evolution-652c3e8225f363180269634afd6a31d00b230ce2.tar.bz2
gsoc2013-evolution-652c3e8225f363180269634afd6a31d00b230ce2.tar.lz
gsoc2013-evolution-652c3e8225f363180269634afd6a31d00b230ce2.tar.xz
gsoc2013-evolution-652c3e8225f363180269634afd6a31d00b230ce2.tar.zst
gsoc2013-evolution-652c3e8225f363180269634afd6a31d00b230ce2.zip
Send the --no-auto-key-retrieve argument to gpg if we are in offline mode
2001-07-05 Jeffrey Stedfast <fejj@ximian.com> * camel-pgp-context.c (pgp_verify): Send the --no-auto-key-retrieve argument to gpg if we are in offline mode so that we don't have to worry about gpg hanging if it can't connect to the key servers, because now it shouldn't even attempt to. svn path=/trunk/; revision=10831
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r--camel/camel-pgp-context.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c
index 6651b0b3d6..881cc0c16a 100644
--- a/camel/camel-pgp-context.c
+++ b/camel/camel-pgp-context.c
@@ -388,7 +388,7 @@ crypto_exec_with_passwd (const char *path, char *argv[], const char *input, int
if (size + 4096 > alloc_size) {
alloc_size += 4096;
- buf = g_realloc (buf , alloc_size);
+ buf = g_realloc (buf, alloc_size);
}
read_len = read (op_fds[0], &buf[size],
alloc_size - size - 1);
@@ -901,7 +901,9 @@ pgp_verify (CamelCipherContext *ctx, CamelCipherHash hash, CamelStream *istream,
argv[i++] = "--verify";
argv[i++] = "--no-tty";
- argv[i++] = "--no-auto-key-retrieve";
+
+ if (!camel_session_is_online (ctx->session))
+ argv[i++] = "--no-auto-key-retrieve";
/*argv[i++] = "--verbose";*/
/*argv[i++] = "--yes";*/
/*argv[i++] = "--batch";*/