-/* Warning: A is no longer freed in this routine, you need to free it
- later. This is necessary for $fcc_attach. */
-BODY *crypt_pgp_encrypt_message (BODY * a, char *keylist, int sign)
-{
- if (CRYPT_MOD_CALL_CHECK (PGP, pgp_encrypt_message))
- return (CRYPT_MOD_CALL (PGP, pgp_encrypt_message)) (a, keylist, sign);
-
- return NULL;
-}
-
-/* Invoke the PGP command to import a key. */
-void crypt_pgp_invoke_import (const char *fname)
-{
- if (CRYPT_MOD_CALL_CHECK (PGP, pgp_invoke_import))
- (CRYPT_MOD_CALL (PGP, pgp_invoke_import)) (fname);
-}
-
-/* fixme: needs documentation */
-int crypt_pgp_verify_one (BODY * sigbdy, STATE * s, const char *tempf)
-{
- if (CRYPT_MOD_CALL_CHECK (PGP, verify_one))
- return (CRYPT_MOD_CALL (PGP, verify_one)) (sigbdy, s, tempf);
-
- return -1;
-}
-
-
-int crypt_pgp_send_menu (HEADER * msg, int *redraw)
-{
- if (CRYPT_MOD_CALL_CHECK (PGP, send_menu))
- return (CRYPT_MOD_CALL (PGP, send_menu)) (msg, redraw);
-
- return 0;
-}
-
-
-/* fixme: needs documentation */
-void crypt_pgp_extract_keys_from_attachment_list (FILE * fp, int tag,
- BODY * top)
-{
- if (CRYPT_MOD_CALL_CHECK (PGP, pgp_extract_keys_from_attachment_list))
- (CRYPT_MOD_CALL (PGP, pgp_extract_keys_from_attachment_list)) (fp, tag,
- top);
-}
-\f
-
-
-/*
-
- S/MIME
-
-*/
-
-
-/* Reset an SMIME passphrase */
-void crypt_smime_void_passphrase (void)
-{
- if (CRYPT_MOD_CALL_CHECK (SMIME, void_passphrase))
- (CRYPT_MOD_CALL (SMIME, void_passphrase)) ();
-}
-
-int crypt_smime_valid_passphrase (void)
-{
- if (CRYPT_MOD_CALL_CHECK (SMIME, valid_passphrase))
- return (CRYPT_MOD_CALL (SMIME, valid_passphrase)) ();
-
- return 0;
-}
-
-/* Decrypt am S/MIME message. */
-int crypt_smime_decrypt_mime (FILE * a, FILE ** b, BODY * c, BODY ** d)
-{
- if (CRYPT_MOD_CALL_CHECK (SMIME, decrypt_mime))
- return (CRYPT_MOD_CALL (SMIME, decrypt_mime)) (a, b, c, d);
-
- return -1;
-}
-
-/* MIME handler for the application/smime content-type. */
-int crypt_smime_application_smime_handler (BODY * m, STATE * s)
-{
- if (CRYPT_MOD_CALL_CHECK (SMIME, application_handler))
- return (CRYPT_MOD_CALL (SMIME, application_handler)) (m, s);
- return (-1);
-}