X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Flookups%2Fspf.c;h=179b3a648d1d1b123d27908d5e35eaadf92df0bd;hb=fd5ad03aa7da47965ce3e23294661c8f3c602d33;hp=c84b6bbceef3bffb8c1cb4fd8f2f0d038c9e2832;hpb=53ef3d8498e76615b531f2f61604334e9884ba03;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/lookups/spf.c b/src/src/lookups/spf.c index c84b6bbce..179b3a648 100644 --- a/src/src/lookups/spf.c +++ b/src/src/lookups/spf.c @@ -35,7 +35,7 @@ extern SPF_dns_server_t * SPF_dns_exim_new(int); static void * -spf_open(uschar *filename, uschar **errmsg) +spf_open(const uschar * filename, uschar ** errmsg) { SPF_dns_server_t * dc; SPF_server_t *spf_server = NULL; @@ -64,8 +64,9 @@ if (spf_server) SPF_server_free(spf_server); } static int -spf_find(void *handle, uschar *filename, const uschar *keystring, int key_len, - uschar **result, uschar **errmsg, uint *do_cache) +spf_find(void * handle, const uschar * filename, const uschar * keystring, + int key_len, uschar ** result, uschar ** errmsg, uint * do_cache, + const uschar * opts) { SPF_server_t *spf_server = handle; SPF_request_t *spf_request; @@ -137,15 +138,15 @@ fprintf(f, "Library version: SPF: Exim version %s\n", EXIM_VERSION_STR); static lookup_info _lookup_info = { - US"spf", /* lookup name */ - 0, /* not absfile, not query style */ - spf_open, /* open function */ - NULL, /* no check function */ - spf_find, /* find function */ - spf_close, /* close function */ - NULL, /* no tidy function */ - NULL, /* no quoting function */ - spf_version_report /* version reporting */ + .name = US"spf", /* lookup name */ + .type = 0, /* not absfile, not query style */ + .open = spf_open, /* open function */ + .check = NULL, /* no check function */ + .find = spf_find, /* find function */ + .close = spf_close, /* close function */ + .tidy = NULL, /* no tidy function */ + .quote = NULL, /* no quoting function */ + .version_report = spf_version_report /* version reporting */ }; #ifdef DYNLOOKUP