[ldns-users] Access to raw rdata in ressource records
jelte at NLnetLabs.nl
Wed May 2 16:04:35 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Simon Vallet wrote:
> we're currently considering using ldns as a validating stub resolver in
> a number of applications needing DNSSEC support.
Cool, let me know how you are faring, and how we can improve on ldns.
> Looking a bit at the API documentation, I wonder wether it is possible
> to have access to the raw rdata in an RR (i.e. a size and a void *,
> rather than an ldns_rdf **). Best for us would be to have a drop-in
> replacement for more common resolver functions, and as some apps do the
> rdata parsing themselves, I'd rather not reassemble a raw rdata to
> parse it again once we're out of the compatibility layer.
For individual rdata fields, or do you want to read out the complete
rdata from an rr in one void*?
For individual rdata fields, you can get access to the actual data with
uint8_t *ldns_rdf_data (const ldns_rdf *rd)
returns the data of the rdf.
size_t ldns_rdf_size (const ldns_rdf *rd)
returns the size of the rdf.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the ldns-users