1ldns(3)                    Library Functions Manual                    ldns(3)
2
3
4

NAME

6       ldns_dnssec_name_new, ldns_dnssec_name_new_frm_rr,
7       ldns_dnssec_name_free, ldns_dnssec_name_name,
8       ldns_dnssec_name_set_name, ldns_dnssec_name_set_nsec,
9       ldns_dnssec_name_cmp, ldns_dnssec_name_add_rr,
10       ldns_dnssec_name_find_rrset, ldns_dnssec_name_print - functions for
11       ldns_dnssec_name
12
13

SYNOPSIS

15       #include <stdint.h>
16       #include <stdbool.h>
17
18       #include <ldns/ldns.h>
19
20       ldns_dnssec_name* ldns_dnssec_name_new(void);
21
22       ldns_dnssec_name* ldns_dnssec_name_new_frm_rr(ldns_rr *rr);
23
24       void ldns_dnssec_name_free(ldns_dnssec_name *name);
25
26       ldns_rdf* ldns_dnssec_name_name(const ldns_dnssec_name *name);
27
28       void ldns_dnssec_name_set_name(ldns_dnssec_name *name, ldns_rdf
29       *dname);
30
31       void ldns_dnssec_name_set_nsec(ldns_dnssec_name *name, ldns_rr *nsec);
32
33       int ldns_dnssec_name_cmp(const void *a, const void *b);
34
35       ldns_status ldns_dnssec_name_add_rr(ldns_dnssec_name *name, ldns_rr
36       *rr);
37
38       ldns_dnssec_rrsets* ldns_dnssec_name_find_rrset(const ldns_dnssec_name
39       *name, ldns_rr_type type);
40
41       void ldns_dnssec_name_print(FILE *out, const ldns_dnssec_name *name);
42

DESCRIPTION

44       ldns_dnssec_name_new() Create a new data structure for a dnssec name
45              Returns the allocated structure
46
47       ldns_dnssec_name_new_frm_rr() Create a new data structure for a dnssec
48              name for the given RR
49
50              rr: the RR to derive properties from, and to add to the name
51
52       ldns_dnssec_name_free() Frees the name structure and its rrs and
53              rrsets.  Individual ldns_rr records therein are not freed
54
55              name: the structure to free
56
57       ldns_dnssec_name_name() Returns the domain name of the given
58              dnssec_name structure
59
60              name: the dnssec name to get the domain name from
61              Returns the domain name
62
63       ldns_dnssec_name_set_name() Sets the domain name of the given
64              dnssec_name structure
65
66              name: the dnssec name to set the domain name of
67              dname: the domain name to set it to. This data is *not* copied.
68
69       ldns_dnssec_name_set_nsec() Sets the NSEC(3) RR of the given
70              dnssec_name structure
71
72              name: the dnssec name to set the domain name of
73              nsec: the nsec rr to set it to. This data is *not* copied.
74
75       ldns_dnssec_name_cmp() Compares the domain names of the two arguments
76              in their canonical ordering.
77
78              a: The first dnssec_name to compare
79              b: The second dnssec_name to compare
80              Returns -1 if the domain name of a comes before that of b in
81              canonical ordering, 1 if it is the other way around, and 0 if
82              they are equal
83
84       ldns_dnssec_name_add_rr() Inserts the given rr at the right place in
85              the current dnssec_name No checking is done whether the name
86              matches
87
88              name: The ldns_dnssec_name to add the RR to
89              rr: The RR to add
90              Returns LDNS_STATUS_OK on success, error code otherwise
91
92       ldns_dnssec_name_find_rrset() Find the RRset with the given type in
93              within this name structure
94
95              name: the name to find the RRset in
96              type: the type of the RRset to find
97              Returns the RRset, or NULL if not present
98
99       ldns_dnssec_name_print() Prints the RRs in the  dnssec name structure
100              to the given file descriptor
101
102              out: the file descriptor to print to
103              name: the name structure to print the contents of
104

AUTHOR

106       The ldns team at NLnet Labs.
107
108

REPORTING BUGS

110       Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
111       http://www.nlnetlabs.nl/bugs/index.html
112
113
115       Copyright (c) 2004 - 2006 NLnet Labs.
116
117       Licensed under the BSD License. There is NO warranty; not even for MER‐
118       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
119
120

SEE ALSO

122       ldns_dnssec_zone.  And perldoc Net::DNS, RFC1034, RFC1035, RFC4033,
123       RFC4034  and RFC4035.
124

REMARKS

126       This manpage was automatically generated from the ldns source code.
127
128
129
130                                  30 May 2006                          ldns(3)
Impressum