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