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
Copyright year updates.
[exim.git]
/
src
/
src
/
lookups
/
dnsdb.c
diff --git
a/src/src/lookups/dnsdb.c
b/src/src/lookups/dnsdb.c
index 2862a5bc9f95890c03291eb0ba79a2eee8735341..3fd9f981bb37dcc66609c52fc40b19323cef8f1a 100644
(file)
--- a/
src/src/lookups/dnsdb.c
+++ b/
src/src/lookups/dnsdb.c
@@
-2,7
+2,7
@@
* Exim - an Internet mail transport agent *
*************************************************/
* Exim - an Internet mail transport agent *
*************************************************/
-/* Copyright (c) University of Cambridge 1995 - 20
09
*/
+/* Copyright (c) University of Cambridge 1995 - 20
12
*/
/* See the file NOTICE for conditions of use and distribution. */
#include "../exim.h"
/* See the file NOTICE for conditions of use and distribution. */
#include "../exim.h"
@@
-17,6
+17,11
@@
header files. */
#define T_TXT 16
#endif
#define T_TXT 16
#endif
+/* Many systems do not have T_SPF. */
+#ifndef T_SPF
+#define T_SPF 99
+#endif
+
/* Table of recognized DNS record types and their integer values. */
static const char *type_names[] = {
/* Table of recognized DNS record types and their integer values. */
static const char *type_names[] = {
@@
-33,6
+38,7
@@
static const char *type_names[] = {
"mxh",
"ns",
"ptr",
"mxh",
"ns",
"ptr",
+ "spf",
"srv",
"txt",
"zns"
"srv",
"txt",
"zns"
@@
-52,6
+58,7
@@
static int type_values[] = {
T_MXH, /* Private type for "MX hostnames" */
T_NS,
T_PTR,
T_MXH, /* Private type for "MX hostnames" */
T_NS,
T_PTR,
+ T_SPF,
T_SRV,
T_TXT,
T_ZNS /* Private type for "zone nameservers" */
T_SRV,
T_TXT,
T_ZNS /* Private type for "zone nameservers" */
@@
-316,7
+323,7
@@
while ((domain = string_nextinlist(&keystring, &sep, buffer, sizeof(buffer)))
if (ptr != 0) yield = string_cat(yield, &size, &ptr, outsep, 1);
if (ptr != 0) yield = string_cat(yield, &size, &ptr, outsep, 1);
- if (type == T_TXT)
+ if (type == T_TXT
|| type == T_SPF
)
{
if (outsep2 == NULL)
{
{
if (outsep2 == NULL)
{