]> 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 12:37:55 +0000 (12:37 +0000)
commit1ffb67a13524ea626ce558c31d7ad44b54e59564
tree5ca3d55a7d1ba0a0e8199b35156c4c623404ea75
parent77c4107bcdb03c34a7dd8e0c51034cfcefed06e8
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>
(cherry picked from commit 2f8e0edf3b25fe4d9df4be8331ca0520ea5d764c)
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