[ldns-users] Access to raw rdata in ressource records
Jelte Jansen
jelte at NLnetLabs.nl
Wed May 2 14:04:35 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Simon Vallet wrote:
> Hi,
>
> 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
these functions:
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.
Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGOJpn4nZCKsdOncURAu3dAJ4nYVp00CBYpjVsCy8q8Y65p/pO9wCgkEaR
oh+K+A6mDlvcl5GTkWKrOHE=
=9522
-----END PGP SIGNATURE-----
More information about the ldns-users
mailing list