always build POP support, we do a /mail/ client, right ?
[apps/madmutt.git] / cryptglue.c
index 402ad6e..d76fa44 100644 (file)
 # include "config.h"
 #endif
 
+#include <lib-lib/macros.h>
+
 #include "mutt.h"
 #include "mutt_crypt.h"
 
-#include "lib/intl.h"
 
 #include "crypt-mod.h"
 
 
 */
 
-#ifdef CRYPT_BACKEND_CLASSIC_PGP
 extern struct crypt_module_specs crypt_mod_pgp_classic;
-#endif
-
-#ifdef CRYPT_BACKEND_CLASSIC_SMIME
 extern struct crypt_module_specs crypt_mod_smime_classic;
-#endif
 
 #ifdef CRYPT_BACKEND_GPGME
 extern struct crypt_module_specs crypt_mod_pgp_gpgme;
@@ -51,7 +47,6 @@ extern struct crypt_module_specs crypt_mod_smime_gpgme;
 
 void crypt_init (void)
 {
-#ifdef CRYPT_BACKEND_CLASSIC_PGP
   if (
 #ifdef CRYPT_BACKEND_GPGME
        (!option (OPTCRYPTUSEGPGME))
@@ -60,9 +55,7 @@ void crypt_init (void)
 #endif
     )
     crypto_module_register (&crypt_mod_pgp_classic);
-#endif
 
-#ifdef CRYPT_BACKEND_CLASSIC_SMIME
   if (
 #ifdef CRYPT_BACKEND_GPGME
        (!option (OPTCRYPTUSEGPGME))
@@ -71,7 +64,6 @@ void crypt_init (void)
 #endif
     )
     crypto_module_register (&crypt_mod_smime_classic);
-#endif
 
   if (option (OPTCRYPTUSEGPGME)) {
 #ifdef CRYPT_BACKEND_GPGME
@@ -98,11 +90,11 @@ void crypt_init (void)
 /* Show a message that a backend will be invoked. */
 void crypt_invoke_message (int type)
 {
-  if ((WithCrypto & APPLICATION_PGP) && (type & APPLICATION_PGP)) {
+  if (type & APPLICATION_PGP) {
     mutt_message _("Invoking PGP...");
   }
-  else if ((WithCrypto & APPLICATION_SMIME) && (type & APPLICATION_SMIME)) {
-    mutt_message _("Invoking SMIME...");
+  else if (type & APPLICATION_SMIME) {
+    mutt_message _("Invoking S/MIME...");
   }
 }
 \f
@@ -157,7 +149,7 @@ int crypt_pgp_encrypted_handler (BODY * a, STATE * s)
 }
 
 /* fixme: needs documentation. */
-void crypt_pgp_invoke_getkeys (ADDRESS * addr)
+void crypt_pgp_invoke_getkeys (address_t * addr)
 {
   if (CRYPT_MOD_CALL_CHECK (PGP, pgp_invoke_getkeys))
     (CRYPT_MOD_CALL (PGP, pgp_invoke_getkeys)) (addr);
@@ -193,7 +185,7 @@ BODY *crypt_pgp_make_key_attachment (char *tempf)
 
 /* This routine attempts to find the keyids of the recipients of a
    message.  It returns NULL if any of the keys can not be found.  */
-char *crypt_pgp_findkeys (ADDRESS * to, ADDRESS * cc, ADDRESS * bcc)
+char *crypt_pgp_findkeys (address_t * to, address_t * cc, address_t * bcc)
 {
   if (CRYPT_MOD_CALL_CHECK (PGP, findkeys))
     return (CRYPT_MOD_CALL (PGP, findkeys)) (to, cc, bcc);
@@ -322,7 +314,7 @@ int crypt_smime_verify_sender (HEADER * h)
 
 /* This routine attempts to find the keyids of the recipients of a
    message.  It returns NULL if any of the keys can not be found.  */
-char *crypt_smime_findkeys (ADDRESS * to, ADDRESS * cc, ADDRESS * bcc)
+char *crypt_smime_findkeys (address_t * to, address_t * cc, address_t * bcc)
 {
   if (CRYPT_MOD_CALL_CHECK (SMIME, findkeys))
     return (CRYPT_MOD_CALL (SMIME, findkeys)) (to, cc, bcc);