X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/56e0c4ce946ae13628c4349f982c3407e1019dd0..6545de78cb822ab5db97a2f16fe7a42cc9488bd8:/src/src/lookups/spf.c?ds=sidebyside diff --git a/src/src/lookups/spf.c b/src/src/lookups/spf.c index 2ca4bbab4..b95d0ff1a 100644 --- a/src/src/lookups/spf.c +++ b/src/src/lookups/spf.c @@ -74,6 +74,24 @@ static int spf_find(void *handle, uschar *filename, uschar *keystring, int key_l return OK; } + +/************************************************* +* Version reporting entry point * +*************************************************/ + +/* See local README for interface description. */ + +#include "../version.h" + +void +spf_version_report(FILE *f) +{ +#ifdef DYNLOOKUP +fprintf(f, "Library version: SPF: Exim version %s\n", EXIM_VERSION_STR); +#endif +} + + static lookup_info _lookup_info = { US"spf", /* lookup name */ 0, /* not absfile, not query style */ @@ -82,7 +100,8 @@ static lookup_info _lookup_info = { spf_find, /* find function */ spf_close, /* close function */ NULL, /* no tidy function */ - NULL /* no quoting function */ + NULL, /* no quoting function */ + spf_version_report /* version reporting */ }; #ifdef DYNLOOKUP