X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_crypt.h;h=e9713f4c09e38c4a10e042e9c311696b2df195cc;hp=ca9acd64a85a9af2ceec3e023866abc91b8d0846;hb=b68ee108ca7aed9fd3fdfe5eefc1cf284a32fb17;hpb=bbc4fd52516a8afefbd14c77e34f8389d6f0a6ed diff --git a/mutt_crypt.h b/mutt_crypt.h index ca9acd6..e9713f4 100644 --- a/mutt_crypt.h +++ b/mutt_crypt.h @@ -16,7 +16,7 @@ #ifndef MUTT_CRYPT_H #define MUTT_CRYPT_H -#include "mutt.h" /* Need this to declare BODY, ADDRESS. STATE etc. */ +#include "mutt.h" /* Need this to declare BODY, address_t. STATE etc. */ #include "state.h" /* FIXME: They should be pointer to anonymous structures for better @@ -109,7 +109,7 @@ int mutt_is_application_pgp (BODY *); int mutt_is_application_smime (BODY *); -void mutt_signed_handler (BODY *, STATE *); +int mutt_signed_handler (BODY *, STATE *); int mutt_parse_crypt_hdr (char *, int); @@ -121,7 +121,7 @@ void convert_to_7bit (BODY *); /*-- crypt.c --*/ /* Print the current time. */ -void crypt_current_time (STATE * s, char *app_name); +void crypt_current_time (STATE * s, const char *app_name); /* Check out the type of encryption used and set the cached status values if there are any. */ @@ -163,13 +163,13 @@ int crypt_pgp_valid_passphrase (void); int crypt_pgp_decrypt_mime (FILE * a, FILE ** b, BODY * c, BODY ** d); /* MIME handler for the application/pgp content-type. */ -void crypt_pgp_application_pgp_handler (BODY * m, STATE * s); +int crypt_pgp_application_pgp_handler (BODY * m, STATE * s); /* MIME handler for an PGP/MIME encrypted message. */ -void crypt_pgp_encrypted_handler (BODY * a, STATE * s); +int crypt_pgp_encrypted_handler (BODY * a, STATE * s); /* fixme: needs documentation. */ -void crypt_pgp_invoke_getkeys (ADDRESS * addr); +void crypt_pgp_invoke_getkeys (address_t * addr); /* Ask for a PGP key. */ pgp_key_t crypt_pgp_ask_for_key (char *tag, char *whatfor, @@ -189,7 +189,7 @@ BODY *crypt_pgp_make_key_attachment (char *tempf); /* This routine attempts to find the keyids of the recipients of a message. It returns NULL if any of the keys can not be found. */ -char *crypt_pgp_findkeys (ADDRESS * to, ADDRESS * cc, ADDRESS * bcc); +char *crypt_pgp_findkeys (address_t * to, address_t * cc, address_t * bcc); /* Create a new body with a PGP signed message from A. */ BODY *crypt_pgp_sign_message (BODY * a); @@ -226,7 +226,7 @@ int crypt_smime_valid_passphrase (void); int crypt_smime_decrypt_mime (FILE * a, FILE ** b, BODY * c, BODY ** d); /* MIME handler for the application/smime content-type. */ -void crypt_smime_application_smime_handler (BODY * m, STATE * s); +int crypt_smime_application_smime_handler (BODY * m, STATE * s); /* fixme: Needs documentation. */ void crypt_smime_getkeys (ENVELOPE * env); @@ -239,7 +239,7 @@ char *crypt_smime_ask_for_key (char *prompt, char *mailbox, short public); /* This routine attempts to find the keyids of the recipients of a message. It returns NULL if any of the keys can not be found. */ -char *crypt_smime_findkeys (ADDRESS * to, ADDRESS * cc, ADDRESS * bcc); +char *crypt_smime_findkeys (address_t * to, address_t * cc, address_t * bcc); /* fixme: Needs documentation. */ BODY *crypt_smime_sign_message (BODY * a);