git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debug: feed startup "whats supported" info through normal debug channel
[exim.git]
/
src
/
src
/
spf.c
diff --git
a/src/src/spf.c
b/src/src/spf.c
index 2f55fb77cd63c9fc62eb250b1daec4f1aecc1809..e3df789fb577d878bc6bd69d8d5de9e69ad23edd 100644
(file)
--- a/
src/src/spf.c
+++ b/
src/src/spf.c
@@
-5,7
+5,7
@@
/* SPF support.
Copyright (c) Tom Kistner <tom@duncanthrax.net> 2004 - 2014
License: GPL
/* SPF support.
Copyright (c) Tom Kistner <tom@duncanthrax.net> 2004 - 2014
License: GPL
- Copyright (c) The Exim Maintainers 2015 - 202
0
+ Copyright (c) The Exim Maintainers 2015 - 202
1
*/
/* Code for calling spf checks via libspf-alt. Called from acl.c. */
*/
/* Code for calling spf checks via libspf-alt. Called from acl.c. */
@@
-34,15
+34,17
@@
SPF_response_t *spf_response_2mx = NULL;
SPF_dns_rr_t * spf_nxdomain = NULL;
SPF_dns_rr_t * spf_nxdomain = NULL;
-void
-spf_lib_version_report(
FILE * fp
)
+gstring *
+spf_lib_version_report(
gstring * g
)
{
int maj, min, patch;
{
int maj, min, patch;
+
SPF_get_lib_version(&maj, &min, &patch);
SPF_get_lib_version(&maj, &min, &patch);
-
fprintf(fp
, "Library version: spf2: Compile: %d.%d.%d\n",
+
g = string_fmt_append(g
, "Library version: spf2: Compile: %d.%d.%d\n",
SPF_LIB_VERSION_MAJOR, SPF_LIB_VERSION_MINOR, SPF_LIB_VERSION_PATCH);
SPF_LIB_VERSION_MAJOR, SPF_LIB_VERSION_MINOR, SPF_LIB_VERSION_PATCH);
-
fprintf(fp,
" Runtime: %d.%d.%d\n",
+
g = string_fmt_append(g,
" Runtime: %d.%d.%d\n",
maj, min, patch);
maj, min, patch);
+return g;
}
}