Commit graph

10 commits

Author SHA1 Message Date
Kim Alvefur
43531740f9 util: Prefix module imports with prosody namespace 2023-03-17 16:23:16 +01:00
Matthew Wild
ab835fed13 util.hex: Deprecate to/from in favour of encode/decode, for consistency! 2022-03-04 15:22:45 +00:00
Kim Alvefur
5927315eee util.dns: Remove compat for pre-0.11 lack of inet_ntop binding
The inet_ntop binding was added in 8b612ec00e4a and included in 0.11.0
2022-02-15 13:04:24 +01:00
Kim Alvefur
57c35404ef util.dns: Replace base16 implementation with util.hex
Less code!
2022-02-15 13:03:02 +01:00
Kim Alvefur
da53d0fc75 util.dns: Minor updates of SVCB parser
Now based on draft-ietf-dnsop-svcb-https-08
2022-02-02 17:58:48 +01:00
Kim Alvefur
b657d2ab26 util.dns: Implement SVCB record parser
Based on draft-ietf-dnsop-svcb-https-00
2020-10-04 21:29:44 +02:00
Kim Alvefur
29238183e9 util.dns: Fix returning read position after zero-length name
Doesn't affect normal usage by Prosody since neither A nor AAAA records
use this and SRV records has the host name last so the position is not
needed.
2020-10-04 21:27:20 +02:00
Kim Alvefur
d98c136bb9 util.dns: Move DNS parameters details into util.dnsregistry
Goal is to regenerate this file from the IANA registry using a tool.
Having it in a separate file will reduce vcs noise in util.dns
2020-10-04 19:23:16 +02:00
Kim Alvefur
0f8937fc27 util.dns: Update RR types from IANA registry 2020-06-25 20:45:06 +02:00
Kim Alvefur
49dd598e71 util.dns: Library for decoding DNS records
Imported from luaunbound-prosody 5f7c771138b1
2019-03-09 21:16:27 +01:00