1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_dnssec_zone_find_rrset, ldns_dnssec_zone_new,
7 ldns_dnssec_zone_free, ldns_dnssec_zone_add_rr,
8 ldns_dnssec_zone_names_print, ldns_dnssec_zone_print,
9 ldns_dnssec_zone_add_empty_nonterminals - functions for
10 ldns_dnssec_zone
11
12
14 #include <stdint.h>
15 #include <stdbool.h>
16
17 #include <ldns/ldns.h>
18
19 ldns_dnssec_rrsets* ldns_dnssec_zone_find_rrset(const ldns_dnssec_zone
20 *zone, const ldns_rdf *dname, ldns_rr_type type);
21
22 ldns_dnssec_zone* ldns_dnssec_zone_new(void);
23
24 void ldns_dnssec_zone_free(ldns_dnssec_zone *zone);
25
26 ldns_status ldns_dnssec_zone_add_rr(ldns_dnssec_zone *zone, ldns_rr
27 *rr);
28
29 void ldns_dnssec_zone_names_print(FILE *out, const ldns_rbtree_t *tree,
30 bool print_soa);
31
32 void ldns_dnssec_zone_print(FILE *out, const ldns_dnssec_zone *zone);
33
34 ldns_status ldns_dnssec_zone_add_empty_nonterminals(ldns_dnssec_zone
35 *zone);
36
38 ldns_dnssec_zone_find_rrset() Find the RRset with the given name and
39 type in the zone
40
41 zone: the zone structure to find the RRset in
42 dname: the domain name of the RRset to find
43 type: the type of the RRset to find
44 Returns the RRset, or NULL if not present
45
46 ldns_dnssec_zone_new() Creates a new dnssec_zone structure
47 Returns the allocated structure
48
49 ldns_dnssec_zone_free() Frees the given zone structure, and its rbtree
50 of dnssec_names Individual ldns_rr RRs within those names are
51 *not* freed
52 *zone: the zone to free
53
54 ldns_dnssec_zone_add_rr() Adds the given RR to the zone. It find
55 whether there is a dnssec_name with that name present. If so,
56 add it to that, if not create a new one. Special handling of
57 NSEC and RRSIG provided
58
59 zone: the zone to add the RR to
60 rr: The RR to add
61 Returns LDNS_STATUS_OK on success, an error code otherwise
62
63 ldns_dnssec_zone_names_print() Prints the rbtree of ldns_dnssec_name
64 structures to the file descriptor
65
66 out: the file descriptor to print the names to
67 tree: the tree of ldns_dnssec_name structures to print
68 print_soa: if true, print SOA records, if false, skip them
69
70 ldns_dnssec_zone_print() Prints the complete zone to the given file
71 descriptor
72
73 out: the file descriptor to print to
74 zone: the dnssec_zone to print
75
76 ldns_dnssec_zone_add_empty_nonterminals() Adds explicit dnssec_name
77 structures for the empty nonterminals in this zone. (this is
78 needed for NSEC3 generation)
79
80 zone: the zone to check for empty nonterminals return
81 LDNS_STATUS_OK on success.
82
84 The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
85 Miek Gieben.
86
87
89 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
90 http://www.nlnetlabs.nl/bugs/index.html
91
92
94 Copyright (c) 2004 - 2006 NLnet Labs.
95
96 Licensed under the BSD License. There is NO warranty; not even for MER‐
97 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
98
99
101 ldns_dnssec_zone. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033,
102 RFC4034 and RFC4035.
103
105 This manpage was automatically generated from the ldns source code by
106 use of Doxygen and some perl.
107
108
109
110 30 May 2006 ldns(3)