diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2020-02-24 17:57:56 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2020-02-24 17:57:56 +0000 |
commit | 71abff6719ad5d5f4c5e7fdc1b0b5903cfdc06ee (patch) | |
tree | 9b6dca527fd983436b3b245da68a47a7760fbddb /usr.bin/dig/lib | |
parent | edd6bd69a0669228f77a850b308406060ef71b87 (diff) |
Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h
Diffstat (limited to 'usr.bin/dig/lib')
85 files changed, 47 insertions, 2561 deletions
diff --git a/usr.bin/dig/lib/dns/include/dns/rdata.h b/usr.bin/dig/lib/dns/include/dns/rdata.h index b2be30d2d42..5d2309aafaf 100644 --- a/usr.bin/dig/lib/dns/include/dns/rdata.h +++ b/usr.bin/dig/lib/dns/include/dns/rdata.h @@ -92,12 +92,50 @@ #include <dns/name.h> #include <dns/message.h> -#include "rdatastruct.h" - /*** *** Types ***/ +typedef struct dns_rdatacommon { + dns_rdataclass_t rdclass; + dns_rdatatype_t rdtype; + ISC_LINK(struct dns_rdatacommon) link; +} dns_rdatacommon_t; + +typedef struct dns_rdata_cname { + dns_rdatacommon_t common; + dns_name_t cname; +} dns_rdata_cname_t; + +typedef struct dns_rdata_ns { + dns_rdatacommon_t common; + dns_name_t name; +} dns_rdata_ns_t; + +typedef struct dns_rdata_soa { + dns_rdatacommon_t common; + dns_name_t origin; + dns_name_t contact; + uint32_t serial; /*%< host order */ + uint32_t refresh; /*%< host order */ + uint32_t retry; /*%< host order */ + uint32_t expire; /*%< host order */ + uint32_t minimum; /*%< host order */ +} dns_rdata_soa_t; + +typedef struct dns_rdata_any_tsig { + dns_rdatacommon_t common; + dns_name_t algorithm; + uint64_t timesigned; + uint16_t fudge; + uint16_t siglen; + unsigned char * signature; + uint16_t originalid; + uint16_t error; + uint16_t otherlen; + unsigned char * other; +} dns_rdata_any_tsig_t; + /*% ***** An 'rdata' is a handle to a binary region. The handle has an RR ***** class and type, and the data in the binary region is in the format diff --git a/usr.bin/dig/lib/dns/include/dns/rdataset.h b/usr.bin/dig/lib/dns/include/dns/rdataset.h index d03c4bbb2e6..eecd4b2c645 100644 --- a/usr.bin/dig/lib/dns/include/dns/rdataset.h +++ b/usr.bin/dig/lib/dns/include/dns/rdataset.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rdataset.h,v 1.8 2020/02/24 16:25:22 florian Exp $ */ +/* $Id: rdataset.h,v 1.9 2020/02/24 17:57:54 florian Exp $ */ #ifndef DNS_RDATASET_H #define DNS_RDATASET_H 1 @@ -51,7 +51,6 @@ */ #include <dns/types.h> -#include "rdatastruct.h" typedef enum { dns_rdatasetadditional_fromauth, diff --git a/usr.bin/dig/lib/dns/message.c b/usr.bin/dig/lib/dns/message.c index f24ebe888a2..6c622c96bf6 100644 --- a/usr.bin/dig/lib/dns/message.c +++ b/usr.bin/dig/lib/dns/message.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: message.c,v 1.15 2020/02/24 16:25:22 florian Exp $ */ +/* $Id: message.c,v 1.16 2020/02/24 17:57:54 florian Exp $ */ /*! \file */ @@ -22,14 +22,14 @@ *** Imports ***/ +#include <sys/socket.h> +#include <arpa/inet.h> #include <ctype.h> #include <stdlib.h> +#include <string.h> #include <isc/buffer.h> - - -#include <string.h> /* Required for HP/UX (and others?) */ #include <isc/util.h> #include <dns/log.h> diff --git a/usr.bin/dig/lib/dns/rdata.c b/usr.bin/dig/lib/dns/rdata.c index e6fff4612dc..23ff09bb54d 100644 --- a/usr.bin/dig/lib/dns/rdata.c +++ b/usr.bin/dig/lib/dns/rdata.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rdata.c,v 1.22 2020/02/24 17:47:50 florian Exp $ */ +/* $Id: rdata.c,v 1.23 2020/02/24 17:57:54 florian Exp $ */ /*! \file */ @@ -33,7 +33,6 @@ #include <dns/keyvalues.h> #include <dns/rcode.h> #include <dns/rdata.h> -#include "rdatastruct.h" #include <dns/rdatatype.h> #include <dns/result.h> #include <dns/time.h> diff --git a/usr.bin/dig/lib/dns/rdata/any_255/tsig_250.h b/usr.bin/dig/lib/dns/rdata/any_255/tsig_250.h deleted file mode 100644 index 8e5672865d4..00000000000 --- a/usr.bin/dig/lib/dns/rdata/any_255/tsig_250.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: tsig_250.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -#ifndef ANY_255_TSIG_250_H -#define ANY_255_TSIG_250_H 1 - -/*% RFC2845 */ -typedef struct dns_rdata_any_tsig { - dns_rdatacommon_t common; - dns_name_t algorithm; - uint64_t timesigned; - uint16_t fudge; - uint16_t siglen; - unsigned char * signature; - uint16_t originalid; - uint16_t error; - uint16_t otherlen; - unsigned char * other; -} dns_rdata_any_tsig_t; - -#endif /* ANY_255_TSIG_250_H */ diff --git a/usr.bin/dig/lib/dns/rdata/ch_3/a_1.h b/usr.bin/dig/lib/dns/rdata/ch_3/a_1.h deleted file mode 100644 index 27ea34d6349..00000000000 --- a/usr.bin/dig/lib/dns/rdata/ch_3/a_1.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: a_1.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/* by Bjorn.Victor@it.uu.se, 2005-05-07 */ -/* Based on generic/mx_15.h */ - -#ifndef CH_3_A_1_H -#define CH_3_A_1_H 1 - -typedef uint16_t ch_addr_t; - -typedef struct dns_rdata_ch_a { - dns_rdatacommon_t common; - dns_name_t ch_addr_dom; /* ch-addr domain for back mapping */ - ch_addr_t ch_addr; /* chaos address (16 bit) network order */ -} dns_rdata_ch_a_t; - -#endif /* CH_3_A_1_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/afsdb_18.h b/usr.bin/dig/lib/dns/rdata/generic/afsdb_18.h deleted file mode 100644 index efc60bc145e..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/afsdb_18.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_AFSDB_18_H -#define GENERIC_AFSDB_18_H 1 - -/* $Id: afsdb_18.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC1183 */ - -typedef struct dns_rdata_afsdb { - dns_rdatacommon_t common; - uint16_t subtype; - dns_name_t server; -} dns_rdata_afsdb_t; - -#endif /* GENERIC_AFSDB_18_H */ - diff --git a/usr.bin/dig/lib/dns/rdata/generic/avc_258.h b/usr.bin/dig/lib/dns/rdata/generic/avc_258.h deleted file mode 100644 index 698e2ff0ac5..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/avc_258.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_AVC_258_H -#define GENERIC_AVC_258_H 1 - -typedef dns_rdata_txt_string_t dns_rdata_avc_string_t; - -typedef struct dns_rdata_avc { - dns_rdatacommon_t common; - unsigned char *data; - uint16_t length; - /* private */ - uint16_t offset; -} dns_rdata_avc_t; - -#endif /* GENERIC_AVC_258_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/caa_257.h b/usr.bin/dig/lib/dns/rdata/generic/caa_257.h deleted file mode 100644 index b0f56c6fba3..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/caa_257.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_CAA_257_H -#define GENERIC_CAA_257_H 1 - -/* $Id: caa_257.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_caa { - dns_rdatacommon_t common; - uint8_t flags; - unsigned char * tag; - uint8_t tag_len; - unsigned char *value; - uint16_t value_len; -} dns_rdata_caa_t; - -#endif /* GENERIC_CAA_257_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/cdnskey_60.h b/usr.bin/dig/lib/dns/rdata/generic/cdnskey_60.h deleted file mode 100644 index ee0e6c6b61d..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/cdnskey_60.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_CDNSKEY_60_H -#define GENERIC_CDNSKEY_60_H 1 - -/* CDNSKEY records have the same RDATA fields as DNSKEY records. */ -typedef struct dns_rdata_key dns_rdata_cdnskey_t; - -#endif /* GENERIC_CDNSKEY_60_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/cds_59.h b/usr.bin/dig/lib/dns/rdata/generic/cds_59.h deleted file mode 100644 index 650edf15255..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/cds_59.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_CDS_59_H -#define GENERIC_CDS_59_H 1 - -/* CDS records have the same RDATA fields as DS records. */ -typedef struct dns_rdata_ds dns_rdata_cds_t; - -#endif /* GENERIC_CDS_59_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/cert_37.h b/usr.bin/dig/lib/dns/rdata/generic/cert_37.h deleted file mode 100644 index d5f0dbf6f9f..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/cert_37.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: cert_37.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -#ifndef GENERIC_CERT_37_H -#define GENERIC_CERT_37_H 1 - -/*% RFC2538 */ -typedef struct dns_rdata_cert { - dns_rdatacommon_t common; - uint16_t type; - uint16_t key_tag; - uint8_t algorithm; - uint16_t length; - unsigned char *certificate; -} dns_rdata_cert_t; - -#endif /* GENERIC_CERT_37_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/cname_5.h b/usr.bin/dig/lib/dns/rdata/generic/cname_5.h deleted file mode 100644 index 07b22436f28..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/cname_5.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: cname_5.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -#ifndef GENERIC_CNAME_5_H -#define GENERIC_CNAME_5_H 1 - -typedef struct dns_rdata_cname { - dns_rdatacommon_t common; - dns_name_t cname; -} dns_rdata_cname_t; - -#endif /* GENERIC_CNAME_5_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/csync_62.h b/usr.bin/dig/lib/dns/rdata/generic/csync_62.h deleted file mode 100644 index b84f0817a5d..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/csync_62.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_CSYNC_62_H -#define GENERIC_CSYNC_62_H 1 - -/*! - * \brief Per RFC 7477 - */ - -typedef struct dns_rdata_csync { - dns_rdatacommon_t common; - uint32_t serial; - uint16_t flags; - unsigned char *typebits; - uint16_t len; -} dns_rdata_csync_t; - -#endif /* GENERIC_CSYNC_62_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/dlv_32769.h b/usr.bin/dig/lib/dns/rdata/generic/dlv_32769.h deleted file mode 100644 index 6934ea24b6e..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/dlv_32769.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: dlv_32769.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/* draft-ietf-dnsext-delegation-signer-05.txt */ -#ifndef GENERIC_DLV_32769_H -#define GENERIC_DLV_32769_H 1 - -typedef struct dns_rdata_ds dns_rdata_dlv_t; - -#endif /* GENERIC_DLV_32769_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/dname_39.h b/usr.bin/dig/lib/dns/rdata/generic/dname_39.h deleted file mode 100644 index e01b04b8de5..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/dname_39.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_DNAME_39_H -#define GENERIC_DNAME_39_H 1 - -/* $Id: dname_39.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief per RFC2672 */ - -typedef struct dns_rdata_dname { - dns_rdatacommon_t common; - dns_name_t dname; -} dns_rdata_dname_t; - -#endif /* GENERIC_DNAME_39_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/dnskey_48.h b/usr.bin/dig/lib/dns/rdata/generic/dnskey_48.h deleted file mode 100644 index 5e71254a3af..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/dnskey_48.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_DNSKEY_48_H -#define GENERIC_DNSKEY_48_H 1 - -/*! - * \brief per RFC2535 - */ - -typedef struct dns_rdata_key dns_rdata_dnskey_t; - -#endif /* GENERIC_DNSKEY_48_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/doa_259.h b/usr.bin/dig/lib/dns/rdata/generic/doa_259.h deleted file mode 100644 index 0e5a2459f33..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/doa_259.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_DOA_259_H -#define GENERIC_DOA_259_H 1 - -typedef struct dns_rdata_doa { - dns_rdatacommon_t common; - unsigned char * mediatype; - unsigned char * data; - uint32_t enterprise; - uint32_t type; - uint16_t data_len; - uint8_t location; - uint8_t mediatype_len; -} dns_rdata_doa_t; - -#endif /* GENERIC_DOA_259_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/ds_43.h b/usr.bin/dig/lib/dns/rdata/generic/ds_43.h deleted file mode 100644 index fb236e83b5e..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/ds_43.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: ds_43.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -#ifndef GENERIC_DS_43_H -#define GENERIC_DS_43_H 1 - -/*! - * \brief per draft-ietf-dnsext-delegation-signer-05.txt */ -typedef struct dns_rdata_ds { - dns_rdatacommon_t common; - uint16_t key_tag; - uint8_t algorithm; - uint8_t digest_type; - uint16_t length; - unsigned char *digest; -} dns_rdata_ds_t; - -#endif /* GENERIC_DS_43_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/eui48_108.h b/usr.bin/dig/lib/dns/rdata/generic/eui48_108.h deleted file mode 100644 index 14a65dc6969..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/eui48_108.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_EUI48_108_H -#define GENERIC_EUI48_108_H 1 - -typedef struct dns_rdata_eui48 { - dns_rdatacommon_t common; - unsigned char eui48[6]; -} dns_rdata_eui48_t; - -#endif /* GENERIC_EUI48_10k_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/eui64_109.h b/usr.bin/dig/lib/dns/rdata/generic/eui64_109.h deleted file mode 100644 index 60fc0b39512..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/eui64_109.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_EUI64_109_H -#define GENERIC_EUI64_109_H 1 - -typedef struct dns_rdata_eui64 { - dns_rdatacommon_t common; - unsigned char eui64[8]; -} dns_rdata_eui64_t; - -#endif /* GENERIC_EUI64_10k_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/gpos_27.h b/usr.bin/dig/lib/dns/rdata/generic/gpos_27.h deleted file mode 100644 index a62a2ff4af6..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/gpos_27.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_GPOS_27_H -#define GENERIC_GPOS_27_H 1 - -/* $Id: gpos_27.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief per RFC1712 */ - -typedef struct dns_rdata_gpos { - dns_rdatacommon_t common; - char *longitude; - char *latitude; - char *altitude; - uint8_t long_len; - uint8_t lat_len; - uint8_t alt_len; -} dns_rdata_gpos_t; - -#endif /* GENERIC_GPOS_27_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/hinfo_13.h b/usr.bin/dig/lib/dns/rdata/generic/hinfo_13.h deleted file mode 100644 index 92b120315db..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/hinfo_13.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_HINFO_13_H -#define GENERIC_HINFO_13_H 1 - -/* $Id: hinfo_13.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_hinfo { - dns_rdatacommon_t common; - char *cpu; - char *os; - uint8_t cpu_len; - uint8_t os_len; -} dns_rdata_hinfo_t; - -#endif /* GENERIC_HINFO_13_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/hip_55.h b/usr.bin/dig/lib/dns/rdata/generic/hip_55.h deleted file mode 100644 index 5a95cd43d06..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/hip_55.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: hip_55.h,v 1.2 2020/02/12 13:05:04 jsg Exp $ */ - -#ifndef GENERIC_HIP_5_H -#define GENERIC_HIP_5_H 1 - -/* RFC 5205 */ - -typedef struct dns_rdata_hip { - dns_rdatacommon_t common; - unsigned char * hit; - unsigned char * key; - unsigned char * servers; - uint8_t algorithm; - uint8_t hit_len; - uint16_t key_len; - uint16_t servers_len; - /* Private */ - uint16_t offset; -} dns_rdata_hip_t; - -isc_result_t -dns_rdata_hip_first(dns_rdata_hip_t *); - -isc_result_t -dns_rdata_hip_next(dns_rdata_hip_t *); - -#endif /* GENERIC_HIP_5_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/ipseckey_45.h b/usr.bin/dig/lib/dns/rdata/generic/ipseckey_45.h deleted file mode 100644 index 3b5950da431..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/ipseckey_45.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: ipseckey_45.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -#ifndef GENERIC_IPSECKEY_45_H -#define GENERIC_IPSECKEY_45_H 1 - -typedef struct dns_rdata_ipseckey { - dns_rdatacommon_t common; - uint8_t precedence; - uint8_t gateway_type; - uint8_t algorithm; - struct in_addr in_addr; /* gateway type 1 */ - struct in6_addr in6_addr; /* gateway type 2 */ - dns_name_t gateway; /* gateway type 3 */ - unsigned char *key; - uint16_t keylength; -} dns_rdata_ipseckey_t; - -#endif /* GENERIC_IPSECKEY_45_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/isdn_20.h b/usr.bin/dig/lib/dns/rdata/generic/isdn_20.h deleted file mode 100644 index 244c0a4dfde..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/isdn_20.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_ISDN_20_H -#define GENERIC_ISDN_20_H 1 - -/* $Id: isdn_20.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC1183 */ - -typedef struct dns_rdata_isdn { - dns_rdatacommon_t common; - char *isdn; - char *subaddress; - uint8_t isdn_len; - uint8_t subaddress_len; -} dns_rdata_isdn_t; - -#endif /* GENERIC_ISDN_20_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/key_25.h b/usr.bin/dig/lib/dns/rdata/generic/key_25.h deleted file mode 100644 index afee0285abd..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/key_25.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_KEY_25_H -#define GENERIC_KEY_25_H 1 - -/* $Id: key_25.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC2535 */ - -typedef struct dns_rdata_key { - dns_rdatacommon_t common; - uint16_t flags; - uint8_t protocol; - uint8_t algorithm; - uint16_t datalen; - unsigned char * data; -} dns_rdata_key_t; - - -#endif /* GENERIC_KEY_25_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/keydata_65533.h b/usr.bin/dig/lib/dns/rdata/generic/keydata_65533.h deleted file mode 100644 index fc4853e9e97..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/keydata_65533.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_KEYDATA_65533_H -#define GENERIC_KEYDATA_65533_H 1 - -/* $Id: keydata_65533.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_keydata { - dns_rdatacommon_t common; - uint32_t refresh; /* Timer for refreshing data */ - uint32_t addhd; /* Hold-down timer for adding */ - uint32_t removehd; /* Hold-down timer for removing */ - uint16_t flags; /* Copy of DNSKEY_48 */ - uint8_t protocol; - uint8_t algorithm; - uint16_t datalen; - unsigned char * data; -} dns_rdata_keydata_t; - -#endif /* GENERIC_KEYDATA_65533_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/l32_105.h b/usr.bin/dig/lib/dns/rdata/generic/l32_105.h deleted file mode 100644 index eda6b343577..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/l32_105.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_L32_105_H -#define GENERIC_L32_105_H 1 - -typedef struct dns_rdata_l32 { - dns_rdatacommon_t common; - uint16_t pref; - struct in_addr l32; -} dns_rdata_l32_t; - -#endif /* GENERIC_L32_105_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/l64_106.h b/usr.bin/dig/lib/dns/rdata/generic/l64_106.h deleted file mode 100644 index 396220cf80a..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/l64_106.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_L64_106_H -#define GENERIC_L64_106_H 1 - -typedef struct dns_rdata_l64 { - dns_rdatacommon_t common; - uint16_t pref; - unsigned char l64[8]; -} dns_rdata_l64_t; - -#endif /* GENERIC_L64_106_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/loc_29.h b/usr.bin/dig/lib/dns/rdata/generic/loc_29.h deleted file mode 100644 index 32ce16a792b..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/loc_29.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_LOC_29_H -#define GENERIC_LOC_29_H 1 - -/* $Id: loc_29.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC1876 */ - -typedef struct dns_rdata_loc_0 { - uint8_t version; /* must be first and zero */ - uint8_t size; - uint8_t horizontal; - uint8_t vertical; - uint32_t latitude; - uint32_t longitude; - uint32_t altitude; -} dns_rdata_loc_0_t; - -typedef struct dns_rdata_loc { - dns_rdatacommon_t common; - union { - dns_rdata_loc_0_t v0; - } v; -} dns_rdata_loc_t; - -#endif /* GENERIC_LOC_29_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/lp_107.h b/usr.bin/dig/lib/dns/rdata/generic/lp_107.h deleted file mode 100644 index f45e6a29aa8..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/lp_107.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_LP_107_H -#define GENERIC_LP_107_H 1 - -typedef struct dns_rdata_lp { - dns_rdatacommon_t common; - uint16_t pref; - dns_name_t lp; -} dns_rdata_lp_t; - -#endif /* GENERIC_LP_107_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/mb_7.h b/usr.bin/dig/lib/dns/rdata/generic/mb_7.h deleted file mode 100644 index 9150d5fe178..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/mb_7.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_MB_7_H -#define GENERIC_MB_7_H 1 - -/* $Id: mb_7.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_mb { - dns_rdatacommon_t common; - dns_name_t mb; -} dns_rdata_mb_t; - -#endif /* GENERIC_MB_7_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/md_3.h b/usr.bin/dig/lib/dns/rdata/generic/md_3.h deleted file mode 100644 index 0e15ec06a51..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/md_3.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_MD_3_H -#define GENERIC_MD_3_H 1 - -/* $Id: md_3.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_md { - dns_rdatacommon_t common; - dns_name_t md; -} dns_rdata_md_t; - - -#endif /* GENERIC_MD_3_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/mf_4.h b/usr.bin/dig/lib/dns/rdata/generic/mf_4.h deleted file mode 100644 index f96ee4df8e4..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/mf_4.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_MF_4_H -#define GENERIC_MF_4_H 1 - -/* $Id: mf_4.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_mf { - dns_rdatacommon_t common; - dns_name_t mf; -} dns_rdata_mf_t; - -#endif /* GENERIC_MF_4_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/mg_8.h b/usr.bin/dig/lib/dns/rdata/generic/mg_8.h deleted file mode 100644 index 82c8b8485ce..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/mg_8.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_MG_8_H -#define GENERIC_MG_8_H 1 - -/* $Id: mg_8.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_mg { - dns_rdatacommon_t common; - dns_name_t mg; -} dns_rdata_mg_t; - -#endif /* GENERIC_MG_8_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/minfo_14.h b/usr.bin/dig/lib/dns/rdata/generic/minfo_14.h deleted file mode 100644 index 48db26ac700..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/minfo_14.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_MINFO_14_H -#define GENERIC_MINFO_14_H 1 - -/* $Id: minfo_14.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_minfo { - dns_rdatacommon_t common; - dns_name_t rmailbox; - dns_name_t emailbox; -} dns_rdata_minfo_t; - -#endif /* GENERIC_MINFO_14_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/mr_9.h b/usr.bin/dig/lib/dns/rdata/generic/mr_9.h deleted file mode 100644 index c066f85e181..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/mr_9.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_MR_9_H -#define GENERIC_MR_9_H 1 - -/* $Id: mr_9.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_mr { - dns_rdatacommon_t common; - dns_name_t mr; -} dns_rdata_mr_t; - -#endif /* GENERIC_MR_9_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/mx_15.h b/usr.bin/dig/lib/dns/rdata/generic/mx_15.h deleted file mode 100644 index 96bc9b1ceeb..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/mx_15.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_MX_15_H -#define GENERIC_MX_15_H 1 - -/* $Id: mx_15.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_mx { - dns_rdatacommon_t common; - uint16_t pref; - dns_name_t mx; -} dns_rdata_mx_t; - -#endif /* GENERIC_MX_15_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/naptr_35.h b/usr.bin/dig/lib/dns/rdata/generic/naptr_35.h deleted file mode 100644 index a988a929504..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/naptr_35.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_NAPTR_35_H -#define GENERIC_NAPTR_35_H 1 - -/* $Id: naptr_35.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC2915 */ - -typedef struct dns_rdata_naptr { - dns_rdatacommon_t common; - uint16_t order; - uint16_t preference; - char *flags; - uint8_t flags_len; - char *service; - uint8_t service_len; - char *regexp; - uint8_t regexp_len; - dns_name_t replacement; -} dns_rdata_naptr_t; - -#endif /* GENERIC_NAPTR_35_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/nid_104.h b/usr.bin/dig/lib/dns/rdata/generic/nid_104.h deleted file mode 100644 index 181917378d8..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/nid_104.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_NID_104_H -#define GENERIC_NID_104_H 1 - -typedef struct dns_rdata_nid { - dns_rdatacommon_t common; - uint16_t pref; - unsigned char nid[8]; -} dns_rdata_nid_t; - -#endif /* GENERIC_NID_104_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/ninfo_56.h b/usr.bin/dig/lib/dns/rdata/generic/ninfo_56.h deleted file mode 100644 index 43eb7a3fd8e..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/ninfo_56.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_NINFO_56_H -#define GENERIC_NINFO_56_H 1 - -typedef struct dns_rdata_txt_string dns_rdata_ninfo_string_t; - -typedef struct dns_rdata_txt dns_rdata_ninfo_t; - -#endif /* GENERIC_NINFO_16_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/ns_2.h b/usr.bin/dig/lib/dns/rdata/generic/ns_2.h deleted file mode 100644 index a93e7072434..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/ns_2.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_NS_2_H -#define GENERIC_NS_2_H 1 - -/* $Id: ns_2.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_ns { - dns_rdatacommon_t common; - dns_name_t name; -} dns_rdata_ns_t; - - -#endif /* GENERIC_NS_2_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/nsec3_50.h b/usr.bin/dig/lib/dns/rdata/generic/nsec3_50.h deleted file mode 100644 index 92575b3e014..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/nsec3_50.h +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - - -#ifndef GENERIC_NSEC3_50_H -#define GENERIC_NSEC3_50_H 1 - -/* $Id: nsec3_50.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC 5155 */ - -typedef struct dns_rdata_nsec3 { - dns_rdatacommon_t common; - dns_hash_t hash; - unsigned char flags; - dns_iterations_t iterations; - unsigned char salt_length; - unsigned char next_length; - uint16_t len; - unsigned char *salt; - unsigned char *next; - unsigned char *typebits; -} dns_rdata_nsec3_t; - -/* - * The corresponding NSEC3 interval is OPTOUT indicating possible - * insecure delegations. - */ -#define DNS_NSEC3FLAG_OPTOUT 0x01U - -/*% - * The following flags are used in the private-type record (implemented in - * lib/dns/private.c) which is used to store NSEC3PARAM data during the - * time when it is not legal to have an actual NSEC3PARAM record in the - * zone. They are defined here because the private-type record uses the - * same flags field for the OPTOUT flag above and for the private flags - * below. XXX: This should be considered for refactoring. - */ - -/*% - * Non-standard, private type only. - * - * Create a corresponding NSEC3 chain. - * Once the NSEC3 chain is complete this flag will be removed to signal - * that there is a complete chain. - * - * This flag is automatically set when a NSEC3PARAM record is added to - * the zone via UPDATE. - * - * NSEC3PARAM records containing this flag should never be published, - * but if they are, they should be ignored by RFC 5155 compliant - * nameservers. - */ -#define DNS_NSEC3FLAG_CREATE 0x80U - -/*% - * Non-standard, private type only. - * - * The corresponding NSEC3 set is to be removed once the NSEC chain - * has been generated. - * - * This flag is automatically set when the last active NSEC3PARAM record - * is removed from the zone via UPDATE. - * - * NSEC3PARAM records containing this flag should never be published, - * but if they are, they should be ignored by RFC 5155 compliant - * nameservers. - */ -#define DNS_NSEC3FLAG_REMOVE 0x40U - -/*% - * Non-standard, private type only. - * - * When set with the CREATE flag, a corresponding NSEC3 chain will be - * created when the zone becomes capable of supporting one (i.e., when it - * has a DNSKEY RRset containing at least one NSEC3-capable algorithm). - * Without this flag, NSEC3 chain creation would be attempted immediately, - * fail, and the private type record would be removed. With it, the NSEC3 - * parameters are stored until they can be used. When the zone has the - * necessary prerequisites for NSEC3, then the INITIAL flag can be cleared, - * and the record will be cleaned up normally. - * - * NSEC3PARAM records containing this flag should never be published, but - * if they are, they should be ignored by RFC 5155 compliant nameservers. - */ -#define DNS_NSEC3FLAG_INITIAL 0x20U - -/*% - * Non-standard, private type only. - * - * Prevent the creation of a NSEC chain before the last NSEC3 chain - * is removed. This will normally only be set when the zone is - * transitioning from secure with NSEC3 chains to insecure. - * - * NSEC3PARAM records containing this flag should never be published, - * but if they are, they should be ignored by RFC 5155 compliant - * nameservers. - */ -#define DNS_NSEC3FLAG_NONSEC 0x10U - -#endif /* GENERIC_NSEC3_50_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/nsec3param_51.h b/usr.bin/dig/lib/dns/rdata/generic/nsec3param_51.h deleted file mode 100644 index 28911a6fb68..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/nsec3param_51.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - - -#ifndef GENERIC_NSEC3PARAM_51_H -#define GENERIC_NSEC3PARAM_51_H 1 - -/* $Id: nsec3param_51.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC 5155 */ - -typedef struct dns_rdata_nsec3param { - dns_rdatacommon_t common; - dns_hash_t hash; - unsigned char flags; /* DNS_NSEC3FLAG_* */ - dns_iterations_t iterations; - unsigned char salt_length; - unsigned char *salt; -} dns_rdata_nsec3param_t; - -#endif /* GENERIC_NSEC3PARAM_51_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/nsec_47.h b/usr.bin/dig/lib/dns/rdata/generic/nsec_47.h deleted file mode 100644 index 2166ffb9222..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/nsec_47.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_NSEC_47_H -#define GENERIC_NSEC_47_H 1 - -/* $Id: nsec_47.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC 3845 */ - -typedef struct dns_rdata_nsec { - dns_rdatacommon_t common; - dns_name_t next; - unsigned char *typebits; - uint16_t len; -} dns_rdata_nsec_t; - -#endif /* GENERIC_NSEC_47_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/null_10.h b/usr.bin/dig/lib/dns/rdata/generic/null_10.h deleted file mode 100644 index c06be972b74..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/null_10.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_NULL_10_H -#define GENERIC_NULL_10_H 1 - -/* $Id: null_10.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_null { - dns_rdatacommon_t common; - uint16_t length; - unsigned char *data; -} dns_rdata_null_t; - - -#endif /* GENERIC_NULL_10_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/nxt_30.h b/usr.bin/dig/lib/dns/rdata/generic/nxt_30.h deleted file mode 100644 index 36e8f0d381b..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/nxt_30.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_NXT_30_H -#define GENERIC_NXT_30_H 1 - -/* $Id: nxt_30.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief RFC2535 */ - -typedef struct dns_rdata_nxt { - dns_rdatacommon_t common; - dns_name_t next; - unsigned char *typebits; - uint16_t len; -} dns_rdata_nxt_t; - -#endif /* GENERIC_NXT_30_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/openpgpkey_61.h b/usr.bin/dig/lib/dns/rdata/generic/openpgpkey_61.h deleted file mode 100644 index da72fe66997..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/openpgpkey_61.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_OPENPGPKEY_61_H -#define GENERIC_OPENPGPKEY_61_H 1 - -typedef struct dns_rdata_openpgpkey { - dns_rdatacommon_t common; - uint16_t length; - unsigned char * keyring; -} dns_rdata_openpgpkey_t; - -#endif /* GENERIC_OPENPGPKEY_61_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/opt_41.h b/usr.bin/dig/lib/dns/rdata/generic/opt_41.h deleted file mode 100644 index 7d8b00326f8..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/opt_41.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_OPT_41_H -#define GENERIC_OPT_41_H 1 - -/* $Id: opt_41.h,v 1.3 2020/02/13 13:53:01 jsg Exp $ */ - -/*! - * \brief Per RFC2671 */ - -typedef struct dns_rdata_opt_opcode { - uint16_t opcode; - uint16_t length; - unsigned char *data; -} dns_rdata_opt_opcode_t; - -typedef struct dns_rdata_opt { - dns_rdatacommon_t common; - unsigned char *options; - uint16_t length; - /* private */ - uint16_t offset; -} dns_rdata_opt_t; - -#endif /* GENERIC_OPT_41_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/proforma.h b/usr.bin/dig/lib/dns/rdata/generic/proforma.h deleted file mode 100644 index 46cfb6586e4..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/proforma.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_PROFORMA_H -#define GENERIC_PROFORMA_H 1 - -/* $Id: proforma.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_# { - dns_rdatacommon_t common; - /* type & class specific elements */ -} dns_rdata_#_t; - -#endif /* GENERIC_PROFORMA_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/ptr_12.h b/usr.bin/dig/lib/dns/rdata/generic/ptr_12.h deleted file mode 100644 index e2697cfea36..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/ptr_12.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_PTR_12_H -#define GENERIC_PTR_12_H 1 - -/* $Id: ptr_12.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_ptr { - dns_rdatacommon_t common; - dns_name_t ptr; -} dns_rdata_ptr_t; - -#endif /* GENERIC_PTR_12_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/rkey_57.h b/usr.bin/dig/lib/dns/rdata/generic/rkey_57.h deleted file mode 100644 index 106b7c9aa76..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/rkey_57.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_RKEY_57_H -#define GENERIC_RKEY_57_H 1 - -typedef struct dns_rdata_key dns_rdata_rkey_t; - -#endif /* GENERIC_RKEY_57_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/rp_17.h b/usr.bin/dig/lib/dns/rdata/generic/rp_17.h deleted file mode 100644 index e184506692f..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/rp_17.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_RP_17_H -#define GENERIC_RP_17_H 1 - -/* $Id: rp_17.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC1183 */ - -typedef struct dns_rdata_rp { - dns_rdatacommon_t common; - dns_name_t mail; - dns_name_t text; -} dns_rdata_rp_t; - - -#endif /* GENERIC_RP_17_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/rrsig_46.h b/usr.bin/dig/lib/dns/rdata/generic/rrsig_46.h deleted file mode 100644 index 8bba72cc28c..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/rrsig_46.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_DNSSIG_46_H -#define GENERIC_DNSSIG_46_H 1 - -/* $Id: rrsig_46.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC2535 */ -typedef struct dns_rdata_rrsig { - dns_rdatacommon_t common; - dns_rdatatype_t covered; - dns_secalg_t algorithm; - uint8_t labels; - uint32_t originalttl; - uint32_t timeexpire; - uint32_t timesigned; - uint16_t keyid; - dns_name_t signer; - uint16_t siglen; - unsigned char * signature; -} dns_rdata_rrsig_t; - - -#endif /* GENERIC_DNSSIG_46_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/rt_21.h b/usr.bin/dig/lib/dns/rdata/generic/rt_21.h deleted file mode 100644 index e1a82d388c1..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/rt_21.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_RT_21_H -#define GENERIC_RT_21_H 1 - -/* $Id: rt_21.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC1183 */ - -typedef struct dns_rdata_rt { - dns_rdatacommon_t common; - uint16_t preference; - dns_name_t host; -} dns_rdata_rt_t; - -#endif /* GENERIC_RT_21_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/sig_24.h b/usr.bin/dig/lib/dns/rdata/generic/sig_24.h deleted file mode 100644 index 13fd66f3e8c..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/sig_24.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_SIG_24_H -#define GENERIC_SIG_24_H 1 - -/* $Id: sig_24.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC2535 */ - -typedef struct dns_rdata_sig_t { - dns_rdatacommon_t common; - dns_rdatatype_t covered; - dns_secalg_t algorithm; - uint8_t labels; - uint32_t originalttl; - uint32_t timeexpire; - uint32_t timesigned; - uint16_t keyid; - dns_name_t signer; - uint16_t siglen; - unsigned char * signature; -} dns_rdata_sig_t; - - -#endif /* GENERIC_SIG_24_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/sink_40.h b/usr.bin/dig/lib/dns/rdata/generic/sink_40.h deleted file mode 100644 index 9aa985b964f..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/sink_40.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_SINK_40_H -#define GENERIC_SINK_40_H 1 - -typedef struct dns_rdata_sink_t { - dns_rdatacommon_t common; - uint8_t meaning; - uint8_t coding; - uint8_t subcoding; - uint16_t datalen; - unsigned char * data; -} dns_rdata_sink_t; - -#endif /* GENERIC_SINK_40_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/smimea_53.h b/usr.bin/dig/lib/dns/rdata/generic/smimea_53.h deleted file mode 100644 index 96b5d3dd92f..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/smimea_53.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_SMIMEA_53_H -#define GENERIC_SMIMEA_53_H 1 - -typedef struct dns_rdata_tlsa dns_rdata_smimea_t; - -#endif /* GENERIC_SMIMEA_53_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/soa_6.h b/usr.bin/dig/lib/dns/rdata/generic/soa_6.h deleted file mode 100644 index 0f1faea23d2..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/soa_6.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_SOA_6_H -#define GENERIC_SOA_6_H 1 - -/* $Id: soa_6.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_soa { - dns_rdatacommon_t common; - dns_name_t origin; - dns_name_t contact; - uint32_t serial; /*%< host order */ - uint32_t refresh; /*%< host order */ - uint32_t retry; /*%< host order */ - uint32_t expire; /*%< host order */ - uint32_t minimum; /*%< host order */ -} dns_rdata_soa_t; - - -#endif /* GENERIC_SOA_6_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/spf_99.h b/usr.bin/dig/lib/dns/rdata/generic/spf_99.h deleted file mode 100644 index 5c621870bba..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/spf_99.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_SPF_99_H -#define GENERIC_SPF_99_H 1 - -/* $Id: spf_99.h,v 1.2 2020/02/13 13:53:01 jsg Exp $ */ - -typedef struct dns_rdata_spf_string { - uint8_t length; - unsigned char *data; -} dns_rdata_spf_string_t; - -typedef struct dns_rdata_spf { - dns_rdatacommon_t common; - unsigned char *txt; - uint16_t txt_len; - /* private */ - uint16_t offset; -} dns_rdata_spf_t; - -#endif /* GENERIC_SPF_99_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/sshfp_44.h b/usr.bin/dig/lib/dns/rdata/generic/sshfp_44.h deleted file mode 100644 index f64815f3dc3..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/sshfp_44.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: sshfp_44.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC 4255 */ - -#ifndef GENERIC_SSHFP_44_H -#define GENERIC_SSHFP_44_H 1 - -typedef struct dns_rdata_sshfp { - dns_rdatacommon_t common; - uint8_t algorithm; - uint8_t digest_type; - uint16_t length; - unsigned char *digest; -} dns_rdata_sshfp_t; - -#endif /* GENERIC_SSHFP_44_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/ta_32768.h b/usr.bin/dig/lib/dns/rdata/generic/ta_32768.h deleted file mode 100644 index 5a6bceb663b..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/ta_32768.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_TA_32768_H -#define GENERIC_TA_32768_H 1 - -/* - * TA records are identical to DS records. - */ -typedef struct dns_rdata_ds dns_rdata_ta_t; - -#endif /* GENERIC_TA_32768_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/talink_58.h b/usr.bin/dig/lib/dns/rdata/generic/talink_58.h deleted file mode 100644 index 832ec6d2520..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/talink_58.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* http://www.iana.org/assignments/dns-parameters/TALINK/talink-completed-template */ - -#ifndef GENERIC_TALINK_58_H -#define GENERIC_TALINK_58_H 1 - -typedef struct dns_rdata_talink { - dns_rdatacommon_t common; - dns_name_t prev; - dns_name_t next; -} dns_rdata_talink_t; - -#endif /* GENERIC_TALINK_58_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/tkey_249.h b/usr.bin/dig/lib/dns/rdata/generic/tkey_249.h deleted file mode 100644 index 3e9bffc007b..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/tkey_249.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_TKEY_249_H -#define GENERIC_TKEY_249_H 1 - -/* $Id: tkey_249.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per draft-ietf-dnsind-tkey-00.txt */ - -typedef struct dns_rdata_tkey { - dns_rdatacommon_t common; - dns_name_t algorithm; - uint32_t inception; - uint32_t expire; - uint16_t mode; - uint16_t error; - uint16_t keylen; - unsigned char * key; - uint16_t otherlen; - unsigned char * other; -} dns_rdata_tkey_t; - - -#endif /* GENERIC_TKEY_249_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/tlsa_52.h b/usr.bin/dig/lib/dns/rdata/generic/tlsa_52.h deleted file mode 100644 index 4e80aad0d57..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/tlsa_52.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: tlsa_52.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -#ifndef GENERIC_TLSA_52_H -#define GENERIC_TLSA_52_H 1 - -/*! - * \brief per rfc6698.txt - */ -typedef struct dns_rdata_tlsa { - dns_rdatacommon_t common; - uint8_t usage; - uint8_t selector; - uint8_t match; - uint16_t length; - unsigned char *data; -} dns_rdata_tlsa_t; - -#endif /* GENERIC_TLSA_52_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/txt_16.h b/usr.bin/dig/lib/dns/rdata/generic/txt_16.h deleted file mode 100644 index db724b0c030..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/txt_16.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_TXT_16_H -#define GENERIC_TXT_16_H 1 - -/* $Id: txt_16.h,v 1.3 2020/02/13 13:53:01 jsg Exp $ */ - -typedef struct dns_rdata_txt_string { - uint8_t length; - unsigned char *data; -} dns_rdata_txt_string_t; - -typedef struct dns_rdata_txt { - dns_rdatacommon_t common; - unsigned char *txt; - uint16_t txt_len; - /* private */ - uint16_t offset; -} dns_rdata_txt_t; - -#endif /* GENERIC_TXT_16_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/unspec_103.h b/usr.bin/dig/lib/dns/rdata/generic/unspec_103.h deleted file mode 100644 index c9e8edfeb51..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/unspec_103.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef GENERIC_UNSPEC_103_H -#define GENERIC_UNSPEC_103_H 1 - -/* $Id: unspec_103.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_unspec_t { - dns_rdatacommon_t common; - unsigned char *data; - uint16_t datalen; -} dns_rdata_unspec_t; - -#endif /* GENERIC_UNSPEC_103_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/uri_256.h b/usr.bin/dig/lib/dns/rdata/generic/uri_256.h deleted file mode 100644 index 8935abe9e6b..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/uri_256.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_URI_256_H -#define GENERIC_URI_256_H 1 - -/* $Id: uri_256.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_uri { - dns_rdatacommon_t common; - uint16_t priority; - uint16_t weight; - unsigned char * target; - uint16_t tgt_len; -} dns_rdata_uri_t; - -#endif /* GENERIC_URI_256_H */ diff --git a/usr.bin/dig/lib/dns/rdata/generic/x25_19.h b/usr.bin/dig/lib/dns/rdata/generic/x25_19.h deleted file mode 100644 index b261fec978c..00000000000 --- a/usr.bin/dig/lib/dns/rdata/generic/x25_19.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef GENERIC_X25_19_H -#define GENERIC_X25_19_H 1 - -/* $Id: x25_19.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC1183 */ - -typedef struct dns_rdata_x25 { - dns_rdatacommon_t common; - unsigned char *x25; - uint8_t x25_len; -} dns_rdata_x25_t; - -#endif /* GENERIC_X25_19_H */ diff --git a/usr.bin/dig/lib/dns/rdata/hs_4/a_1.h b/usr.bin/dig/lib/dns/rdata/hs_4/a_1.h deleted file mode 100644 index b4ef3fdac4a..00000000000 --- a/usr.bin/dig/lib/dns/rdata/hs_4/a_1.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef HS_4_A_1_H -#define HS_4_A_1_H 1 - -/* $Id: a_1.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_hs_a { - dns_rdatacommon_t common; - struct in_addr in_addr; -} dns_rdata_hs_a_t; - -#endif /* HS_4_A_1_H */ diff --git a/usr.bin/dig/lib/dns/rdata/in_1/a6_38.h b/usr.bin/dig/lib/dns/rdata/in_1/a6_38.h deleted file mode 100644 index 5df56c9e954..00000000000 --- a/usr.bin/dig/lib/dns/rdata/in_1/a6_38.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef IN_1_A6_38_H -#define IN_1_A6_38_H 1 - -/* $Id: a6_38.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC2874 */ - -typedef struct dns_rdata_in_a6 { - dns_rdatacommon_t common; - dns_name_t prefix; - uint8_t prefixlen; - struct in6_addr in6_addr; -} dns_rdata_in_a6_t; - -#endif /* IN_1_A6_38_H */ diff --git a/usr.bin/dig/lib/dns/rdata/in_1/a_1.h b/usr.bin/dig/lib/dns/rdata/in_1/a_1.h deleted file mode 100644 index 57c1694271a..00000000000 --- a/usr.bin/dig/lib/dns/rdata/in_1/a_1.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef IN_1_A_1_H -#define IN_1_A_1_H 1 - -/* $Id: a_1.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_in_a { - dns_rdatacommon_t common; - struct in_addr in_addr; -} dns_rdata_in_a_t; - -#endif /* IN_1_A_1_H */ diff --git a/usr.bin/dig/lib/dns/rdata/in_1/aaaa_28.h b/usr.bin/dig/lib/dns/rdata/in_1/aaaa_28.h deleted file mode 100644 index 4adf3bde4af..00000000000 --- a/usr.bin/dig/lib/dns/rdata/in_1/aaaa_28.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef IN_1_AAAA_28_H -#define IN_1_AAAA_28_H 1 - -/* $Id: aaaa_28.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC1886 */ - -typedef struct dns_rdata_in_aaaa { - dns_rdatacommon_t common; - struct in6_addr in6_addr; -} dns_rdata_in_aaaa_t; - -#endif /* IN_1_AAAA_28_H */ diff --git a/usr.bin/dig/lib/dns/rdata/in_1/apl_42.h b/usr.bin/dig/lib/dns/rdata/in_1/apl_42.h deleted file mode 100644 index cc56ca1f32c..00000000000 --- a/usr.bin/dig/lib/dns/rdata/in_1/apl_42.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef IN_1_APL_42_H -#define IN_1_APL_42_H 1 - -/* $Id: apl_42.h,v 1.3 2020/02/13 13:53:01 jsg Exp $ */ - -typedef struct dns_rdata_apl_ent { - isc_boolean_t negative; - uint16_t family; - uint8_t prefix; - uint8_t length; - unsigned char *data; -} dns_rdata_apl_ent_t; - -typedef struct dns_rdata_in_apl { - dns_rdatacommon_t common; - /* type & class specific elements */ - unsigned char *apl; - uint16_t apl_len; - /* private */ - uint16_t offset; -} dns_rdata_in_apl_t; - -#endif /* IN_1_APL_42_H */ diff --git a/usr.bin/dig/lib/dns/rdata/in_1/dhcid_49.h b/usr.bin/dig/lib/dns/rdata/in_1/dhcid_49.h deleted file mode 100644 index 20fb83a85b5..00000000000 --- a/usr.bin/dig/lib/dns/rdata/in_1/dhcid_49.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* */ -#ifndef IN_1_DHCID_49_H -#define IN_1_DHCID_49_H 1 - -/* $Id: dhcid_49.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_in_dhcid { - dns_rdatacommon_t common; - unsigned char *dhcid; - unsigned int length; -} dns_rdata_in_dhcid_t; - -#endif /* IN_1_DHCID_49_H */ diff --git a/usr.bin/dig/lib/dns/rdata/in_1/kx_36.h b/usr.bin/dig/lib/dns/rdata/in_1/kx_36.h deleted file mode 100644 index 84b5802f42e..00000000000 --- a/usr.bin/dig/lib/dns/rdata/in_1/kx_36.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef IN_1_KX_36_H -#define IN_1_KX_36_H 1 - -/* $Id: kx_36.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC2230 */ - -typedef struct dns_rdata_in_kx { - dns_rdatacommon_t common; - uint16_t preference; - dns_name_t exchange; -} dns_rdata_in_kx_t; - -#endif /* IN_1_KX_36_H */ diff --git a/usr.bin/dig/lib/dns/rdata/in_1/nsap-ptr_23.h b/usr.bin/dig/lib/dns/rdata/in_1/nsap-ptr_23.h deleted file mode 100644 index 1b4207b3895..00000000000 --- a/usr.bin/dig/lib/dns/rdata/in_1/nsap-ptr_23.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef IN_1_NSAP_PTR_23_H -#define IN_1_NSAP_PTR_23_H 1 - -/* $Id: nsap-ptr_23.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC1348. Obsoleted in RFC 1706 - use PTR instead. */ - -typedef struct dns_rdata_in_nsap_ptr { - dns_rdatacommon_t common; - dns_name_t owner; -} dns_rdata_in_nsap_ptr_t; - -#endif /* IN_1_NSAP_PTR_23_H */ diff --git a/usr.bin/dig/lib/dns/rdata/in_1/nsap_22.h b/usr.bin/dig/lib/dns/rdata/in_1/nsap_22.h deleted file mode 100644 index 4a3f59893ef..00000000000 --- a/usr.bin/dig/lib/dns/rdata/in_1/nsap_22.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef IN_1_NSAP_22_H -#define IN_1_NSAP_22_H 1 - -/* $Id: nsap_22.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC1706 */ - -typedef struct dns_rdata_in_nsap { - dns_rdatacommon_t common; - unsigned char *nsap; - uint16_t nsap_len; -} dns_rdata_in_nsap_t; - -#endif /* IN_1_NSAP_22_H */ diff --git a/usr.bin/dig/lib/dns/rdata/in_1/px_26.h b/usr.bin/dig/lib/dns/rdata/in_1/px_26.h deleted file mode 100644 index 34981c5a497..00000000000 --- a/usr.bin/dig/lib/dns/rdata/in_1/px_26.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef IN_1_PX_26_H -#define IN_1_PX_26_H 1 - -/* $Id: px_26.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/*! - * \brief Per RFC2163 */ - -typedef struct dns_rdata_in_px { - dns_rdatacommon_t common; - uint16_t preference; - dns_name_t map822; - dns_name_t mapx400; -} dns_rdata_in_px_t; - -#endif /* IN_1_PX_26_H */ diff --git a/usr.bin/dig/lib/dns/rdata/in_1/srv_33.h b/usr.bin/dig/lib/dns/rdata/in_1/srv_33.h deleted file mode 100644 index 4c4933e406a..00000000000 --- a/usr.bin/dig/lib/dns/rdata/in_1/srv_33.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef IN_1_SRV_33_H -#define IN_1_SRV_33_H 1 - -/* $Id: srv_33.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -/* Reviewed: Fri Mar 17 13:01:00 PST 2000 by bwelling */ - -/*! - * \brief Per RFC2782 */ - -typedef struct dns_rdata_in_srv { - dns_rdatacommon_t common; - uint16_t priority; - uint16_t weight; - uint16_t port; - dns_name_t target; -} dns_rdata_in_srv_t; - -#endif /* IN_1_SRV_33_H */ diff --git a/usr.bin/dig/lib/dns/rdata/in_1/wks_11.h b/usr.bin/dig/lib/dns/rdata/in_1/wks_11.h deleted file mode 100644 index 04bdefa9cdd..00000000000 --- a/usr.bin/dig/lib/dns/rdata/in_1/wks_11.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef IN_1_WKS_11_H -#define IN_1_WKS_11_H 1 - -/* $Id: wks_11.h,v 1.1 2020/02/07 09:58:53 florian Exp $ */ - -typedef struct dns_rdata_in_wks { - dns_rdatacommon_t common; - struct in_addr in_addr; - uint16_t protocol; - unsigned char *map; - uint16_t map_len; -} dns_rdata_in_wks_t; - -#endif /* IN_1_WKS_11_H */ diff --git a/usr.bin/dig/lib/dns/rdata/rdatastructpre.h b/usr.bin/dig/lib/dns/rdata/rdatastructpre.h deleted file mode 100644 index 6478b733e10..00000000000 --- a/usr.bin/dig/lib/dns/rdata/rdatastructpre.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: rdatastructpre.h,v 1.2 2020/02/13 13:53:01 jsg Exp $ */ - -#ifndef DNS_RDATASTRUCT_H -#define DNS_RDATASTRUCT_H 1 - -#include <isc/sockaddr.h> - -#include <dns/name.h> -#include <dns/types.h> - -typedef struct dns_rdatacommon { - dns_rdataclass_t rdclass; - dns_rdatatype_t rdtype; - ISC_LINK(struct dns_rdatacommon) link; -} dns_rdatacommon_t; - -#define DNS_RDATACOMMON_INIT(_data, _rdtype, _rdclass) \ - do { \ - (_data)->common.rdtype = (_rdtype); \ - (_data)->common.rdclass = (_rdclass); \ - ISC_LINK_INIT(&(_data)->common, link); \ - } while (0) diff --git a/usr.bin/dig/lib/dns/rdata/rdatastructsuf.h b/usr.bin/dig/lib/dns/rdata/rdatastructsuf.h deleted file mode 100644 index b8b8f20b20f..00000000000 --- a/usr.bin/dig/lib/dns/rdata/rdatastructsuf.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: rdatastructsuf.h,v 1.2 2020/02/13 13:53:01 jsg Exp $ */ - -#endif /* DNS_RDATASTRUCT_H */ diff --git a/usr.bin/dig/lib/dns/tsig.c b/usr.bin/dig/lib/dns/tsig.c index 246ab437c1b..51b6b31f795 100644 --- a/usr.bin/dig/lib/dns/tsig.c +++ b/usr.bin/dig/lib/dns/tsig.c @@ -15,7 +15,7 @@ */ /* - * $Id: tsig.c,v 1.12 2020/02/24 17:45:25 florian Exp $ + * $Id: tsig.c,v 1.13 2020/02/24 17:57:54 florian Exp $ */ /*! \file */ @@ -33,7 +33,6 @@ #include <dns/rdata.h> #include <dns/rdatalist.h> #include <dns/rdataset.h> -#include "rdatastruct.h" #include <dns/result.h> #include <dns/tsig.h> |