1/* $NetBSD: zone_p.h,v 1.1 2024/02/18 20:57:34 christos Exp $ */ 2 3/* 4 * Copyright (C) Internet Systems Consortium, Inc. ("ISC") 5 * 6 * SPDX-License-Identifier: MPL-2.0 7 * 8 * This Source Code Form is subject to the terms of the Mozilla Public 9 * License, v. 2.0. If a copy of the MPL was not distributed with this 10 * file, you can obtain one at https://mozilla.org/MPL/2.0/. 11 * 12 * See the COPYRIGHT file distributed with this work for additional 13 * information regarding copyright ownership. 14 */ 15 16#ifndef DNS_ZONE_P_H 17#define DNS_ZONE_P_H 18 19#include <stdbool.h> 20 21/*! \file */ 22 23/*% 24 * Types and functions below not be used outside this module and its 25 * associated unit tests. 26 */ 27 28ISC_LANG_BEGINDECLS 29 30typedef struct { 31 dns_diff_t *diff; 32 bool offline; 33} dns__zonediff_t; 34 35isc_result_t 36dns__zone_findkeys(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, 37 isc_stdtime_t now, isc_mem_t *mctx, unsigned int maxkeys, 38 dst_key_t **keys, unsigned int *nkeys); 39 40isc_result_t 41dns__zone_updatesigs(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *version, 42 dst_key_t *zone_keys[], unsigned int nkeys, 43 dns_zone_t *zone, isc_stdtime_t inception, 44 isc_stdtime_t expire, isc_stdtime_t keyxpire, 45 isc_stdtime_t now, bool check_ksk, bool keyset_kskonly, 46 dns__zonediff_t *zonediff); 47 48isc_result_t 49dns__zone_lookup_nsec3param(dns_zone_t *zone, dns_rdata_nsec3param_t *lookup, 50 dns_rdata_nsec3param_t *param, 51 unsigned char saltbuf[255], bool resalt); 52 53ISC_LANG_ENDDECLS 54 55#endif /* DNS_ZONE_P_H */ 56