stupid lwres question
Michael Richardson
mcr at sandelman.ottawa.on.ca
Fri Oct 18 01:54:24 UTC 2002
-----BEGIN PGP SIGNED MESSAGE-----
>>>>> "Mark" == Mark Andrews <Mark.Andrews at isc.org> writes:
Mark> I ment to say dns_rdata_fromregion() and dns_rdata_tostruct().
Mark> Also dns_rdata_totext().
Four questions
1) will there be man pages for these eventually?
2) is this an interface you want people to use?
3) I think that the only docs are in the headers, are there others?
4) I think that I should do something like the following:
isc_region_t region;
dns_rdata_t rd;
dns_rdata_sig_t sig;
{res is result from lwres_getrrsetbyname()}
region.base = &res->rri_sigs[i];
region.length = res->rri_length;
dns_rdata_fromregion(&rd, ns_c_in, ns_t_sig, ®ion);
dns_rdata_tostruct(&rd, &sig, NULL);
- -> I now have the signature decoded into a structure.
isc_buffer_t *mybuf;
isc_mem_t *mymem;
isc_mem_create(0, 0, &mymem);
isc_buffer_allocate(mymem, &mybuf, 1024); /* but is there a better number? */
dns_rdata_totext(&rd, NULL, mybuf);
] ON HUMILITY: to err is human. To moo, bovine. | firewalls [
] Michael Richardson, Sandelman Software Works, Ottawa, ON |net architect[
] mcr at sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Finger me for keys
iQCVAwUBPa9kVIqHRg3pndX9AQECigP/SXa/RgY13o3D3iOZ4JLJ1Q6tzl9j/D9w
hNjbwLtjEpzx15VMdmuEeaouZREZmmrbOYizF6UT0Q9CFNpVWi9TX5yWzRXvHsYX
4qAFMuakka9Sm4fm5zeN1MS2OR9P9oC7913LJH0PALLixkWbLs2Mbxcr75p3spH0
jo+H/1cuimA=
=2A0R
-----END PGP SIGNATURE-----
More information about the bind-workers
mailing list