From 324b1e8675ed32dcdc051a2fd916158bd02a9893 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 2 Aug 2000 02:56:48 +0000 Subject: New code to spawn off GPG/PGP to do stuff. Currently only deals with * mail-crypto.c: New code to spawn off GPG/PGP to do stuff. Currently only deals with decryption. From Nathan Thompson-Amato , with bunches of changes from me. * session.c (mail_request_dialog): Expose the password dialog to the rest of the app (for use by the GPG/PGP code). * mail-format.c (handle_text_plain): Handle special inline data types. (Currently uuencoding, BinHex, and PGP encryption.) This is not the best way to deal with it, but it works for now. (try_inline_pgp): Convert an inline PGP-encrypted message into a multipart/encrypted part. (try_inline_binhex): Convert an inline BinHex attachment into an application/mac-binhex40 part (which we currently don't deal with...) (try_uudecoding): Convert a uuencoded attachment to an application/octet-stream part. (handle_multipart_encrypted): Deal with RFC2015 MIME-encoded PGP encrypted messages. (From ndt.) * mail-display.c (mail_text_write, mail_error_write): New utility functions. * Makefile.am (evolution_mail_SOURCES): add mail-crypto.c svn path=/trunk/; revision=4466 --- mail/mail.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail/mail.h') diff --git a/mail/mail.h b/mail/mail.h index 9cf857cd7f..83f5001605 100644 --- a/mail/mail.h +++ b/mail/mail.h @@ -32,6 +32,11 @@ BonoboControl *folder_browser_factory_new_control (const char *uri); /* folder-browser */ CamelFolder *mail_uri_to_folder (const char *uri); +/* mail-crypto */ +char *mail_crypto_openpgp_decrypt (const char *ciphertext, + const char *passphrase, + CamelException *ex); +/* FIXME: add encryption & signing functions */ /* mail-format */ void mail_format_mime_message (CamelMimeMessage *mime_message, @@ -63,5 +68,6 @@ void providers_config (BonoboUIHandler *uih, void *user_data, const char *path); /* session */ void session_init (void); +char *mail_request_dialog (const char *prompt, gboolean secret, const char *key); void forget_passwords (BonoboUIHandler *uih, void *user_data, const char *path); extern CamelSession *session; -- cgit v1.2.3