The smtp transport is not covered here; there are dependencies in
other bits of the exim body.
17 files changed:
program. */
#ifdef STAND_ALONE
program. */
#ifdef STAND_ALONE
-#define CRAM_STAND_ALONE
-#include "md5.c"
+# define CRAM_STAND_ALONE
+# include "md5.c"
/* This is the normal, non-stand-alone case */
#else
/* This is the normal, non-stand-alone case */
#else
-#include "../exim.h"
-#include "cram_md5.h"
+# include "../exim.h"
+
+# ifdef AUTH_CRAM_MD5
+# include "cram_md5.h"
/* Options specific to the cram_md5 authentication mechanism. */
/* Options specific to the cram_md5 authentication mechanism. */
/* Dummy values */
void auth_cram_md5_init(auth_instance *ablock) {}
/* Dummy values */
void auth_cram_md5_init(auth_instance *ablock) {}
int auth_cram_md5_client(auth_instance *ablock, void *sx, int timeout,
uschar *buffer, int buffsize) {return 0;}
int auth_cram_md5_client(auth_instance *ablock, void *sx, int timeout,
uschar *buffer, int buffsize) {return 0;}
+# else /*!MACRO_PREDEF*/
/*************************************************
/*************************************************
-#endif /*!MACRO_PREDEF*/
-#endif /* STAND_ALONE */
+# endif /*!MACRO_PREDEF*/
+# endif /*AUTH_CRAM_MD5*/
+#endif /*!STAND_ALONE*/
+# ifndef STAND_ALONE
+# ifdef AUTH_CRAM_MD5
/*************************************************
* Server entry point *
/*************************************************
* Server entry point *
return smtp_read_response(sx, US buffer, buffsize, '2', timeout)
? OK : FAIL;
}
return smtp_read_response(sx, US buffer, buffsize, '2', timeout)
? OK : FAIL;
}
-#endif /* STAND_ALONE */
+# endif /*AUTH_CRAM_MD5*/
+# endif /*!STAND_ALONE*/
/*************************************************
/*************************************************
**************************************************
*************************************************/
**************************************************
*************************************************/
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
#endif /*!MACRO_PREDEF*/
/* End of cram_md5.c */
#endif /*!MACRO_PREDEF*/
/* End of cram_md5.c */
+
+#ifdef AUTH_DOVECOT /* Remainder of file */
#include "dovecot.h"
#define VERSION_MAJOR 1
#include "dovecot.h"
#define VERSION_MAJOR 1
-#endif /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*AUTH_DOVECOT*/
+/* end of auths/dovecot.c */
+
+#ifdef AUTH_EXTERNAL /* Remainder of file */
#include "external.h"
/* Options specific to the external authentication mechanism. */
#include "external.h"
/* Options specific to the external authentication mechanism. */
-#endif /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*AUTH_EXTERNAL*/
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "../exim.h"
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "../exim.h"
+
+#ifdef AUTH_PLAINTEXT /* Remainder of file */
-#endif /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*AUTH_PLAINTEST*/
+
+#ifdef AUTH_SPA /* Remainder of file */
#include "spa.h"
/* #define DEBUG_SPA */
#include "spa.h"
/* #define DEBUG_SPA */
-#endif /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*AUTH_SPA*/
+
+#ifdef AUTH_TLS /* Remainder of file */
#include "tls.h"
/* Options specific to the tls authentication mechanism. */
#include "tls.h"
/* Options specific to the tls authentication mechanism. */
-#endif /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*AUTH_TLS*/
+
+#ifdef ROUTER_ACCEPT /* Remainder of file */
#include "rf_functions.h"
#include "accept.h"
#include "rf_functions.h"
#include "accept.h"
}
#endif /*!MACRO_PREDEF*/
}
#endif /*!MACRO_PREDEF*/
+#endif /*ROUTER_ACCEPT*/
/* End of routers/accept.c */
/* End of routers/accept.c */
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "../exim.h"
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "../exim.h"
+
+#ifdef ROUTER_DNSLOOKUP /* Remainder of file */
#include "rf_functions.h"
#include "dnslookup.h"
#include "rf_functions.h"
#include "dnslookup.h"
-#endif /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*ROUTER_DNSLOOKUP
/* End of routers/dnslookup.c */
/* vi: aw ai sw=2
*/
/* End of routers/dnslookup.c */
/* vi: aw ai sw=2
*/
+
+#ifdef ROUTER_IPLITERAL /* Remainder of file */
#include "rf_functions.h"
#include "ipliteral.h"
#include "rf_functions.h"
#include "ipliteral.h"
-#endif /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*ROUTER_IPLITERAL*/
/* End of routers/ipliteral.c */
/* End of routers/ipliteral.c */
+
+#ifdef ROUTER_IPLOOKUP /* Remainder of file */
#include "rf_functions.h"
#include "iplookup.h"
#include "rf_functions.h"
#include "iplookup.h"
-#endif /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*ROUTER_IPLOOKUP*/
/* End of routers/iplookup.c */
/* End of routers/iplookup.c */
+
+#ifdef ROUTER_MANUALROUTE
#include "rf_functions.h"
#include "manualroute.h"
#include "rf_functions.h"
#include "manualroute.h"
-#endif /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*ROUTER_MANUALROUTE*/
/* End of routers/manualroute.c */
/* End of routers/manualroute.c */
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "../exim.h"
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "../exim.h"
+
+#ifdef ROUTER_QUERYPROGRAM /* Remainder of file */
#include "rf_functions.h"
#include "queryprogram.h"
#include "rf_functions.h"
#include "queryprogram.h"
return rf_queue_add(addr, addr_local, addr_remote, rblock, pw) ? OK : DEFER;
}
return rf_queue_add(addr, addr_local, addr_remote, rblock, pw) ? OK : DEFER;
}
-#endif /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*ROUTER_QUERYPROGRAM*/
/* End of routers/queryprogram.c */
/* End of routers/queryprogram.c */
+
+#ifdef ROUTER_REDIRECT /* Remainder of file */
#include "rf_functions.h"
#include "redirect.h"
#include "rf_functions.h"
#include "redirect.h"
}
#endif /*!MACRO_PREDEF*/
}
#endif /*!MACRO_PREDEF*/
+#endif /*ROUTER_REDIRECT*/
/* End of routers/redirect.c */
/* End of routers/redirect.c */
+
+#ifdef TRANSPORT_APPENDFILE /* Remainder of file */
#include "appendfile.h"
#ifdef SUPPORT_MAILDIR
#include "appendfile.h"
#ifdef SUPPORT_MAILDIR
}
#endif /*!MACRO_PREDEF*/
}
#endif /*!MACRO_PREDEF*/
+#endif /*TRANSPORT_APPENDFILE*/
/* End of transport/appendfile.c */
/* End of transport/appendfile.c */
+
+#ifdef TRANSPORT_AUTOREPLY /* Remainder of file */
}
#endif /*!MACRO_PREDEF*/
}
#endif /*!MACRO_PREDEF*/
+#endif /*TRANSPORT_AUTOREPOL*/
/* End of transport/autoreply.c */
/* End of transport/autoreply.c */
+#ifdef TRANSPORT_LMTP /* Remainder of file */
+
#include "lmtp.h"
#define PENDING_OK 256
#include "lmtp.h"
#define PENDING_OK 256
}
#endif /*!MACRO_PREDEF*/
}
#endif /*!MACRO_PREDEF*/
+#endif /*TRANSPORT_LMTP*/
/* End of transport/lmtp.c */
/* End of transport/lmtp.c */
+
+#ifdef TRANSPORT_PIPE /* Remainder of file */
#include "pipe.h"
#ifdef HAVE_SETCLASSRESOURCES
#include "pipe.h"
#ifdef HAVE_SETCLASSRESOURCES
}
#endif /*!MACRO_PREDEF*/
}
#endif /*!MACRO_PREDEF*/
+#endif /*TRASPORT_PIPE*/
/* End of transport/pipe.c */
/* End of transport/pipe.c */