49 #define LDNS_DNAME_NORMALIZE tolower
Common definitions for LDNS.
bool ldns_dname_str_absolute(const char *dname_str)
Checks whether the given dname string is absolute (i.e.
int ldns_dname_is_wildcard(const ldns_rdf *dname)
Check if dname is a wildcard, starts with *.
ldns_rdf * ldns_dname_cat_clone(const ldns_rdf *rd1, const ldns_rdf *rd2)
concatenates two dnames together
ldns_rdf * ldns_dname_new_frm_data(uint16_t size, const void *data)
Create a new dname rdf from data (the data is copied)
int ldns_dname_match_wildcard(const ldns_rdf *dname, const ldns_rdf *wildcard)
Checks whether the dname matches the given wildcard.
ldns_rdf * ldns_dname_clone_from(const ldns_rdf *d, uint16_t n)
Clones the given dname from the nth label on.
ldns_rdf * ldns_dname_reverse(const ldns_rdf *d)
Returns a clone of the given dname with the labels reversed.
bool ldns_dname_absolute(const ldns_rdf *dname)
Checks whether the given dname is absolute (i.e.
bool ldns_dname_is_subdomain(const ldns_rdf *sub, const ldns_rdf *parent)
test whether the name sub falls under parent (i.e.
int ldns_dname_compare(const ldns_rdf *dname1, const ldns_rdf *dname2)
Compares the two dname rdf's according to the algorithm for ordering in RFC4034 Section 6.
int ldns_dname_compare_v(const void *, const void *)
Given in dnssec_zone.c, also used in dnssec_sign.c:w.
ldns_rdf * ldns_dname_left_chop(const ldns_rdf *d)
chop one label off the left side of a dname.
int ldns_dname_interval(const ldns_rdf *prev, const ldns_rdf *middle, const ldns_rdf *next)
check if middle lays in the interval defined by prev and next prev <= middle < next.
void ldns_dname2canonical(const ldns_rdf *rdf)
Put a dname into canonical fmt - ie.
ldns_rdf * ldns_dname_new(uint16_t s, void *data)
Create a new dname rdf from a string.
uint8_t ldns_dname_label_count(const ldns_rdf *r)
count the number of labels inside a LDNS_RDF_DNAME type rdf.
ldns_status ldns_dname_cat(ldns_rdf *rd1, const ldns_rdf *rd2)
concatenates rd2 after rd1 (rd2 is copied, rd1 is modified)
ldns_rdf * ldns_dname_label(const ldns_rdf *rdf, uint8_t labelpos)
look inside the rdf and if it is an LDNS_RDF_TYPE_DNAME try and retrieve a specific label.
ldns_rdf * ldns_dname_new_frm_str(const char *str)
creates a new dname rdf from a string.
enum ldns_enum_status ldns_status
Defines ldns_rdf and functions to manipulate those.
Resource record data field.