X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_crypt.h;h=8d64d35bfa68d856e10fdcde44d20a836e5527ac;hp=182d52d00fbdebe69c7ccb121ef046c1ab11de34;hb=9a1efcc01ddeca4106847f8eb28a704aca2dcf0b;hpb=c3e57678c8be193fc137854020f3a90887be97c9 diff --git a/mutt_crypt.h b/mutt_crypt.h index 182d52d..8d64d35 100644 --- a/mutt_crypt.h +++ b/mutt_crypt.h @@ -17,6 +17,8 @@ #define MUTT_CRYPT_H #include "mutt.h" /* Need this to declare BODY, ADDRESS. STATE etc. */ +#include "state.h" + /* FIXME: They should be pointer to anonymous structures for better information hiding. */ @@ -107,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); @@ -119,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. */ @@ -161,10 +163,10 @@ 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); @@ -224,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);