aboutsummaryrefslogtreecommitdiffstats
path: root/mail/openpgp-utils.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-04 05:15:50 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-04 05:15:50 +0800
commit942539cd7ddae996696d71627687074deeabb8ef (patch)
treedc1b1b64e5b5b896df86146962a0063138628d00 /mail/openpgp-utils.c
parent94018cdd4d1c5ffa7b5a977e22816c35f86a00ac (diff)
downloadgsoc2013-evolution-942539cd7ddae996696d71627687074deeabb8ef.tar
gsoc2013-evolution-942539cd7ddae996696d71627687074deeabb8ef.tar.gz
gsoc2013-evolution-942539cd7ddae996696d71627687074deeabb8ef.tar.bz2
gsoc2013-evolution-942539cd7ddae996696d71627687074deeabb8ef.tar.lz
gsoc2013-evolution-942539cd7ddae996696d71627687074deeabb8ef.tar.xz
gsoc2013-evolution-942539cd7ddae996696d71627687074deeabb8ef.tar.zst
gsoc2013-evolution-942539cd7ddae996696d71627687074deeabb8ef.zip
Add --no-tty argument to gpg.
2001-04-03 Jeffrey Stedfast <fejj@ximian.com> * openpgp-utils.c (openpgp_encrypt): Add --no-tty argument to gpg. svn path=/trunk/; revision=9141
Diffstat (limited to 'mail/openpgp-utils.c')
-rw-r--r--mail/openpgp-utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/openpgp-utils.c b/mail/openpgp-utils.c
index 4489f463ec..1377793b6a 100644
--- a/mail/openpgp-utils.c
+++ b/mail/openpgp-utils.c
@@ -505,6 +505,7 @@ openpgp_decrypt (const gchar *ciphertext, gint cipherlen, gint *outlen, CamelExc
putenv (passwd_fd);
break;
default:
+ g_assert_not_reached ();
break;
}
@@ -617,6 +618,7 @@ openpgp_encrypt (const gchar *in, gint inlen, const GPtrArray *recipients,
g_ptr_array_add (argv, "--verbose");
g_ptr_array_add (argv, "--yes");
g_ptr_array_add (argv, "--batch");
+ g_ptr_array_add (argv, "--no-tty");
g_ptr_array_add (argv, "--armor");
@@ -701,6 +703,7 @@ openpgp_encrypt (const gchar *in, gint inlen, const GPtrArray *recipients,
}
break;
default:
+ g_assert_not_reached ();
break;
}
@@ -860,6 +863,7 @@ openpgp_clearsign (const gchar *plaintext, const gchar *userid,
putenv (passwd_fd);
break;
default:
+ g_assert_not_reached ();
break;
}
@@ -1012,6 +1016,7 @@ openpgp_sign (const gchar *in, gint inlen, const gchar *userid,
putenv (passwd_fd);
break;
default:
+ g_assert_not_reached ();
break;
}
@@ -1132,6 +1137,7 @@ openpgp_verify (const gchar *in, gint inlen, const gchar *sigin, gint siglen, Ca
break;
default:
+ g_assert_not_reached ();
break;
}