Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bind9/dns
File: nsec.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
#ifndef DNS_NSEC_H
[12] Fix | Delete
#define DNS_NSEC_H 1
[13] Fix | Delete
[14] Fix | Delete
/*! \file dns/nsec.h */
[15] Fix | Delete
[16] Fix | Delete
#include <stdbool.h>
[17] Fix | Delete
[18] Fix | Delete
#include <isc/lang.h>
[19] Fix | Delete
[20] Fix | Delete
#include <dns/types.h>
[21] Fix | Delete
#include <dns/name.h>
[22] Fix | Delete
[23] Fix | Delete
#define DNS_NSEC_BUFFERSIZE (DNS_NAME_MAXWIRE + 8192 + 512)
[24] Fix | Delete
[25] Fix | Delete
ISC_LANG_BEGINDECLS
[26] Fix | Delete
[27] Fix | Delete
isc_result_t
[28] Fix | Delete
dns_nsec_buildrdata(dns_db_t *db, dns_dbversion_t *version,
[29] Fix | Delete
dns_dbnode_t *node, dns_name_t *target,
[30] Fix | Delete
unsigned char *buffer, dns_rdata_t *rdata);
[31] Fix | Delete
/*%<
[32] Fix | Delete
* Build the rdata of a NSEC record.
[33] Fix | Delete
*
[34] Fix | Delete
* Requires:
[35] Fix | Delete
*\li buffer Points to a temporary buffer of at least
[36] Fix | Delete
* DNS_NSEC_BUFFERSIZE bytes.
[37] Fix | Delete
*\li rdata Points to an initialized dns_rdata_t.
[38] Fix | Delete
*
[39] Fix | Delete
* Ensures:
[40] Fix | Delete
* \li *rdata Contains a valid NSEC rdata. The 'data' member refers
[41] Fix | Delete
* to 'buffer'.
[42] Fix | Delete
*/
[43] Fix | Delete
[44] Fix | Delete
isc_result_t
[45] Fix | Delete
dns_nsec_build(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
[46] Fix | Delete
dns_name_t *target, dns_ttl_t ttl);
[47] Fix | Delete
/*%<
[48] Fix | Delete
* Build a NSEC record and add it to a database.
[49] Fix | Delete
*/
[50] Fix | Delete
[51] Fix | Delete
bool
[52] Fix | Delete
dns_nsec_typepresent(dns_rdata_t *nsec, dns_rdatatype_t type);
[53] Fix | Delete
/*%<
[54] Fix | Delete
* Determine if a type is marked as present in an NSEC record.
[55] Fix | Delete
*
[56] Fix | Delete
* Requires:
[57] Fix | Delete
*\li 'nsec' points to a valid rdataset of type NSEC
[58] Fix | Delete
*/
[59] Fix | Delete
[60] Fix | Delete
isc_result_t
[61] Fix | Delete
dns_nsec_nseconly(dns_db_t *db, dns_dbversion_t *version,
[62] Fix | Delete
bool *answer);
[63] Fix | Delete
/*
[64] Fix | Delete
* Report whether the DNSKEY RRset has a NSEC only algorithm. Unknown
[65] Fix | Delete
* algorithms are assumed to support NSEC3. If DNSKEY is not found,
[66] Fix | Delete
* *answer is set to false, and ISC_R_NOTFOUND is returned.
[67] Fix | Delete
*
[68] Fix | Delete
* Requires:
[69] Fix | Delete
* 'answer' to be non NULL.
[70] Fix | Delete
*/
[71] Fix | Delete
[72] Fix | Delete
unsigned int
[73] Fix | Delete
dns_nsec_compressbitmap(unsigned char *map, const unsigned char *raw,
[74] Fix | Delete
unsigned int max_type);
[75] Fix | Delete
/*%<
[76] Fix | Delete
* Convert a raw bitmap into a compressed windowed bit map. 'map' and 'raw'
[77] Fix | Delete
* may overlap.
[78] Fix | Delete
*
[79] Fix | Delete
* Returns the length of the compressed windowed bit map.
[80] Fix | Delete
*/
[81] Fix | Delete
[82] Fix | Delete
void
[83] Fix | Delete
dns_nsec_setbit(unsigned char *array, unsigned int type, unsigned int bit);
[84] Fix | Delete
/*%<
[85] Fix | Delete
* Set type bit in raw 'array' to 'bit'.
[86] Fix | Delete
*/
[87] Fix | Delete
[88] Fix | Delete
bool
[89] Fix | Delete
dns_nsec_isset(const unsigned char *array, unsigned int type);
[90] Fix | Delete
/*%<
[91] Fix | Delete
* Test if the corresponding 'type' bit is set in 'array'.
[92] Fix | Delete
*/
[93] Fix | Delete
[94] Fix | Delete
isc_result_t
[95] Fix | Delete
dns_nsec_noexistnodata(dns_rdatatype_t type, dns_name_t *name,
[96] Fix | Delete
dns_name_t *nsecname, dns_rdataset_t *nsecset,
[97] Fix | Delete
bool *exists, bool *data,
[98] Fix | Delete
dns_name_t *wild, dns_nseclog_t log, void *arg);
[99] Fix | Delete
/*%
[100] Fix | Delete
* Return ISC_R_SUCCESS if we can determine that the name doesn't exist
[101] Fix | Delete
* or we can determine whether there is data or not at the name.
[102] Fix | Delete
* If the name does not exist return the wildcard name.
[103] Fix | Delete
*
[104] Fix | Delete
* Return ISC_R_IGNORE when the NSEC is not the appropriate one.
[105] Fix | Delete
*/
[106] Fix | Delete
[107] Fix | Delete
ISC_LANG_ENDDECLS
[108] Fix | Delete
[109] Fix | Delete
#endif /* DNS_NSEC_H */
[110] Fix | Delete
[111] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function