diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-10 05:35:11 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-10 05:35:11 +0800 |
commit | 29315f8157b6cab9b8876eeea92356241970a536 (patch) | |
tree | e67e7210964457abc89897ca1dd826616f511c6b /mail/mail-crypto.c | |
parent | ebd5da4c959c595723d3d4d48cf8ef0978162177 (diff) | |
download | gsoc2013-evolution-29315f8157b6cab9b8876eeea92356241970a536.tar.gz gsoc2013-evolution-29315f8157b6cab9b8876eeea92356241970a536.tar.zst gsoc2013-evolution-29315f8157b6cab9b8876eeea92356241970a536.zip |
Update to pass in the `remember' argument when creating a new pgp context.
2001-07-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (mail_crypto_pgp_mime_part_sign): Update to pass
in the `remember' argument when creating a new pgp context.
(mail_crypto_pgp_mime_part_verify): Same.
(mail_crypto_pgp_mime_part_encrypt): And here...
(mail_crypto_pgp_mime_part_decrypt): And finally here.
* mail-config.c (mail_config_get_remember_pgp_passphrase): New.
(mail_config_set_remember_pgp_passphrase): New.
(config_read): Read in the "remember passphrase" value.
(mail_config_write_on_exit): Save the remember-passphrase value.
* mail-accounts.c (construct): Allow the user to set "Remember PGP
Passphrase".
(remember_pgp_passphrase_toggled): Set the toggle state.
svn path=/trunk/; revision=10933
Diffstat (limited to 'mail/mail-crypto.c')
-rw-r--r-- | mail/mail-crypto.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mail/mail-crypto.c b/mail/mail-crypto.c index bad81e5539..f7e003f07c 100644 --- a/mail/mail-crypto.c +++ b/mail/mail-crypto.c @@ -49,7 +49,8 @@ mail_crypto_pgp_mime_part_sign (CamelMimePart **mime_part, const char *userid, C CamelPgpContext *context; context = camel_pgp_context_new (session, mail_config_get_pgp_type (), - mail_config_get_pgp_path ()); + mail_config_get_pgp_path (), + mail_config_get_pgp_remember_pgp_passphrase ()); if (context) { camel_pgp_mime_part_sign (context, mime_part, userid, hash, ex); @@ -74,7 +75,8 @@ mail_crypto_pgp_mime_part_verify (CamelMimePart *mime_part, CamelException *ex) CamelPgpContext *context; context = camel_pgp_context_new (session, mail_config_get_pgp_type (), - mail_config_get_pgp_path ()); + mail_config_get_pgp_path (), + mail_config_get_pgp_remember_pgp_passphrase ()); if (context) { valid = camel_pgp_mime_part_verify (context, mime_part, ex); @@ -103,7 +105,8 @@ mail_crypto_pgp_mime_part_encrypt (CamelMimePart **mime_part, GPtrArray *recipie CamelPgpContext *context; context = camel_pgp_context_new (session, mail_config_get_pgp_type (), - mail_config_get_pgp_path ()); + mail_config_get_pgp_path (), + mail_config_get_pgp_remember_pgp_passphrase ()); if (context) { camel_pgp_mime_part_encrypt (context, mime_part, recipients, ex); @@ -128,7 +131,8 @@ mail_crypto_pgp_mime_part_decrypt (CamelMimePart *mime_part, CamelException *ex) CamelMimePart *part = NULL; context = camel_pgp_context_new (session, mail_config_get_pgp_type (), - mail_config_get_pgp_path ()); + mail_config_get_pgp_path (), + mail_config_get_pgp_remember_pgp_passphrase ()); if (context) { part = camel_pgp_mime_part_decrypt (context, mime_part, ex); |