xref: /netbsd-src/external/mpl/bind/dist/lib/dns/zone_p.h (revision bcda20f65a8566e103791ec395f7f499ef322704)
1 /*	$NetBSD: zone_p.h,v 1.8 2025/01/26 16:25:26 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 #pragma once
17 
18 #include <stdbool.h>
19 
20 /*! \file */
21 
22 /*%
23  *     Types and functions below not be used outside this module and its
24  *     associated unit tests.
25  */
26 
27 ISC_LANG_BEGINDECLS
28 
29 typedef struct {
30 	dns_diff_t *diff;
31 	bool offline;
32 } dns__zonediff_t;
33 
34 isc_result_t
35 dns__zone_updatesigs(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *version,
36 		     dst_key_t *zone_keys[], unsigned int nkeys,
37 		     dns_zone_t *zone, isc_stdtime_t inception,
38 		     isc_stdtime_t expire, isc_stdtime_t keyxpire,
39 		     isc_stdtime_t now, dns__zonediff_t *zonediff);
40 
41 isc_result_t
42 dns__zone_lookup_nsec3param(dns_zone_t *zone, dns_rdata_nsec3param_t *lookup,
43 			    dns_rdata_nsec3param_t *param,
44 			    unsigned char saltbuf[255], bool resalt);
45 
46 ISC_LANG_ENDDECLS
47