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