diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2020-01-09 14:18:31 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2020-01-09 14:18:31 +0000 |
commit | f8383418ca1598299c555b342b4b5e02f54268e8 (patch) | |
tree | bd4f35e8ce57251d044101b113165f44df4f7b40 /usr.sbin/bind/lib/dns | |
parent | 964cd36910587fd9d49bf1c096a0cf52c151b62f (diff) |
Assorted unifdefs:
#define ISC_PLATFORM_NEEDSYSSELECTH 1
#define ISC_PLATFORM_HAVESTATNSEC 1
#define ISC_PLATFORM_RLIMITTYPE rlim_t
#define ISC_PLATFORM_HAVELONGLONG 1
#undef ISC_PLATFORM_BRACEPTHREADONCEINIT
#undef ISC_PLATFORM_USEDECLSPEC
#define ISC_PLATFORM_HAVESYSUNH 1
#define ISC_PLATFORM_HAVESTRINGSH 1
#define ISC_PLATFORM_WANTAES 1
#define ISC_PLATFORM_USESIT 1
#define LIBISC_EXTERNAL_DATA
#define LIBDNS_EXTERNAL_DATA
#define LIBISCCFG_EXTERNAL_DATA
#define LIBBIND9_EXTERNAL_DATA
#define LIBTESTS_EXTERNAL_DATA
prodding deraadt@
Diffstat (limited to 'usr.sbin/bind/lib/dns')
-rw-r--r-- | usr.sbin/bind/lib/dns/adb.c | 2 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/dnssec.c | 4 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/dst_lib.c | 4 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/include/dns/dnssec.h | 4 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/include/dns/lib.h | 6 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/include/dns/log.h | 6 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/include/dns/masterdump.h | 16 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/include/dns/name.h | 6 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/include/dns/stats.h | 4 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/include/dns/tsig.h | 12 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/include/dns/version.h | 14 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/include/dst/lib.h | 4 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/lib.c | 6 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/log.c | 6 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/masterdump.c | 16 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/name.c | 6 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/resolver.c | 22 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/ssu_external.c | 6 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/stats.c | 4 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/tsig.c | 12 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/zone.c | 6 |
21 files changed, 69 insertions, 97 deletions
diff --git a/usr.sbin/bind/lib/dns/adb.c b/usr.sbin/bind/lib/dns/adb.c index 43f5658541f..97db279e7ff 100644 --- a/usr.sbin/bind/lib/dns/adb.c +++ b/usr.sbin/bind/lib/dns/adb.c @@ -3571,7 +3571,6 @@ dump_entry(FILE *f, dns_adb_t *adb, dns_adbentry_t *entry, entry->to512, entry->plain, entry->plainto); if (entry->udpsize != 0U) fprintf(f, " [udpsize %u]", entry->udpsize); -#ifdef ISC_PLATFORM_USESIT if (entry->sit != NULL) { unsigned int i; fprintf(f, " [sit="); @@ -3579,7 +3578,6 @@ dump_entry(FILE *f, dns_adb_t *adb, dns_adbentry_t *entry, fprintf(f, "%02x", entry->sit[i]); fprintf(f, "]"); } -#endif if (entry->expires != 0) fprintf(f, " [ttl %d]", (int)(entry->expires - now)); diff --git a/usr.sbin/bind/lib/dns/dnssec.c b/usr.sbin/bind/lib/dns/dnssec.c index 030a29ccd1b..ef8fa4f4ce7 100644 --- a/usr.sbin/bind/lib/dns/dnssec.c +++ b/usr.sbin/bind/lib/dns/dnssec.c @@ -15,7 +15,7 @@ */ /* - * $Id: dnssec.c,v 1.8 2020/01/09 13:52:23 florian Exp $ + * $Id: dnssec.c,v 1.9 2020/01/09 14:18:29 florian Exp $ */ /*! \file */ @@ -50,7 +50,7 @@ #include <dst/result.h> -LIBDNS_EXTERNAL_DATA isc_stats_t *dns_dnssec_stats; +isc_stats_t *dns_dnssec_stats; #define is_response(msg) (msg->flags & DNS_MESSAGEFLAG_QR) diff --git a/usr.sbin/bind/lib/dns/dst_lib.c b/usr.sbin/bind/lib/dns/dst_lib.c index 8c566b0b51d..46c37f6167e 100644 --- a/usr.sbin/bind/lib/dns/dst_lib.c +++ b/usr.sbin/bind/lib/dns/dst_lib.c @@ -16,7 +16,7 @@ /* * Principal Author: Brian Wellington - * $Id: dst_lib.c,v 1.3 2019/12/17 01:46:31 sthen Exp $ + * $Id: dst_lib.c,v 1.4 2020/01/09 14:18:29 florian Exp $ */ /*! \file */ @@ -35,7 +35,7 @@ *** Globals ***/ -LIBDNS_EXTERNAL_DATA isc_msgcat_t * dst_msgcat = NULL; +isc_msgcat_t * dst_msgcat = NULL; /*** diff --git a/usr.sbin/bind/lib/dns/include/dns/dnssec.h b/usr.sbin/bind/lib/dns/include/dns/dnssec.h index 5bf164e68d6..dedbfabb660 100644 --- a/usr.sbin/bind/lib/dns/include/dns/dnssec.h +++ b/usr.sbin/bind/lib/dns/include/dns/dnssec.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dnssec.h,v 1.3 2019/12/17 01:46:32 sthen Exp $ */ +/* $Id: dnssec.h,v 1.4 2020/01/09 14:18:29 florian Exp $ */ #ifndef DNS_DNSSEC_H #define DNS_DNSSEC_H 1 @@ -32,7 +32,7 @@ ISC_LANG_BEGINDECLS -LIBDNS_EXTERNAL_DATA extern isc_stats_t *dns_dnssec_stats; +extern isc_stats_t *dns_dnssec_stats; /*%< Maximum number of keys supported in a zone. */ #define DNS_MAXZONEKEYS 32 diff --git a/usr.sbin/bind/lib/dns/include/dns/lib.h b/usr.sbin/bind/lib/dns/include/dns/lib.h index f4d99b1f63c..7d523b40dcf 100644 --- a/usr.sbin/bind/lib/dns/include/dns/lib.h +++ b/usr.sbin/bind/lib/dns/include/dns/lib.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: lib.h,v 1.3 2019/12/17 01:46:32 sthen Exp $ */ +/* $Id: lib.h,v 1.4 2020/01/09 14:18:29 florian Exp $ */ #ifndef DNS_LIB_H #define DNS_LIB_H 1 @@ -29,8 +29,8 @@ ISC_LANG_BEGINDECLS /*% * Tuning: external query load in packets per seconds. */ -LIBDNS_EXTERNAL_DATA extern unsigned int dns_pps; -LIBDNS_EXTERNAL_DATA extern isc_msgcat_t *dns_msgcat; +extern unsigned int dns_pps; +extern isc_msgcat_t *dns_msgcat; void dns_lib_initmsgcat(void); diff --git a/usr.sbin/bind/lib/dns/include/dns/log.h b/usr.sbin/bind/lib/dns/include/dns/log.h index 007c8167732..c1e3f7f9aef 100644 --- a/usr.sbin/bind/lib/dns/include/dns/log.h +++ b/usr.sbin/bind/lib/dns/include/dns/log.h @@ -23,9 +23,9 @@ #include <isc/lang.h> #include <isc/log.h> -LIBDNS_EXTERNAL_DATA extern isc_log_t *dns_lctx; -LIBDNS_EXTERNAL_DATA extern isc_logcategory_t dns_categories[]; -LIBDNS_EXTERNAL_DATA extern isc_logmodule_t dns_modules[]; +extern isc_log_t *dns_lctx; +extern isc_logcategory_t dns_categories[]; +extern isc_logmodule_t dns_modules[]; #define DNS_LOGCATEGORY_NOTIFY (&dns_categories[0]) #define DNS_LOGCATEGORY_DATABASE (&dns_categories[1]) diff --git a/usr.sbin/bind/lib/dns/include/dns/masterdump.h b/usr.sbin/bind/lib/dns/include/dns/masterdump.h index 7f628142582..54184e63633 100644 --- a/usr.sbin/bind/lib/dns/include/dns/masterdump.h +++ b/usr.sbin/bind/lib/dns/include/dns/masterdump.h @@ -116,27 +116,27 @@ ISC_LANG_BEGINDECLS * tab stop for the TTL. The class is only printed for the first * rrset in the file and shares a tab stop with the RR type. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_default; +extern const dns_master_style_t dns_master_style_default; /*% * A master file style that dumps zones to a very generic format easily * imported/checked with external tools. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_full; +extern const dns_master_style_t dns_master_style_full; /*% * A master file style that prints explicit TTL values on each * record line, never using $TTL statements. The TTL has a tab * stop of its own, but the class and type share one. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t +extern const dns_master_style_t dns_master_style_explicitttl; /*% * A master style format designed for cache files. It prints explicit TTL * values on each record line and never uses $ORIGIN or relative names. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_cache; +extern const dns_master_style_t dns_master_style_cache; /*% * A master style that prints name, ttl, class, type, and value on @@ -144,22 +144,22 @@ LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_cache; * Intended for generating master files which can be easily parsed * by perl scripts and similar applications. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_simple; +extern const dns_master_style_t dns_master_style_simple; /*% * The style used for debugging, "dig" output, etc. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_debug; +extern const dns_master_style_t dns_master_style_debug; /*% * Similar to dns_master_style_debug but data is prepended with ";" */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_comment; +extern const dns_master_style_t dns_master_style_comment; /*% * The style used for dumping "key" zones. */ -LIBDNS_EXTERNAL_DATA extern const dns_master_style_t dns_master_style_keyzone; +extern const dns_master_style_t dns_master_style_keyzone; /*** *** Functions diff --git a/usr.sbin/bind/lib/dns/include/dns/name.h b/usr.sbin/bind/lib/dns/include/dns/name.h index 42758b05ed1..2784e479abd 100644 --- a/usr.sbin/bind/lib/dns/include/dns/name.h +++ b/usr.sbin/bind/lib/dns/include/dns/name.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: name.h,v 1.8 2019/12/17 01:46:32 sthen Exp $ */ +/* $Id: name.h,v 1.9 2020/01/09 14:18:29 florian Exp $ */ #ifndef DNS_NAME_H #define DNS_NAME_H 1 @@ -148,8 +148,8 @@ struct dns_name { #define DNS_NAME_CHECKMX 0x0010 /*%< Used by rdata. */ #define DNS_NAME_CHECKMXFAIL 0x0020 /*%< Used by rdata. */ -LIBDNS_EXTERNAL_DATA extern dns_name_t *dns_rootname; -LIBDNS_EXTERNAL_DATA extern dns_name_t *dns_wildcardname; +extern dns_name_t *dns_rootname; +extern dns_name_t *dns_wildcardname; /*% * Standard size of a wire format name diff --git a/usr.sbin/bind/lib/dns/include/dns/stats.h b/usr.sbin/bind/lib/dns/include/dns/stats.h index 0a86288e504..f65298cb36f 100644 --- a/usr.sbin/bind/lib/dns/include/dns/stats.h +++ b/usr.sbin/bind/lib/dns/include/dns/stats.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: stats.h,v 1.3 2019/12/17 01:46:32 sthen Exp $ */ +/* $Id: stats.h,v 1.4 2020/01/09 14:18:29 florian Exp $ */ #ifndef DNS_STATS_H #define DNS_STATS_H 1 @@ -152,7 +152,7 @@ enum { /*%< * (Obsoleted) */ -LIBDNS_EXTERNAL_DATA extern const char *dns_statscounter_names[]; +extern const char *dns_statscounter_names[]; /*% * Attributes for statistics counters of RRset and Rdatatype types. diff --git a/usr.sbin/bind/lib/dns/include/dns/tsig.h b/usr.sbin/bind/lib/dns/include/dns/tsig.h index 32f512dd059..b7069de13d1 100644 --- a/usr.sbin/bind/lib/dns/include/dns/tsig.h +++ b/usr.sbin/bind/lib/dns/include/dns/tsig.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: tsig.h,v 1.5 2020/01/09 13:56:37 florian Exp $ */ +/* $Id: tsig.h,v 1.6 2020/01/09 14:18:29 florian Exp $ */ #ifndef DNS_TSIG_H #define DNS_TSIG_H 1 @@ -37,15 +37,15 @@ /* * Algorithms. */ -LIBDNS_EXTERNAL_DATA extern dns_name_t *dns_tsig_hmacsha1_name; +extern dns_name_t *dns_tsig_hmacsha1_name; #define DNS_TSIG_HMACSHA1_NAME dns_tsig_hmacsha1_name -LIBDNS_EXTERNAL_DATA extern dns_name_t *dns_tsig_hmacsha224_name; +extern dns_name_t *dns_tsig_hmacsha224_name; #define DNS_TSIG_HMACSHA224_NAME dns_tsig_hmacsha224_name -LIBDNS_EXTERNAL_DATA extern dns_name_t *dns_tsig_hmacsha256_name; +extern dns_name_t *dns_tsig_hmacsha256_name; #define DNS_TSIG_HMACSHA256_NAME dns_tsig_hmacsha256_name -LIBDNS_EXTERNAL_DATA extern dns_name_t *dns_tsig_hmacsha384_name; +extern dns_name_t *dns_tsig_hmacsha384_name; #define DNS_TSIG_HMACSHA384_NAME dns_tsig_hmacsha384_name -LIBDNS_EXTERNAL_DATA extern dns_name_t *dns_tsig_hmacsha512_name; +extern dns_name_t *dns_tsig_hmacsha512_name; #define DNS_TSIG_HMACSHA512_NAME dns_tsig_hmacsha512_name /*% diff --git a/usr.sbin/bind/lib/dns/include/dns/version.h b/usr.sbin/bind/lib/dns/include/dns/version.h index bf15011db23..d329bc6fd39 100644 --- a/usr.sbin/bind/lib/dns/include/dns/version.h +++ b/usr.sbin/bind/lib/dns/include/dns/version.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: version.h,v 1.3 2019/12/17 01:46:32 sthen Exp $ */ +/* $Id: version.h,v 1.4 2020/01/09 14:18:29 florian Exp $ */ /*! \file dns/version.h */ @@ -23,12 +23,12 @@ #include <isc/platform.h> -LIBDNS_EXTERNAL_DATA extern const char dns_version[]; -LIBDNS_EXTERNAL_DATA extern const char dns_major[]; -LIBDNS_EXTERNAL_DATA extern const char dns_mapapi[]; +extern const char dns_version[]; +extern const char dns_major[]; +extern const char dns_mapapi[]; -LIBDNS_EXTERNAL_DATA extern const unsigned int dns_libinterface; -LIBDNS_EXTERNAL_DATA extern const unsigned int dns_librevision; -LIBDNS_EXTERNAL_DATA extern const unsigned int dns_libage; +extern const unsigned int dns_libinterface; +extern const unsigned int dns_librevision; +extern const unsigned int dns_libage; #endif /* DNS_VERSION_H */ diff --git a/usr.sbin/bind/lib/dns/include/dst/lib.h b/usr.sbin/bind/lib/dns/include/dst/lib.h index 7b59b79f959..96b3609e9c3 100644 --- a/usr.sbin/bind/lib/dns/include/dst/lib.h +++ b/usr.sbin/bind/lib/dns/include/dst/lib.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: lib.h,v 1.3 2019/12/17 01:46:33 sthen Exp $ */ +/* $Id: lib.h,v 1.4 2020/01/09 14:18:30 florian Exp $ */ #ifndef DST_LIB_H #define DST_LIB_H 1 @@ -26,7 +26,7 @@ ISC_LANG_BEGINDECLS -LIBDNS_EXTERNAL_DATA extern isc_msgcat_t *dst_msgcat; +extern isc_msgcat_t *dst_msgcat; void dst_lib_initmsgcat(void); diff --git a/usr.sbin/bind/lib/dns/lib.c b/usr.sbin/bind/lib/dns/lib.c index 4caf933911b..63c65f48b66 100644 --- a/usr.sbin/bind/lib/dns/lib.c +++ b/usr.sbin/bind/lib/dns/lib.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: lib.c,v 1.3 2019/12/17 01:46:32 sthen Exp $ */ +/* $Id: lib.c,v 1.4 2020/01/09 14:18:29 florian Exp $ */ /*! \file */ @@ -41,8 +41,8 @@ *** Globals ***/ -LIBDNS_EXTERNAL_DATA unsigned int dns_pps = 0U; -LIBDNS_EXTERNAL_DATA isc_msgcat_t * dns_msgcat = NULL; +unsigned int dns_pps = 0U; +isc_msgcat_t * dns_msgcat = NULL; /*** diff --git a/usr.sbin/bind/lib/dns/log.c b/usr.sbin/bind/lib/dns/log.c index 5d64991372f..4d8a7e9b73c 100644 --- a/usr.sbin/bind/lib/dns/log.c +++ b/usr.sbin/bind/lib/dns/log.c @@ -28,7 +28,7 @@ * When adding a new category, be sure to add the appropriate * \#define to <dns/log.h>. */ -LIBDNS_EXTERNAL_DATA isc_logcategory_t dns_categories[] = { +isc_logcategory_t dns_categories[] = { { "notify", 0 }, { "database", 0 }, { "security", 0 }, @@ -52,7 +52,7 @@ LIBDNS_EXTERNAL_DATA isc_logcategory_t dns_categories[] = { * When adding a new module, be sure to add the appropriate * \#define to <dns/log.h>. */ -LIBDNS_EXTERNAL_DATA isc_logmodule_t dns_modules[] = { +isc_logmodule_t dns_modules[] = { { "dns/db", 0 }, { "dns/rbtdb", 0 }, { "dns/rbtdb64", 0 }, @@ -87,7 +87,7 @@ LIBDNS_EXTERNAL_DATA isc_logmodule_t dns_modules[] = { { NULL, 0 } }; -LIBDNS_EXTERNAL_DATA isc_log_t *dns_lctx = NULL; +isc_log_t *dns_lctx = NULL; void dns_log_init(isc_log_t *lctx) { diff --git a/usr.sbin/bind/lib/dns/masterdump.c b/usr.sbin/bind/lib/dns/masterdump.c index b24e4b552e2..9e822fd0862 100644 --- a/usr.sbin/bind/lib/dns/masterdump.c +++ b/usr.sbin/bind/lib/dns/masterdump.c @@ -98,7 +98,7 @@ typedef struct dns_totext_ctx { isc_boolean_t current_ttl_valid; } dns_totext_ctx_t; -LIBDNS_EXTERNAL_DATA const dns_master_style_t +const dns_master_style_t dns_master_style_keyzone = { DNS_STYLEFLAG_OMIT_OWNER | DNS_STYLEFLAG_OMIT_CLASS | @@ -113,7 +113,7 @@ dns_master_style_keyzone = { 24, 24, 24, 32, 80, 8, UINT_MAX }; -LIBDNS_EXTERNAL_DATA const dns_master_style_t +const dns_master_style_t dns_master_style_default = { DNS_STYLEFLAG_OMIT_OWNER | DNS_STYLEFLAG_OMIT_CLASS | @@ -127,14 +127,14 @@ dns_master_style_default = { 24, 24, 24, 32, 80, 8, UINT_MAX }; -LIBDNS_EXTERNAL_DATA const dns_master_style_t +const dns_master_style_t dns_master_style_full = { DNS_STYLEFLAG_COMMENT | DNS_STYLEFLAG_RESIGN, 46, 46, 46, 64, 120, 8, UINT_MAX }; -LIBDNS_EXTERNAL_DATA const dns_master_style_t +const dns_master_style_t dns_master_style_explicitttl = { DNS_STYLEFLAG_OMIT_OWNER | DNS_STYLEFLAG_OMIT_CLASS | @@ -146,7 +146,7 @@ dns_master_style_explicitttl = { 24, 32, 32, 40, 80, 8, UINT_MAX }; -LIBDNS_EXTERNAL_DATA const dns_master_style_t +const dns_master_style_t dns_master_style_cache = { DNS_STYLEFLAG_OMIT_OWNER | DNS_STYLEFLAG_OMIT_CLASS | @@ -157,7 +157,7 @@ dns_master_style_cache = { 24, 32, 32, 40, 80, 8, UINT_MAX }; -LIBDNS_EXTERNAL_DATA const dns_master_style_t +const dns_master_style_t dns_master_style_simple = { 0, 24, 32, 32, 40, 80, 8, UINT_MAX @@ -166,7 +166,7 @@ dns_master_style_simple = { /*% * A style suitable for dns_rdataset_totext(). */ -LIBDNS_EXTERNAL_DATA const dns_master_style_t +const dns_master_style_t dns_master_style_debug = { DNS_STYLEFLAG_REL_OWNER, 24, 32, 40, 48, 80, 8, UINT_MAX @@ -175,7 +175,7 @@ dns_master_style_debug = { /*% * Similar, but with each line commented out. */ -LIBDNS_EXTERNAL_DATA const dns_master_style_t +const dns_master_style_t dns_master_style_comment = { DNS_STYLEFLAG_REL_OWNER | DNS_STYLEFLAG_MULTILINE | diff --git a/usr.sbin/bind/lib/dns/name.c b/usr.sbin/bind/lib/dns/name.c index c8513e8fbea..dc283fcf820 100644 --- a/usr.sbin/bind/lib/dns/name.c +++ b/usr.sbin/bind/lib/dns/name.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: name.c,v 1.15 2020/01/09 13:47:13 florian Exp $ */ +/* $Id: name.c,v 1.16 2020/01/09 14:18:29 florian Exp $ */ /*! \file */ @@ -177,7 +177,7 @@ static unsigned char root_offsets[] = { 0 }; static dns_name_t root = DNS_NAME_INITABSOLUTE(root_ndata, root_offsets); /* XXXDCL make const? */ -LIBDNS_EXTERNAL_DATA dns_name_t *dns_rootname = &root; +dns_name_t *dns_rootname = &root; static unsigned char wild_ndata[] = { "\001*" }; static unsigned char wild_offsets[] = { 0 }; @@ -186,7 +186,7 @@ static dns_name_t wild = DNS_NAME_INITNONABSOLUTE(wild_ndata, wild_offsets); /* XXXDCL make const? */ -LIBDNS_EXTERNAL_DATA dns_name_t *dns_wildcardname = &wild; +dns_name_t *dns_wildcardname = &wild; unsigned int dns_fullname_hash(dns_name_t *name, isc_boolean_t case_sensitive); diff --git a/usr.sbin/bind/lib/dns/resolver.c b/usr.sbin/bind/lib/dns/resolver.c index 39c2a4d3ffd..e3e11c2ff1e 100644 --- a/usr.sbin/bind/lib/dns/resolver.c +++ b/usr.sbin/bind/lib/dns/resolver.c @@ -1997,7 +1997,6 @@ add_triededns512(fetchctx_t *fctx, isc_sockaddr_t *address) { ISC_LIST_INITANDAPPEND(fctx->edns512, tried, link); } -#ifdef ISC_PLATFORM_USESIT static void compute_cc(resquery_t *query, unsigned char *cookie, size_t len) { #ifdef AES_SIT @@ -2072,7 +2071,6 @@ compute_cc(resquery_t *query, unsigned char *cookie, size_t len) { isc_hmacsha256_invalidate(&hmacsha256); #endif } -#endif static isc_boolean_t wouldvalidate(fetchctx_t *fctx) { @@ -2289,10 +2287,8 @@ resquery_send(resquery_t *query) { unsigned int version = 0; /* Default version. */ unsigned int flags = query->addrinfo->flags; isc_boolean_t reqnsid = res->view->requestnsid; -#ifdef ISC_PLATFORM_USESIT isc_boolean_t reqsit = res->view->requestsit; unsigned char cookie[64]; -#endif if ((flags & FCTX_ADDRINFO_EDNSOK) != 0 && (query->options & DNS_FETCHOPT_EDNS512) == 0) { @@ -2336,14 +2332,10 @@ resquery_send(resquery_t *query) { /* Request NSID/COOKIE for current view or peer? */ if (peer != NULL) { (void) dns_peer_getrequestnsid(peer, &reqnsid); -#ifdef ISC_PLATFORM_USESIT (void) dns_peer_getrequestsit(peer, &reqsit); -#endif } -#ifdef ISC_PLATFORM_USESIT if (NOSIT(query->addrinfo)) reqsit = ISC_FALSE; -#endif if (reqnsid) { INSIST(ednsopt < DNS_EDNSOPTIONS); ednsopts[ednsopt].code = DNS_OPT_NSID; @@ -2351,7 +2343,6 @@ resquery_send(resquery_t *query) { ednsopts[ednsopt].value = NULL; ednsopt++; } -#ifdef ISC_PLATFORM_USESIT if (reqsit) { INSIST(ednsopt < DNS_EDNSOPTIONS); ednsopts[ednsopt].code = DNS_OPT_COOKIE; @@ -2372,7 +2363,6 @@ resquery_send(resquery_t *query) { } ednsopt++; } -#endif query->ednsversion = version; result = fctx_addopt(fctx->qmessage, version, udpsize, ednsopts, ednsopt); @@ -7554,12 +7544,10 @@ process_opt(resquery_t *query, dns_rdataset_t *opt) { isc_result_t result; isc_uint16_t optcode; isc_uint16_t optlen; -#ifdef ISC_PLATFORM_USESIT unsigned char *optvalue; dns_adbaddrinfo_t *addrinfo; unsigned char cookie[8]; isc_boolean_t seen_cookie = ISC_FALSE; -#endif isc_boolean_t seen_nsid = ISC_FALSE; result = dns_rdataset_first(opt); @@ -7582,7 +7570,6 @@ process_opt(resquery_t *query, dns_rdataset_t *opt) { isc_buffer_forward(&optbuf, optlen); seen_nsid = ISC_TRUE; break; -#ifdef ISC_PLATFORM_USESIT case DNS_OPT_COOKIE: /* * Only process the first cookie option. @@ -7611,7 +7598,6 @@ process_opt(resquery_t *query, dns_rdataset_t *opt) { dns_resstatscounter_sitin); seen_cookie = ISC_TRUE; break; -#endif default: isc_buffer_forward(&optbuf, optlen); break; @@ -7847,7 +7833,6 @@ resquery_response(isc_task_t *task, isc_event_t *event) { process_opt(query, opt); #ifdef notyet -#ifdef ISC_PLATFORM_USESIT if (message->sitbad) { /* * If the COOKIE is bad assume it is a attack and retry. @@ -7858,7 +7843,6 @@ resquery_response(isc_task_t *task, isc_event_t *event) { goto done; } #endif -#endif /* * If the message is signed, check the signature. If not, this @@ -8021,7 +8005,6 @@ resquery_response(isc_task_t *task, isc_event_t *event) { message->rcode != dns_rcode_nxdomain) { isc_buffer_t b; char code[64]; -#ifdef ISC_PLATFORM_USESIT unsigned char cookie[64]; /* @@ -8038,7 +8021,6 @@ resquery_response(isc_task_t *task, isc_event_t *event) { FCTX_ADDRINFO_NOSIT); resend = ISC_TRUE; } else -#endif if (((message->rcode == dns_rcode_formerr || message->rcode == dns_rcode_notimp) || (message->rcode == dns_rcode_servfail && @@ -8085,7 +8067,6 @@ resquery_response(isc_task_t *task, isc_event_t *event) { } else if (message->rcode == dns_rcode_badvers) { unsigned int flags, mask; unsigned int version; -#ifdef ISC_PLATFORM_USESIT isc_boolean_t nosit = ISC_FALSE; /* @@ -8103,7 +8084,6 @@ resquery_response(isc_task_t *task, isc_event_t *event) { FCTX_ADDRINFO_NOSIT, FCTX_ADDRINFO_NOSIT); } -#endif INSIST(opt != NULL); version = (opt->ttl >> 16) & 0xff; @@ -8129,12 +8109,10 @@ resquery_response(isc_task_t *task, isc_event_t *event) { case 0: dns_adb_changeflags(fctx->adb, query->addrinfo, flags, mask); -#ifdef ISC_PLATFORM_USESIT if (nosit) { resend = ISC_TRUE; break; } -#endif /* FALLTHROUGH */ default: broken_server = DNS_R_BADVERS; diff --git a/usr.sbin/bind/lib/dns/ssu_external.c b/usr.sbin/bind/lib/dns/ssu_external.c index 4b6570ff3dc..e294bb6d017 100644 --- a/usr.sbin/bind/lib/dns/ssu_external.c +++ b/usr.sbin/bind/lib/dns/ssu_external.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: ssu_external.c,v 1.3 2020/01/09 13:47:13 florian Exp $ */ +/* $Id: ssu_external.c,v 1.4 2020/01/09 14:18:29 florian Exp $ */ /* * This implements external update-policy rules. This allows permission @@ -26,10 +26,8 @@ #include <errno.h> #include <unistd.h> -#ifdef ISC_PLATFORM_HAVESYSUNH #include <sys/socket.h> #include <sys/un.h> -#endif #include <isc/magic.h> #include <isc/mem.h> @@ -66,7 +64,6 @@ ssu_e_log(int level, const char *fmt, ...) { static int ux_socket_connect(const char *path) { int fd = -1; -#ifdef ISC_PLATFORM_HAVESYSUNH struct sockaddr_un addr; REQUIRE(path != NULL); @@ -100,7 +97,6 @@ ux_socket_connect(const char *path) { close(fd); return (-1); } -#endif return (fd); } diff --git a/usr.sbin/bind/lib/dns/stats.c b/usr.sbin/bind/lib/dns/stats.c index a1e7153201b..7cd2cfe990e 100644 --- a/usr.sbin/bind/lib/dns/stats.c +++ b/usr.sbin/bind/lib/dns/stats.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: stats.c,v 1.3 2019/12/17 01:46:32 sthen Exp $ */ +/* $Id: stats.c,v 1.4 2020/01/09 14:18:29 florian Exp $ */ /*! \file */ @@ -404,7 +404,7 @@ dns_opcodestats_dump(dns_stats_t *stats, dns_opcodestats_dumper_t dump_fn, /*** *** Obsolete variables and functions follow: ***/ -LIBDNS_EXTERNAL_DATA const char *dns_statscounter_names[DNS_STATS_NCOUNTERS] = +const char *dns_statscounter_names[DNS_STATS_NCOUNTERS] = { "success", "referral", diff --git a/usr.sbin/bind/lib/dns/tsig.c b/usr.sbin/bind/lib/dns/tsig.c index 0daff38d530..69efaa6fc36 100644 --- a/usr.sbin/bind/lib/dns/tsig.c +++ b/usr.sbin/bind/lib/dns/tsig.c @@ -15,7 +15,7 @@ */ /* - * $Id: tsig.c,v 1.11 2020/01/09 13:56:37 florian Exp $ + * $Id: tsig.c,v 1.12 2020/01/09 14:18:29 florian Exp $ */ /*! \file */ #include <config.h> @@ -77,31 +77,31 @@ static unsigned char hmacsha1_ndata[] = "\011hmac-sha1"; static unsigned char hmacsha1_offsets[] = { 0, 10 }; static dns_name_t hmacsha1 = DNS_NAME_INITABSOLUTE(hmacsha1_ndata, hmacsha1_offsets); -LIBDNS_EXTERNAL_DATA dns_name_t *dns_tsig_hmacsha1_name = &hmacsha1; +dns_name_t *dns_tsig_hmacsha1_name = &hmacsha1; static unsigned char hmacsha224_ndata[] = "\013hmac-sha224"; static unsigned char hmacsha224_offsets[] = { 0, 12 }; static dns_name_t hmacsha224 = DNS_NAME_INITABSOLUTE(hmacsha224_ndata, hmacsha224_offsets); -LIBDNS_EXTERNAL_DATA dns_name_t *dns_tsig_hmacsha224_name = &hmacsha224; +dns_name_t *dns_tsig_hmacsha224_name = &hmacsha224; static unsigned char hmacsha256_ndata[] = "\013hmac-sha256"; static unsigned char hmacsha256_offsets[] = { 0, 12 }; static dns_name_t hmacsha256 = DNS_NAME_INITABSOLUTE(hmacsha256_ndata, hmacsha256_offsets); -LIBDNS_EXTERNAL_DATA dns_name_t *dns_tsig_hmacsha256_name = &hmacsha256; +dns_name_t *dns_tsig_hmacsha256_name = &hmacsha256; static unsigned char hmacsha384_ndata[] = "\013hmac-sha384"; static unsigned char hmacsha384_offsets[] = { 0, 12 }; static dns_name_t hmacsha384 = DNS_NAME_INITABSOLUTE(hmacsha384_ndata, hmacsha384_offsets); -LIBDNS_EXTERNAL_DATA dns_name_t *dns_tsig_hmacsha384_name = &hmacsha384; +dns_name_t *dns_tsig_hmacsha384_name = &hmacsha384; static unsigned char hmacsha512_ndata[] = "\013hmac-sha512"; static unsigned char hmacsha512_offsets[] = { 0, 12 }; static dns_name_t hmacsha512 = DNS_NAME_INITABSOLUTE(hmacsha512_ndata, hmacsha512_offsets); -LIBDNS_EXTERNAL_DATA dns_name_t *dns_tsig_hmacsha512_name = &hmacsha512; +dns_name_t *dns_tsig_hmacsha512_name = &hmacsha512; static isc_result_t tsig_verify_tcp(isc_buffer_t *source, dns_message_t *msg); diff --git a/usr.sbin/bind/lib/dns/zone.c b/usr.sbin/bind/lib/dns/zone.c index 69d07a4d9c8..1c376d24a31 100644 --- a/usr.sbin/bind/lib/dns/zone.c +++ b/usr.sbin/bind/lib/dns/zone.c @@ -707,9 +707,9 @@ struct dns_include { #define HOUR 3600 #define DAY (24*HOUR) #define MONTH (30*DAY) -LIBDNS_EXTERNAL_DATA unsigned int dns_zone_mkey_hour = HOUR; -LIBDNS_EXTERNAL_DATA unsigned int dns_zone_mkey_day = DAY; -LIBDNS_EXTERNAL_DATA unsigned int dns_zone_mkey_month = MONTH; +unsigned int dns_zone_mkey_hour = HOUR; +unsigned int dns_zone_mkey_day = DAY; +unsigned int dns_zone_mkey_month = MONTH; #define SEND_BUFFER_SIZE 2048 |