WHERE short ImapPollTimeout; ///< Config: (imap) Maximum time to wait for a server response
#endif
-/* -- formerly in pgp.h -- */
WHERE char *PgpDefaultKey; ///< Config: Default key to use for PGP operations
WHERE char *PgpSignAs; ///< Config: Use this alternative key for signing messages
WHERE char *PgpEntryFormat; ///< Config: printf-like format string for the PGP key selection menu
-/* -- formerly in smime.h -- */
WHERE char *SmimeDefaultKey; ///< Config: Default key for SMIME operations
WHERE char *SmimeSignAs; ///< Config: Use this alternative key for signing messages
WHERE char *SmimeEncryptWith; ///< Config: Algorithm for encryption
#include "query.h"
#include "recvattach.h"
#include "recvcmd.h"
-#include "remailer.h"
#include "rfc1524.h"
#include "rfc3676.h"
#include "score.h"
#include "smtp.h"
#include "sort.h"
#include "status.h"
+#ifdef MIXMASTER
+#include "remailer.h"
+#endif
#ifdef USE_LUA
#include "mutt_lua.h"
#endif
#include <stdio.h>
#include "crypt_mod.h"
#include "ncrypt.h"
-#include "pgp.h"
#include "pgpinvoke.h"
#include "pgpkey.h"
+#ifdef CRYPT_BACKEND_CLASSIC_PGP
+#include "pgp.h"
+#endif
// clang-format off
struct CryptModuleSpecs crypt_mod_pgp_classic = {
#include <stdio.h>
#include "crypt_mod.h"
#include "ncrypt.h"
+#ifdef CRYPT_BACKEND_CLASSIC_SMIME
#include "smime.h"
+#endif
// clang-format off
struct CryptModuleSpecs crypt_mod_smime_classic = {
#include "ncrypt.h"
#include "pgpinvoke.h"
#include "pgpkey.h"
+#ifdef CRYPT_BACKEND_CLASSIC_PGP
#include "pgplib.h"
+#endif
/****************
* Read the GNUPG keys. For now we read the complete keyring by
#include "config/lib.h"
#include "email/email.h"
#include "mutt.h"
-#include "pgp.h"
#include "crypt.h"
#include "cryptglue.h"
#include "curs_lib.h"
#include "options.h"
#include "pgpinvoke.h"
#include "pgpkey.h"
-#include "pgplib.h"
#include "pgpmicalg.h"
#include "sendlib.h"
#include "state.h"
+#ifdef CRYPT_BACKEND_CLASSIC_PGP
+#include "pgp.h"
+#include "pgplib.h"
+#endif
/* These Config Variables are only used in ncrypt/pgp.c */
bool PgpCheckExit; ///< Config: Check the exit code of PGP subprocess
#ifndef _NCRYPT_PGP_H
#define _NCRYPT_PGP_H
-#ifdef CRYPT_BACKEND_CLASSIC_PGP
-
#include <stdbool.h>
#include <stdio.h>
int pgp_class_send_menu(struct Header *msg);
-#endif /* CRYPT_BACKEND_CLASSIC_PGP */
-
#endif /* _NCRYPT_PGP_H */
#include "mutt_window.h"
#include "muttlib.h"
#include "ncrypt.h"
-#include "pgp.h"
#include "pgpkey.h"
#include "protos.h"
+#ifdef CRYPT_BACKEND_CLASSIC_PGP
+#include "pgp.h"
+#endif
/* These Config Variables are only used in ncrypt/pgpinvoke.c */
char *PgpClearsignCommand; ///< Config: (pgp) External command to inline-sign a messsage
#include "ncrypt.h"
#include "opcodes.h"
#include "options.h"
-#include "pgp.h"
#include "pgpinvoke.h"
-#include "pgplib.h"
#include "protos.h"
#include "recvattach.h"
#include "sendlib.h"
#include "sort.h"
+#ifdef CRYPT_BACKEND_CLASSIC_PGP
+#include "pgp.h"
+#include "pgplib.h"
+#endif
/**
* struct PgpCache - List of cached PGP keys
#include "config.h"
#include <stdbool.h>
#include "mutt/mutt.h"
+#ifdef CRYPT_BACKEND_CLASSIC_PGP
#include "pgplib.h"
+#endif
/**
* pgp_pkalgbytype - Get the name of the algorithm from its ID
#ifndef _NCRYPT_PGPLIB_H
#define _NCRYPT_PGPLIB_H
-#ifdef CRYPT_BACKEND_CLASSIC_PGP
-
#include <stdbool.h>
#include <time.h>
struct PgpKeyInfo *pgp_new_keyinfo(void);
-#endif /* CRYPT_BACKEND_CLASSIC_PGP */
-
#endif /* _NCRYPT_PGPLIB_H */
#include "config/lib.h"
#include "email/email.h"
#include "mutt.h"
-#include "smime.h"
#include "alias.h"
#include "copy.h"
#include "crypt.h"
#include "send.h"
#include "sendlib.h"
#include "state.h"
+#ifdef CRYPT_BACKEND_CLASSIC_SMIME
+#include "smime.h"
+#endif
/* These Config Variables are only used in ncrypt/smime.c */
bool SmimeAskCertLabel; ///< Config: Prompt the user for a label for SMIME certificates
#ifndef _NCRYPT_SMIME_H
#define _NCRYPT_SMIME_H
-#ifdef CRYPT_BACKEND_CLASSIC_SMIME
-
#include <stdbool.h>
#include <stdio.h>
int smime_class_verify_sender(struct Header *h);
void smime_class_void_passphrase(void);
-#endif
-
#endif /* _NCRYPT_SMIME_H */
#include "mutt/mutt.h"
#include "email/email.h"
#include "mutt.h"
-#include "remailer.h"
#include "curs_lib.h"
#include "filter.h"
#include "format_flags.h"
#include "protos.h"
#include "recvattach.h"
#include "sendlib.h"
+#ifdef MIXMASTER
+#include "remailer.h"
+#endif
/* These Config Variables are only used in remailer.c */
char *MixEntryFormat; ///< Config: (mixmaster) printf-like format string for the mixmaster chain
#ifndef _MUTT_REMAILER_H
#define _MUTT_REMAILER_H
-#ifdef MIXMASTER
-
#include <stddef.h>
struct ListHead;
int mix_check_message(struct Header *msg);
void mix_make_chain(struct ListHead *chainhead);
-#endif /* MIXMASTER */
-
#endif /* _MUTT_REMAILER_H */