Skip to content

Implement TLSA resource record - #154

Open
smortex wants to merge 1 commit into
ruby:masterfrom
smortex:add-support-for-tlsa-rr
Open

smortex wants to merge 1 commit into
ruby:masterfrom
smortex:add-support-for-tlsa-rr

Conversation

@smortex

@smortex smortex commented Oct 2, 2026

Copy link
Copy Markdown

Add support for TLSA resource records as defined in RFC6698.

@smortex
smortex force-pushed the add-support-for-tlsa-rr branch from bd19162 to 857715f Compare October 2, 2026 00:46
Comment thread lib/resolv.rb
Comment on lines +2650 to +2652
@certificate_usage = certificate_usage.to_int
@selector = selector.to_int
@matching_type = matching_type.to_int

@smortex smortex Oct 2, 2026 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if adding bound checks here is desirable (RFC6698 list acceptable values in section 2.1). Advices are welcome!

Comment thread lib/resolv.rb
@certificate_usage = certificate_usage.to_int
@selector = selector.to_int
@matching_type = matching_type.to_int
@certificate_association_data = certificate_association_data

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am also not sure about the internal representation to use for this piece of information.

I chose a hex string representation to match what dig(1) outputs, but will be happy to adjust it on request.

Add support for TLSA resource records as defined in [RFC6698].

[RFC6698]: https://www.rfc-editor.org/info/rfc6698
@smortex
smortex force-pushed the add-support-for-tlsa-rr branch from 857715f to 3c0a1e5 Compare October 2, 2026 00:56

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant