]> git.ipfire.org Git - thirdparty/bind9.git/commit
simplify dns_name_fromtext() interface
authorEvan Hunt <each@isc.org>
Sat, 22 Feb 2025 08:11:38 +0000 (00:11 -0800)
committerEvan Hunt <each@isc.org>
Tue, 25 Feb 2025 20:53:25 +0000 (12:53 -0800)
commitafb424c9b65b0532e80f91b0ea3362a32d1ef6e9
tree643a17d6c4a69937f802003a7e50d34cc5062fc5
parentcf098cf10db653acb2ac78b20d5524c104881fac
simplify dns_name_fromtext() interface

previously, dns_name_fromtext() took both a target name and an
optional target buffer parameter, which could override the name's
dedicated buffer. this interface is unnecessarily complex.

we now have two functions, dns_name_fromtext() to convert text
into a dns_name that has a dedicated buffer, and dns_name_wirefromtext()
to convert text into uncompressed DNS wire format and append it to a
target buffer.

in cases where it really is necessary to have both, we can use
dns_name_fromtext() to load the dns_name, then dns_name_towire()
to append the wire format to the target buffer.
89 files changed:
bin/check/check-tool.c
bin/delv/delv.c
bin/dig/dighost.c
bin/dnssec/dnssec-cds.c
bin/dnssec/dnssec-dsfromkey.c
bin/dnssec/dnssec-importkey.c
bin/dnssec/dnssec-keyfromlabel.c
bin/dnssec/dnssec-keygen.c
bin/dnssec/dnssec-ksr.c
bin/dnssec/dnssec-signzone.c
bin/dnssec/dnssec-verify.c
bin/named/config.c
bin/named/server.c
bin/named/tkeyconf.c
bin/named/transportconf.c
bin/named/tsigconf.c
bin/named/zoneconf.c
bin/nsupdate/nsupdate.c
bin/tests/system/pipelined/pipequeries.c
bin/tools/mdig.c
bin/tools/nsec3hash.c
fuzz/dns_name_fromtext_target.c
lib/dns/byaddr.c
lib/dns/dlz.c
lib/dns/dst_api.c
lib/dns/gssapictx.c
lib/dns/include/dns/name.h
lib/dns/master.c
lib/dns/name.c
lib/dns/nsec3.c
lib/dns/peer.c
lib/dns/rdata/any_255/tsig_250.c
lib/dns/rdata/ch_3/a_1.c
lib/dns/rdata/generic/afsdb_18.c
lib/dns/rdata/generic/amtrelay_260.c
lib/dns/rdata/generic/cname_5.c
lib/dns/rdata/generic/dname_39.c
lib/dns/rdata/generic/hip_55.c
lib/dns/rdata/generic/ipseckey_45.c
lib/dns/rdata/generic/lp_107.c
lib/dns/rdata/generic/mb_7.c
lib/dns/rdata/generic/md_3.c
lib/dns/rdata/generic/mf_4.c
lib/dns/rdata/generic/mg_8.c
lib/dns/rdata/generic/minfo_14.c
lib/dns/rdata/generic/mr_9.c
lib/dns/rdata/generic/mx_15.c
lib/dns/rdata/generic/naptr_35.c
lib/dns/rdata/generic/ns_2.c
lib/dns/rdata/generic/nsec_47.c
lib/dns/rdata/generic/nxt_30.c
lib/dns/rdata/generic/ptr_12.c
lib/dns/rdata/generic/rp_17.c
lib/dns/rdata/generic/rrsig_46.c
lib/dns/rdata/generic/rt_21.c
lib/dns/rdata/generic/sig_24.c
lib/dns/rdata/generic/soa_6.c
lib/dns/rdata/generic/talink_58.c
lib/dns/rdata/generic/tkey_249.c
lib/dns/rdata/in_1/a6_38.c
lib/dns/rdata/in_1/kx_36.c
lib/dns/rdata/in_1/nsap-ptr_23.c
lib/dns/rdata/in_1/px_26.c
lib/dns/rdata/in_1/srv_33.c
lib/dns/rdata/in_1/svcb_64.c
lib/dns/rpz.c
lib/dns/sdlz.c
lib/dns/skr.c
lib/dns/ssu.c
lib/dns/tkey.c
lib/dns/tsig.c
lib/dns/view.c
lib/isccfg/aclconf.c
lib/isccfg/check.c
tests/bench/compress.c
tests/bench/load-names.c
tests/bench/qp-dump.c
tests/bench/qplookups.c
tests/dns/dbiterator_test.c
tests/dns/dispatch_test.c
tests/dns/dnstap_test.c
tests/dns/dst_test.c
tests/dns/keytable_test.c
tests/dns/master_test.c
tests/dns/name_test.c
tests/dns/qpzone_test.c
tests/dns/rsa_test.c
tests/dns/skr_test.c
tests/libtest/dns.c