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
11
12

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

107       The ldns team at NLnet Labs. Which consists out  of  Jelte  Jansen  and
108       Miek Gieben.
109
110

REPORTING BUGS

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

SEE ALSO

124       ldns_dnssec_zone.   And  perldoc  Net::DNS,  RFC1034, RFC1035, RFC4033,
125       RFC4034  and RFC4035.
126

REMARKS

128       This manpage was automaticly generated from the ldns source code by use
129       of Doxygen and some perl.
130
131
132
133                                  30 May 2006                          ldns(3)
Impressum