There can no longer be multiple compression methods

The aim is to get rid of the obsolete term "GLOBAL14" and instead just
refer to DNS name compression.

This is mostly mechanically renaming

from	dns_(de)compress_(get|set)methods()
to	dns_(de)compress_(get|set)permitted()

and replacing the related enum by a simple flag, because compression
is either on or off.
This commit is contained in:
Tony Finch
2022-05-05 14:52:44 +01:00
parent e37b782c1a
commit 129a522d88
46 changed files with 155 additions and 203 deletions

View File

@@ -211,8 +211,7 @@ security area and must be paranoid about its input.
`fromwire_classname_typename()` is required to set whether
name compression is allowed, according to RFC 3597.
dns_decompress_setmethods(dctx, DNS_COMPRESS_GLOBAL14);
/* or DNS_COMPRESS_NONE */
dns_decompress_setpermitted(dctx, true); /* or false */
|Parameter|Description |
|---------|-----------------------|
@@ -246,8 +245,7 @@ will return `DNS_R_EXTRADATA`.
`towire_classname_typename()` is required to set whether
name compression is allowed, according to RFC 3597.
dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14);
/* or DNS_COMPRESS_NONE */
dns_compress_setpermitted(cctx, true); /* or false */
|Parameter|Description |
|---------|-----------------------|