mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2986] [MERGED] Simplify signing #3472
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#3472
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/2986
Author: @djc
Created: 5/10/2025
Status: ✅ Merged
Merged: 5/26/2025
Merged by: @djc
Base:
main← Head:simplify-signing📝 Commits (10+)
a71c920proto: simplify signing codea87dce0proto: use SerialNumber for SIG state7f27cf1proto: extract SigInput typecd179afproto: reduce repetition in teste22a178proto: take SigInput directly for signing and verification6643165proto: avoid unnecessary combinatorsde44db1proto: remove problematic SIG::set_sig() API936c128proto: hoist creation of SigInput30edfc2proto: move message_tbs() to TBS::from_message()35b5b4fproto: deduplicate SigInput encoding📊 Changes
17 files changed (+412 additions, -819 deletions)
View changed files
📝
bin/tests/integration/authority_battery/dnssec.rs(+3 -3)📝
bin/tests/integration/server_harness/mod.rs(+2 -2)📝
crates/proto/src/dnssec/dnssec_dns_handle/mod.rs(+17 -17)📝
crates/proto/src/dnssec/dnssec_dns_handle/nsec3_validation.rs(+1 -1)📝
crates/proto/src/dnssec/rdata/mod.rs(+1 -1)📝
crates/proto/src/dnssec/rdata/rrsig.rs(+102 -50)📝
crates/proto/src/dnssec/rdata/sig.rs(+115 -310)📝
crates/proto/src/dnssec/signer.rs(+64 -79)📝
crates/proto/src/dnssec/tbs.rs(+75 -183)📝
crates/proto/src/dnssec/verifier.rs(+6 -5)📝
crates/proto/src/rr/rr_set.rs(+0 -119)📝
crates/proto/src/rr/serial_number.rs(+12 -1)📝
crates/resolver/src/dns_lru.rs(+1 -1)📝
crates/server/src/store/in_memory/inner.rs(+9 -43)📝
crates/server/src/store/sqlite/mod.rs(+2 -2)📝
tests/integration-tests/tests/integration/catalog_tests.rs(+1 -1)📝
tests/integration-tests/tests/integration/sqlite_authority_tests.rs(+1 -1)📄 Description
There was a bunch of many-argument functions, partial initialization and weird inside-out construction going on. Try to clean it up by extracting common parts and avoiding partial initialization opportunities via the public API.
@divergentdave this conflicts with your PR -- happy to land this after yours if you prefer.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.