2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Recognize escapes when reading the public key

Escapes are valid in DNS names, and should be recognized when reading
the public key from disk.
This commit is contained in:
Matthijs Mekking 2023-11-17 13:45:17 +01:00
parent 7cace4fb61
commit 71f023a1c3

View File

@ -1606,7 +1606,7 @@ dst_key_read_public(const char *filename, int type, isc_mem_t *mctx,
isc_token_t token; isc_token_t token;
isc_result_t ret; isc_result_t ret;
dns_rdata_t rdata = DNS_RDATA_INIT; dns_rdata_t rdata = DNS_RDATA_INIT;
unsigned int opt = ISC_LEXOPT_DNSMULTILINE; unsigned int opt = ISC_LEXOPT_DNSMULTILINE | ISC_LEXOPT_ESCAPE;
dns_rdataclass_t rdclass = dns_rdataclass_in; dns_rdataclass_t rdclass = dns_rdataclass_in;
isc_lexspecials_t specials; isc_lexspecials_t specials;
uint32_t ttl = 0; uint32_t ttl = 0;