]> git.ipfire.org Git - thirdparty/bind9.git/commit
Split and simplify the use of EDE list implementation
authorOndřej Surý <ondrej@isc.org>
Wed, 29 Jan 2025 10:11:32 +0000 (11:11 +0100)
committerColin Vidal <colin@isc.org>
Thu, 30 Jan 2025 10:52:53 +0000 (11:52 +0100)
commit2f8e0edf3b25fe4d9df4be8331ca0520ea5d764c
treeab2bd82eb4da44d901952813dcb4928be64fe33c
parent53734b6845157f65ffff9025ef0e79e8f2f8cbe6
Split and simplify the use of EDE list implementation

Instead of mixing the dns_resolver and dns_validator units directly with
the EDE code, split-out the dns_ede functionality into own separate
compilation unit and hide the implementation details behind abstraction.

Additionally, the EDE codes are directly copied into the ns_client
buffers by passing the EDE context to dns_resolver_createfetch().

This makes the dns_ede implementation simpler to use, although sligtly
more complicated on the inside.

Co-authored-by: Colin Vidal <colin@isc.org>
Co-authored-by: Ondřej Surý <ondrej@isc.org>
20 files changed:
bin/dig/dighost.c
bin/named/server.c
lib/dns/Makefile.am
lib/dns/adb.c
lib/dns/client.c
lib/dns/ede.c [new file with mode: 0644]
lib/dns/include/dns/ede.h [new file with mode: 0644]
lib/dns/include/dns/message.h
lib/dns/include/dns/resolver.h
lib/dns/include/dns/validator.h
lib/dns/message.c
lib/dns/nta.c
lib/dns/resolver.c
lib/dns/validator.c
lib/dns/zone.c
lib/ns/client.c
lib/ns/include/ns/client.h
lib/ns/query.c
tests/dns/ede_test.c
tests/ns/client_test.c