2 * Copyright (C) 2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 * PERFORMANCE OF THIS SOFTWARE.
17 /* $Id: private.h,v 1.5 2011/10/28 12:20:31 tbox Exp $ */
20 #include <isc/types.h>
22 #include <dns/types.h>
31 dns_private_chains(dns_db_t *db, dns_dbversion_t *ver,
32 dns_rdatatype_t privatetype,
33 isc_boolean_t *build_nsec, isc_boolean_t *build_nsec3);
35 * Examine the NSEC, NSEC3PARAM and privatetype RRsets at the apex of the
36 * database to determine which of NSEC or NSEC3 chains we are currently
37 * maintaining. In normal operations only one of NSEC or NSEC3 is being
38 * maintained but when we are transitiong between NSEC and NSEC3 we need
39 * to update both sets of chains. If 'privatetype' is zero then the
40 * privatetype RRset will not be examined.
44 * \li 'version' is valid or NULL.
45 * \li 'build_nsec' is a pointer to a isc_boolean_t or NULL.
46 * \li 'build_nsec3' is a pointer to a isc_boolean_t or NULL.
49 * \li ISC_R_SUCCESS, 'build_nsec' and 'build_nsec3' will be valid.
54 dns_private_totext(dns_rdata_t *privaterdata, isc_buffer_t *buffer);
56 * Convert a private-type RR 'privaterdata' to human-readable form,
57 * and place the result in 'buffer'. The text should indicate
58 * which action the private-type record specifies and whether the
59 * action has been completed.
62 * \li 'privaterdata' is a valid rdata containing at least five bytes
63 * \li 'buffer' is a valid buffer