Even remove more code.
[apps/madmutt.git] / lib-crypt / crypt-mod-smime-gpgme.c
index 31e882f..5396b28 100644 (file)
     This is a crytpo module wrapping the gpgme based smime code.
  */
 
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#ifdef CRYPT_BACKEND_GPGME
+#include <lib-lib/lib-lib.h>
 
 #include <lib-crypt/crypt-mod.h>
 #include "crypt-gpgme.h"
@@ -25,17 +21,6 @@ static void crypt_mod_smime_init (void)
   smime_gpgme_init ();
 }
 
-static void crypt_mod_smime_void_passphrase (void)
-{
-  /* Handled by gpg-agent.  */
-}
-
-static int crypt_mod_smime_valid_passphrase (void)
-{
-  /* Handled by gpg-agent.  */
-  return 1;
-}
-
 static int crypt_mod_smime_decrypt_mime (FILE * a, FILE ** b, BODY * c,
                                          BODY ** d)
 {
@@ -82,8 +67,6 @@ static int crypt_mod_smime_verify_sender (HEADER * h)
 struct crypt_module_specs crypt_mod_smime_gpgme = { APPLICATION_SMIME,
   {
    crypt_mod_smime_init,
-   crypt_mod_smime_void_passphrase,
-   crypt_mod_smime_valid_passphrase,
    crypt_mod_smime_decrypt_mime,
    crypt_mod_smime_application_handler,
    NULL,                        /* encrypted_handler */
@@ -106,5 +89,3 @@ struct crypt_module_specs crypt_mod_smime_gpgme = { APPLICATION_SMIME,
    NULL,                        /* smime_invoke_import */
    }
 };
-
-#endif