Go to the source code of this file.
Functions | |
ldns_status | ldns_rdf2buffer_wire (ldns_buffer *output, const ldns_rdf *rdf) |
Copies the rdata data to the buffer in wire format. | |
ldns_status | ldns_rr2buffer_wire (ldns_buffer *output, const ldns_rr *rr, int section) |
Copies the rr data to the buffer in wire format. | |
ldns_status | ldns_rrsig2buffer_wire (ldns_buffer *output, ldns_rr *sigrr) |
Converts a rrsig to wireformat BUT EXCLUDE the rrsig rdata This is needed in DNSSEC verification. | |
ldns_status | ldns_rr_rdata2buffer_wire (ldns_buffer *output, ldns_rr *rr) |
Converts an rr's rdata to wireformat, while excluding the ownername and all the crap before the rdata. | |
ldns_status | ldns_pkt2buffer_wire (ldns_buffer *output, const ldns_pkt *pkt) |
Copies the packet data to the buffer in wire format. | |
ldns_status | ldns_rr_list2buffer_wire (ldns_buffer *output, ldns_rr_list *rrlist) |
Copies the rr_list data to the buffer in wire format. | |
ldns_status | ldns_rdf2wire (uint8_t **dest, const ldns_rdf *rdf, size_t *size) |
Allocates an array of uint8_t at dest, and puts the wireformat of the given rdf in that array. | |
ldns_status | ldns_rr2wire (uint8_t **dest, const ldns_rr *rr, int, size_t *size) |
Allocates an array of uint8_t at dest, and puts the wireformat of the given rr in that array. | |
ldns_status | ldns_pkt2wire (uint8_t **dest, const ldns_pkt *p, size_t *size) |
Allocates an array of uint8_t at dest, and puts the wireformat of the given packet in that array. |
ldns_status ldns_pkt2buffer_wire | ( | ldns_buffer * | output, | |
const ldns_pkt * | pkt | |||
) |
Copies the packet data to the buffer in wire format.
[out] | *output | buffer to append the result to |
[in] | *pkt | packet to convert |
ldns_status ldns_pkt2wire | ( | uint8_t ** | dest, | |
const ldns_pkt * | p, | |||
size_t * | size | |||
) |
Allocates an array of uint8_t at dest, and puts the wireformat of the given packet in that array.
The result_size value contains the length of the array, if it succeeds, and 0 otherwise (in which case the function also returns NULL)
ldns_status ldns_rdf2buffer_wire | ( | ldns_buffer * | output, | |
const ldns_rdf * | rdf | |||
) |
Copies the rdata data to the buffer in wire format.
[out] | *output | buffer to append the result to |
[in] | *rdf | rdata to convert |
ldns_status ldns_rdf2wire | ( | uint8_t ** | dest, | |
const ldns_rdf * | rdf, | |||
size_t * | size | |||
) |
Allocates an array of uint8_t at dest, and puts the wireformat of the given rdf in that array.
The result_size value contains the length of the array, if it succeeds, and 0 otherwise (in which case the function also returns NULL)
[out] | dest | pointer to the array of bytes to be created |
[in] | rdf | the rdata field to convert |
[out] | size | the size of the converted result |
ldns_status ldns_rr2buffer_wire | ( | ldns_buffer * | output, | |
const ldns_rr * | rr, | |||
int | section | |||
) |
Copies the rr data to the buffer in wire format.
[out] | *output | buffer to append the result to |
[in] | *rr | resource record to convert |
[in] | section | the section in the packet this rr is supposed to be in (to determine whether to add rdata or not) |
ldns_status ldns_rr2wire | ( | uint8_t ** | dest, | |
const ldns_rr * | rr, | |||
int | , | |||
size_t * | size | |||
) |
Allocates an array of uint8_t at dest, and puts the wireformat of the given rr in that array.
The result_size value contains the length of the array, if it succeeds, and 0 otherwise (in which case the function also returns NULL)
If the section argument is LDNS_SECTION_QUESTION, data like ttl and rdata are not put into the result
[out] | dest | pointer to the array of bytes to be created |
[in] | rr | the rr to convert |
[out] | size | the size of the converted result |
ldns_status ldns_rr_list2buffer_wire | ( | ldns_buffer * | output, | |
ldns_rr_list * | rrlist | |||
) |
Copies the rr_list data to the buffer in wire format.
[out] | *output | buffer to append the result to |
[in] | *rrlist | rr_list to to convert |
ldns_status ldns_rr_rdata2buffer_wire | ( | ldns_buffer * | output, | |
ldns_rr * | rr | |||
) |
Converts an rr's rdata to wireformat, while excluding the ownername and all the crap before the rdata.
This is needed in DNSSEC keytag calculation, the ds calcalution from the key and maybe elsewhere.
[out] | *output | buffer where to put the result |
[in] | *rr | rr to operate on |
ldns_status ldns_rrsig2buffer_wire | ( | ldns_buffer * | output, | |
ldns_rr * | sigrr | |||
) |
Converts a rrsig to wireformat BUT EXCLUDE the rrsig rdata This is needed in DNSSEC verification.
[out] | output | buffer to append the result to |
[in] | sigrr | signature rr to operate on |