X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=cryptglue.c;h=dc82b4aa7b5227cef373913bef8015d88c3dba09;hp=ee9f61b1d719607ffe95632cd46de739a467e19f;hb=9342efc81d163ea56e079b4adf2ce17c41c853b0;hpb=74a2265af51ce89bca845adc1d68f273c9933c13 diff --git a/cryptglue.c b/cryptglue.c index ee9f61b..dc82b4a 100644 --- a/cryptglue.c +++ b/cryptglue.c @@ -23,10 +23,11 @@ # include "config.h" #endif +#include + #include "mutt.h" #include "mutt_crypt.h" -#include "lib/intl.h" #include "crypt-mod.h" @@ -102,7 +103,7 @@ void crypt_invoke_message (int type) mutt_message _("Invoking PGP..."); } else if ((WithCrypto & APPLICATION_SMIME) && (type & APPLICATION_SMIME)) { - mutt_message _("Invoking SMIME..."); + mutt_message _("Invoking S/MIME..."); } } @@ -141,17 +142,19 @@ 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) { if (CRYPT_MOD_CALL_CHECK (PGP, application_handler)) - (CRYPT_MOD_CALL (PGP, application_handler)) (m, s); + return (CRYPT_MOD_CALL (PGP, application_handler)) (m, s); + return (-1); } /* 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) { if (CRYPT_MOD_CALL_CHECK (PGP, encrypted_handler)) - (CRYPT_MOD_CALL (PGP, encrypted_handler)) (a, s); + return (CRYPT_MOD_CALL (PGP, encrypted_handler)) (a, s); + return (-1); } /* fixme: needs documentation. */ @@ -287,17 +290,19 @@ 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) { if (CRYPT_MOD_CALL_CHECK (SMIME, application_handler)) - (CRYPT_MOD_CALL (SMIME, application_handler)) (m, s); + return (CRYPT_MOD_CALL (SMIME, application_handler)) (m, s); + return (-1); } /* MIME handler for an PGP/MIME encrypted message. */ -void crypt_smime_encrypted_handler (BODY * a, STATE * s) +int crypt_smime_encrypted_handler (BODY * a, STATE * s) { if (CRYPT_MOD_CALL_CHECK (SMIME, encrypted_handler)) - (CRYPT_MOD_CALL (SMIME, encrypted_handler)) (a, s); + return (CRYPT_MOD_CALL (SMIME, encrypted_handler)) (a, s); + return (-1); } /* fixme: Needs documentation. */