Create a new data structure for a dnssec name
.br
Returns the allocated structure
ldns_dnssec_name_new_frm_rr()
Create a new data structure for a dnssec name for the given RR
.br
rr: the RR to derive properties from, and to add to the name
ldns_dnssec_name_free()
Frees the name structure and its rrs and rrsets.
Individual ldns_rr records therein are not freed
.br
name: the structure to free
ldns_dnssec_name_name()
Returns the domain name of the given dnssec_name structure
.br
name: the dnssec name to get the domain name from
.br
Returns the domain name
ldns_dnssec_name_set_name()
Sets the domain name of the given dnssec_name structure
.br
name: the dnssec name to set the domain name of
.br
dname: the domain name to set it to. This data is *not* copied.
ldns_dnssec_name_set_nsec()
Sets the NSEC(3) RR of the given dnssec_name structure
.br
name: the dnssec name to set the domain name of
.br
nsec: the nsec rr to set it to. This data is *not* copied.
ldns_dnssec_name_cmp()
Compares the domain names of the two arguments in their
canonical ordening.
.br
a: The first dnssec_name to compare
.br
b: The second dnssec_name to compare
.br
Returns -1 if the domain name of a comes before that of b in canonical
ordening, 1 if it is the other way around, and 0 if they are
equal
ldns_dnssec_name_add_rr()
Inserts the given rr at the right place in the current dnssec_name
No checking is done whether the name matches
.br
name: The ldns_dnssec_name to add the RR to
.br
rr: The RR to add
.br
Returns LDNS_STATUS_OK on success, error code otherwise
ldns_dnssec_name_find_rrset()
Find the RRset with the given type in within this name structure
.br
name: the name to find the RRset in
.br
type: the type of the RRset to find
.br
Returns the RRset, or NULL if not present
ldns_dnssec_name_print()
Prints the RRs in the dnssec name structure to the given
file descriptor
.br
out: the file descriptor to print to
.br
name: the name structure to print the contents of
AUTHOR
The ldns team at NLnet Labs. Which consists out of
Jelte Jansen and Miek Gieben.