Gitweb:
https://git.exim.org/exim.git/commitdiff/c8599aad9649a7970e77fdf24f29ade0fcb987a7
Commit: c8599aad9649a7970e77fdf24f29ade0fcb987a7
Parent: d6e7df900550f1a63e066f8a4a7d023e8d8e312b
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Sun Apr 29 15:10:27 2018 +0100
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Sun Apr 29 15:10:27 2018 +0100
tidying
---
src/src/arc.c | 8 ++++----
src/src/expand.c | 4 ++--
src/src/malware.c | 40 ++++++++++++++++++++++++++++++++++++++--
3 files changed, 44 insertions(+), 8 deletions(-)
diff --git a/src/src/arc.c b/src/src/arc.c
index 7374ba4..787c6e1 100644
--- a/src/src/arc.c
+++ b/src/src/arc.c
@@ -1800,20 +1800,20 @@ for (as = arc_verify_ctx.arcset_chain, inst = 1; as; as = as->next, inst++)
blob * d = &hdr_as->d;
for (; inst < as->instance; inst++)
- g = string_catn(g, ":", 1);
+ g = string_catn(g, US":", 1);
g = d->data && d->len
? string_append_listele_n(g, ':', d->data, d->len)
- : string_catn(g, ":", 1);
+ : string_catn(g, US":", 1);
}
else
- g = string_catn(g, ":", 1);
+ g = string_catn(g, US":", 1);
}
return g ? g->s : US"";
}
-/* Construct an Authenticate-Results header portion, for the ARC module */
+/* Construct an Authentication-Results header portion, for the ARC module */
gstring *
authres_arc(gstring * g)
diff --git a/src/src/expand.c b/src/src/expand.c
index d9ce07e..862544c 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -1666,7 +1666,7 @@ return yield;
-/* Append a "local" element to an Autherntication-Results: header
+/* Append a "local" element to an Authentication-Results: header
if this was a non-smtp message.
*/
@@ -1681,7 +1681,7 @@ return g;
}
-/* Append an "iprev" element to an Autherntication-Results: header
+/* Append an "iprev" element to an Authentication-Results: header
if we have attempted to get the calling host's name.
*/
diff --git a/src/src/malware.c b/src/src/malware.c
index 99fa1c3..a5de8a9 100644
--- a/src/src/malware.c
+++ b/src/src/malware.c
@@ -12,8 +12,44 @@
#include "exim.h"
#ifdef WITH_CONTENT_SCAN /* entire file */
-typedef enum {M_FPROTD, M_DRWEB, M_AVES, M_FSEC, M_KAVD, M_CMDL,
- M_SOPHIE, M_CLAMD, M_SOCK, M_MKSD, M_AVAST, M_FPROT6D} scanner_t;
+typedef enum {
+#ifndef DISABLE_MAL_FFROTD
+ M_FPROTD,
+#endif
+#ifndef DISABLE_MAL_FFROT6D
+ M_FPROT6D,
+#endif
+#ifndef DISABLE_MAL_DRWEB
+ M_DRWEB,
+#endif
+#ifndef DISABLE_MAL_AVE
+ M_AVES,
+#endif
+#ifndef DISABLE_MAL_FSECURE
+ M_FSEC,
+#endif
+#ifndef DISABLE_MAL_KAV
+ M_KAVD,
+#endif
+#ifndef DISABLE_MAL_SOPHIE
+ M_SOPHIE,
+#endif
+#ifndef DISABLE_MAL_CLAM
+ M_CLAMD,
+#endif
+#ifndef DISABLE_MAL_MKS
+ M_MKSD,
+#endif
+#ifndef DISABLE_MAL_AVAST
+ M_AVAST,
+#endif
+#ifndef DISABLE_MAL_SOCK
+ M_SOCK,
+#endif
+#ifndef DISABLE_MAL_CMDLINE
+ M_CMDL,
+#endif
+ } scanner_t;
typedef enum {MC_NONE, MC_TCP, MC_UNIX, MC_STRM} contype_t;
static struct scan
{