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