Go to the source code of this file.
Functions | |
ldns_rdf * | ldns_rr_a_address (const ldns_rr *r) |
returns the address of a LDNS_RR_TYPE_A rr | |
bool | ldns_rr_a_set_address (ldns_rr *r, ldns_rdf *f) |
sets the address of a LDNS_RR_TYPE_A rr | |
ldns_rdf * | ldns_rr_ns_nsdname (const ldns_rr *r) |
returns the name of a LDNS_RR_TYPE_NS rr | |
ldns_rdf * | ldns_rr_mx_preference (const ldns_rr *r) |
returns the mx pref. | |
ldns_rdf * | ldns_rr_mx_exchange (const ldns_rr *r) |
returns the mx host of a LDNS_RR_TYPE_MX rr | |
ldns_rdf * | ldns_rr_rrsig_typecovered (const ldns_rr *r) |
returns the type covered of a LDNS_RR_TYPE_RRSIG rr | |
bool | ldns_rr_rrsig_set_typecovered (ldns_rr *r, ldns_rdf *f) |
sets the typecovered of a LDNS_RR_TYPE_RRSIG rr | |
ldns_rdf * | ldns_rr_rrsig_algorithm (const ldns_rr *r) |
returns the algorithm of a LDNS_RR_TYPE_RRSIG RR | |
bool | ldns_rr_rrsig_set_algorithm (ldns_rr *r, ldns_rdf *f) |
sets the algorithm of a LDNS_RR_TYPE_RRSIG rr | |
ldns_rdf * | ldns_rr_rrsig_labels (const ldns_rr *r) |
returns the number of labels of a LDNS_RR_TYPE_RRSIG RR | |
bool | ldns_rr_rrsig_set_labels (ldns_rr *r, ldns_rdf *f) |
sets the number of labels of a LDNS_RR_TYPE_RRSIG rr | |
ldns_rdf * | ldns_rr_rrsig_origttl (const ldns_rr *r) |
returns the original TTL of a LDNS_RR_TYPE_RRSIG RR | |
bool | ldns_rr_rrsig_set_origttl (ldns_rr *r, ldns_rdf *f) |
sets the original TTL of a LDNS_RR_TYPE_RRSIG rr | |
ldns_rdf * | ldns_rr_rrsig_expiration (const ldns_rr *r) |
returns the expiration time of a LDNS_RR_TYPE_RRSIG RR | |
bool | ldns_rr_rrsig_set_expiration (ldns_rr *r, ldns_rdf *f) |
sets the expireation date of a LDNS_RR_TYPE_RRSIG rr | |
ldns_rdf * | ldns_rr_rrsig_inception (const ldns_rr *r) |
returns the inception time of a LDNS_RR_TYPE_RRSIG RR | |
bool | ldns_rr_rrsig_set_inception (ldns_rr *r, ldns_rdf *f) |
sets the inception date of a LDNS_RR_TYPE_RRSIG rr | |
ldns_rdf * | ldns_rr_rrsig_keytag (const ldns_rr *r) |
returns the keytag of a LDNS_RR_TYPE_RRSIG RR | |
bool | ldns_rr_rrsig_set_keytag (ldns_rr *r, ldns_rdf *f) |
sets the keytag of a LDNS_RR_TYPE_RRSIG rr | |
ldns_rdf * | ldns_rr_rrsig_signame (const ldns_rr *r) |
returns the signers name of a LDNS_RR_TYPE_RRSIG RR | |
bool | ldns_rr_rrsig_set_signame (ldns_rr *r, ldns_rdf *f) |
sets the signers name of a LDNS_RR_TYPE_RRSIG rr | |
ldns_rdf * | ldns_rr_rrsig_sig (const ldns_rr *r) |
returns the signature data of a LDNS_RR_TYPE_RRSIG RR | |
bool | ldns_rr_rrsig_set_sig (ldns_rr *r, ldns_rdf *f) |
sets the signature data of a LDNS_RR_TYPE_RRSIG rr | |
ldns_rdf * | ldns_rr_dnskey_flags (const ldns_rr *r) |
returns the flags of a LDNS_RR_TYPE_DNSKEY rr | |
bool | ldns_rr_dnskey_set_flags (ldns_rr *r, ldns_rdf *f) |
sets the flags of a LDNS_RR_TYPE_DNSKEY rr | |
ldns_rdf * | ldns_rr_dnskey_protocol (const ldns_rr *r) |
returns the protocol of a LDNS_RR_TYPE_DNSKEY rr | |
bool | ldns_rr_dnskey_set_protocol (ldns_rr *r, ldns_rdf *f) |
sets the protocol of a LDNS_RR_TYPE_DNSKEY rr | |
ldns_rdf * | ldns_rr_dnskey_algorithm (const ldns_rr *r) |
returns the algorithm of a LDNS_RR_TYPE_DNSKEY rr | |
bool | ldns_rr_dnskey_set_algorithm (ldns_rr *r, ldns_rdf *f) |
sets the algorithm of a LDNS_RR_TYPE_DNSKEY rr | |
ldns_rdf * | ldns_rr_dnskey_key (const ldns_rr *r) |
returns the key data of a LDNS_RR_TYPE_DNSKEY rr | |
bool | ldns_rr_dnskey_set_key (ldns_rr *r, ldns_rdf *f) |
sets the key data of a LDNS_RR_TYPE_DNSKEY rr | |
size_t | ldns_rr_dnskey_key_size_raw (const unsigned char *keydata, const size_t len, const ldns_algorithm alg) |
get the length of the keydata in bits | |
size_t | ldns_rr_dnskey_key_size (const ldns_rr *key) |
get the length of the keydata in bits |
returns the address of a LDNS_RR_TYPE_A rr
[in] | r | the resource record |
Definition at line 65 of file rr_functions.c.
References ldns_rr_get_type(), ldns_rr_rdf(), LDNS_RR_TYPE_A, and LDNS_RR_TYPE_AAAA.
sets the address of a LDNS_RR_TYPE_A rr
[in] | r | the rr to use |
[in] | f | the address to set |
Definition at line 76 of file rr_functions.c.
References LDNS_FREE, ldns_rr_get_type(), ldns_rr_set_rdf(), LDNS_RR_TYPE_A, and LDNS_RR_TYPE_AAAA.
returns the name of a LDNS_RR_TYPE_NS rr
[in] | r | the resource record |
Definition at line 95 of file rr_functions.c.
References LDNS_RR_TYPE_NS.
returns the mx pref.
of a LDNS_RR_TYPE_MX rr
[in] | r | the resource record |
Definition at line 102 of file rr_functions.c.
References LDNS_RR_TYPE_MX.
returns the mx host of a LDNS_RR_TYPE_MX rr
[in] | r | the resource record |
Definition at line 108 of file rr_functions.c.
References LDNS_RR_TYPE_MX.
returns the type covered of a LDNS_RR_TYPE_RRSIG rr
[in] | r | the resource record |
Definition at line 115 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
sets the typecovered of a LDNS_RR_TYPE_RRSIG rr
[in] | r | the rr to use |
[in] | f | the typecovered to set |
Definition at line 121 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
returns the algorithm of a LDNS_RR_TYPE_RRSIG RR
[in] | r | the resource record |
Definition at line 127 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
sets the algorithm of a LDNS_RR_TYPE_RRSIG rr
[in] | r | the rr to use |
[in] | f | the algorithm to set |
Definition at line 133 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
returns the number of labels of a LDNS_RR_TYPE_RRSIG RR
[in] | r | the resource record |
Definition at line 139 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
sets the number of labels of a LDNS_RR_TYPE_RRSIG rr
[in] | r | the rr to use |
[in] | f | the number of labels to set |
Definition at line 145 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
returns the original TTL of a LDNS_RR_TYPE_RRSIG RR
[in] | r | the resource record |
Definition at line 151 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
sets the original TTL of a LDNS_RR_TYPE_RRSIG rr
[in] | r | the rr to use |
[in] | f | the original TTL to set |
Definition at line 157 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
returns the expiration time of a LDNS_RR_TYPE_RRSIG RR
[in] | r | the resource record |
Definition at line 163 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
sets the expireation date of a LDNS_RR_TYPE_RRSIG rr
[in] | r | the rr to use |
[in] | f | the expireation date to set |
Definition at line 169 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
returns the inception time of a LDNS_RR_TYPE_RRSIG RR
[in] | r | the resource record |
Definition at line 175 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
sets the inception date of a LDNS_RR_TYPE_RRSIG rr
[in] | r | the rr to use |
[in] | f | the inception date to set |
Definition at line 181 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
returns the keytag of a LDNS_RR_TYPE_RRSIG RR
[in] | r | the resource record |
Definition at line 187 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
sets the keytag of a LDNS_RR_TYPE_RRSIG rr
[in] | r | the rr to use |
[in] | f | the keytag to set |
Definition at line 193 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
returns the signers name of a LDNS_RR_TYPE_RRSIG RR
[in] | r | the resource record |
Definition at line 199 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
sets the signers name of a LDNS_RR_TYPE_RRSIG rr
[in] | r | the rr to use |
[in] | f | the signers name to set |
Definition at line 205 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
returns the signature data of a LDNS_RR_TYPE_RRSIG RR
[in] | r | the resource record |
Definition at line 211 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
sets the signature data of a LDNS_RR_TYPE_RRSIG rr
[in] | r | the rr to use |
[in] | f | the signature data to set |
Definition at line 217 of file rr_functions.c.
References LDNS_RR_TYPE_RRSIG.
returns the flags of a LDNS_RR_TYPE_DNSKEY rr
[in] | r | the resource record |
Definition at line 224 of file rr_functions.c.
References LDNS_RR_TYPE_DNSKEY.
sets the flags of a LDNS_RR_TYPE_DNSKEY rr
[in] | r | the rr to use |
[in] | f | the flags to set |
Definition at line 230 of file rr_functions.c.
References LDNS_RR_TYPE_DNSKEY.
returns the protocol of a LDNS_RR_TYPE_DNSKEY rr
[in] | r | the resource record |
Definition at line 236 of file rr_functions.c.
References LDNS_RR_TYPE_DNSKEY.
sets the protocol of a LDNS_RR_TYPE_DNSKEY rr
[in] | r | the rr to use |
[in] | f | the protocol to set |
Definition at line 242 of file rr_functions.c.
References LDNS_RR_TYPE_DNSKEY.
returns the algorithm of a LDNS_RR_TYPE_DNSKEY rr
[in] | r | the resource record |
Definition at line 248 of file rr_functions.c.
References LDNS_RR_TYPE_DNSKEY.
sets the algorithm of a LDNS_RR_TYPE_DNSKEY rr
[in] | r | the rr to use |
[in] | f | the algorithm to set |
Definition at line 254 of file rr_functions.c.
References LDNS_RR_TYPE_DNSKEY.
returns the key data of a LDNS_RR_TYPE_DNSKEY rr
[in] | r | the resource record |
Definition at line 260 of file rr_functions.c.
References LDNS_RR_TYPE_DNSKEY.
sets the key data of a LDNS_RR_TYPE_DNSKEY rr
[in] | r | the rr to use |
[in] | f | the key data to set |
Definition at line 266 of file rr_functions.c.
References LDNS_RR_TYPE_DNSKEY.
size_t ldns_rr_dnskey_key_size_raw | ( | const unsigned char * | keydata, | |
const size_t | len, | |||
const ldns_algorithm | alg | |||
) |
get the length of the keydata in bits
[in] | keydata | the raw key data |
[in] | len | the length of the keydata |
[in] | alg | the cryptographic algorithm this is a key for |
Definition at line 272 of file rr_functions.c.
References LDNS_SIGN_DSA, LDNS_SIGN_DSA_NSEC3, LDNS_SIGN_HMACMD5, LDNS_SIGN_RSAMD5, LDNS_SIGN_RSASHA1, LDNS_SIGN_RSASHA1_NSEC3, LDNS_SIGN_RSASHA256, and LDNS_SIGN_RSASHA512.
size_t ldns_rr_dnskey_key_size | ( | const ldns_rr * | key | ) |
get the length of the keydata in bits
[in] | key | the key rr to use |
Definition at line 325 of file rr_functions.c.
References ldns_rdf2native_int8(), ldns_rdf_data(), ldns_rdf_size(), ldns_rr_dnskey_algorithm(), ldns_rr_dnskey_key(), and ldns_rr_dnskey_key_size_raw().