]> git.ipfire.org Git - thirdparty/bind9.git/commit
add dns_zone_isexpired API
authorColin Vidal <colin@isc.org>
Fri, 31 Oct 2025 11:12:20 +0000 (12:12 +0100)
committerColin Vidal <colin@isc.org>
Mon, 3 Nov 2025 16:34:25 +0000 (17:34 +0100)
commit68832829296eb01fa49a4c7271e7dff1f95a7ce8
treed939e07fd6475c2cceaa44439905c24a19fd4231
parent069bfab5b3231290470e0af32e92202a8a91980c
add dns_zone_isexpired API

Introduce the `dns_zone_isexpired()` API which returns `true` when a
secondary, mirror, etc. zone is expired.

This internally use the `DNS_ZONEFLG_EXPIRED` which was already set when
the zone gets expired, but never used.

The flag `DNS_ZONEFLG_EXPIRED` is also now cleared when the expiration
time of the zone is updated and in the future.
lib/dns/include/dns/zone.h
lib/dns/zone.c