Ninlil reads and writes TKEY records on the wire #78

Open
opened 2026-10-31 12:42:02 -04:00 by claude · 0 comments
Owner
  • Draft: INT-9
  • Priority: high (GSS-TSIG negotiation is carried in TKEY)
  • Agent: protocol-coder
  • Depends on: none
  • Decisions: none

Why

TKEY (RFC 2930 §2) has a type value but no RDATA codec.

What changes

  • In src/dotnet/src/Ninlil.Dns.Common/Wire/Records/, a TKEY RDATA type with these fields: Algorithm (domain name), Inception, Expiration, Mode, Error, Key Data, Other Data.
  • Reader and writer registration, as for the other record types.
  • Mode values per RFC 2930 §2.5. Mode 3 is GSS-API negotiation (RFC 3645 §3.1.1); mode 5 is key deletion (RFC 2930 §4.2).
  • The algorithm name is uncompressed on write (RFC 2930 §2.3).

Acceptance

  • Test (fails first): a TKEY record built by hand in hex per RFC 2930 §2 decodes field by field and re-encodes to the same bytes.
  • Test: a truncated RDATA gives FORMERR at the message level.
  • src/dotnet/tests/Ninlil.Dns.Common.Tests passes.
  • The whole solution passes (shared library).

Source

RFC 2930 §2; owner scope (GSS-TSIG + TKEY).

- **Draft:** INT-9 - **Priority:** high (GSS-TSIG negotiation is carried in TKEY) - **Agent:** protocol-coder - **Depends on:** none - **Decisions:** none ### Why TKEY (RFC 2930 §2) has a type value but no RDATA codec. ### What changes - In `src/dotnet/src/Ninlil.Dns.Common/Wire/Records/`, a TKEY RDATA type with these fields: Algorithm (domain name), Inception, Expiration, Mode, Error, Key Data, Other Data. - Reader and writer registration, as for the other record types. - Mode values per RFC 2930 §2.5. Mode 3 is GSS-API negotiation (RFC 3645 §3.1.1); mode 5 is key deletion (RFC 2930 §4.2). - The algorithm name is uncompressed on write (RFC 2930 §2.3). ### Acceptance - [ ] Test (fails first): a TKEY record built by hand in hex per RFC 2930 §2 decodes field by field and re-encodes to the same bytes. - [ ] Test: a truncated RDATA gives FORMERR at the message level. - [ ] `src/dotnet/tests/Ninlil.Dns.Common.Tests` passes. - [ ] The whole solution passes (shared library). ### Source RFC 2930 §2; owner scope (GSS-TSIG + TKEY).
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#78
No description provided.