Remove the artificial limit on max zone keys
The struct dns_update_state
contains the following member dst_key_t *zone_keys[DNS_MAXZONEKEYS];
limiting the number of the zone keys to 32
. This seems enough, but since we already pass memory context to both lib/dns/zone.c:dns__zone_findkeys()
, lib/dns/dnssec.c:dns_dnssec_findzonekeys()
, and lib/dns/update.c:find_zone_keys()
and return the number of found keys in &nkeys
, we could as well allocate the array in dns_dnssec_findzonekeys()
by calling dns_rdataset_count()
first, allocating the array to hold all the possible keys and then shrinking to the actual number of keys.
Alternatively, this could be converted to ISC_LIST()
instead of a static array.