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  ordening,  1  if it is the other way around, and 0 if
81              they are equal
82
83       ldns_dnssec_name_add_rr() Inserts the given rr at the  right  place  in
84              the  current  dnssec_name  No  checking is done whether the name
85              matches
86
87              name: The ldns_dnssec_name to add the RR to
88              rr: The RR to add
89              Returns LDNS_STATUS_OK on success, error code otherwise
90
91       ldns_dnssec_name_find_rrset() Find the RRset with  the  given  type  in
92              within this name structure
93
94              name: the name to find the RRset in
95              type: the type of the RRset to find
96              Returns the RRset, or NULL if not present
97
98       ldns_dnssec_name_print()  Prints  the RRs in the  dnssec name structure
99              to the given file descriptor
100
101              out: the file descriptor to print to
102              name: the name structure to print the contents of
103

AUTHOR

105       The ldns team at NLnet Labs. Which consists out  of  Jelte  Jansen  and
106       Miek Gieben.
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 automaticly generated from the ldns source code by use
127       of Doxygen and some perl.
128
129
130
131                                  30 May 2006                          ldns(3)
Impressum