diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-10-17 11:04:11 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-10-17 11:04:11 +0800 |
commit | 5f38b1e898698b939d76419cd1fa970effb38ecd (patch) | |
tree | fc5af7b1233dc425fe2d6d72d428126caf5dccdb /mail/mail-format.c | |
parent | 0372b96a72e19185a1e2d370d92610b3bc3e9090 (diff) | |
download | gsoc2013-evolution-5f38b1e898698b939d76419cd1fa970effb38ecd.tar.gz gsoc2013-evolution-5f38b1e898698b939d76419cd1fa970effb38ecd.tar.zst gsoc2013-evolution-5f38b1e898698b939d76419cd1fa970effb38ecd.zip |
Don't need to pass a path to camel_gpg_context_new () anymore.
2002-10-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_signed): Don't need to pass a
path to camel_gpg_context_new () anymore.
(mail_get_message_body): Same here.
(handle_multipart_encrypted): Use camel_gpg_context_new () instead
of mail_crypto_get_pgp_cipher_context ().
* mail-preferences.c (mail_preferences_construct): There's no
security tab anymore.
(mail_preferences_apply): No need to save any pgp config data,
there's nothing to configure!
* mail-crypto.c (mail_crypto_get_pgp_cipher_context): Updated to
not pass a pgp path into camel_gpg_context_new ().
* mail-config.c (mail_config_clear): No need to free a pgp_path
variable anymore, we don't need one.
(config_read): Don't read in a pgp-path or pgp-type anymore.
(mail_config_write_on_exit): Don't save a pgp-path or pgp-type
anymore, we don't use them.
(pgpopen): Removed.
(pgpclose): Removed.
(mail_config_pgp_type_detect_from_path): Removed.
(auto_detect_pgp_variables): Removed.
(mail_config_get_pgp_type): Removed.
(mail_config_set_pgp_type): Removed.
(mail_config_get_pgp_path): Removed.
(mail_config_set_pgp_path): Removed.
svn path=/trunk/; revision=18384
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r-- | mail/mail-format.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c index dc63788b66..451b8a1ce1 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -1759,7 +1759,7 @@ handle_multipart_encrypted (CamelMimePart *part, const char *mime_type, mpe = CAMEL_MULTIPART_ENCRYPTED (wrapper); camel_exception_init (&ex); - cipher = mail_crypto_get_pgp_cipher_context (NULL); + cipher = camel_gpg_context_new (session); mime_part = camel_multipart_encrypted_decrypt (mpe, cipher, &ex); camel_object_unref (cipher); @@ -1847,7 +1847,7 @@ handle_multipart_signed (CamelMimePart *part, const char *mime_type, /* Write out the verification results */ /* TODO: use the right context for the right message ... */ camel_exception_init (&ex); - cipher = camel_gpg_context_new (session, mail_config_get_pgp_path ()); + cipher = camel_gpg_context_new (session); if (cipher) { valid = camel_multipart_signed_verify (mps, cipher, &ex); camel_object_unref (CAMEL_OBJECT (cipher)); @@ -2375,7 +2375,7 @@ mail_get_message_body (CamelDataWrapper *data, gboolean want_plain, gboolean cit mp = CAMEL_MULTIPART (data); if (CAMEL_IS_MULTIPART_ENCRYPTED (mp)) { - cipher = camel_gpg_context_new (session, mail_config_get_pgp_path ()); + cipher = camel_gpg_context_new (session); subpart = camel_multipart_encrypted_decrypt (CAMEL_MULTIPART_ENCRYPTED (mp), cipher, NULL); if (!subpart) |