/*
+ * Copyright notice from original mutt:
* Copyright (C) 2003 Werner Koch <wk@gnupg.org>
* Copyright (C) 2004 g10 Code GmbH
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * This file is part of mutt-ng, see http://www.muttng.org/.
+ * It's licensed under the GNU General Public License,
+ * please see the file GPL in the top level source directory.
*/
/*
#include "mutt.h"
#include "mutt_crypt.h"
+#include "lib/intl.h"
+
#include "crypt-mod.h"
/*
mutt_message _("Invoking PGP...");
}
else if ((WithCrypto & APPLICATION_SMIME) && (type & APPLICATION_SMIME)) {
- mutt_message _("Invoking SMIME...");
+ mutt_message _("Invoking S/MIME...");
}
}
\f
}
/* 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. */
}
/* 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. */