]> git.ipfire.org Git - thirdparty/krb5.git/commit
Refactor dnsglue functions using k5input 1435/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 21 May 2025 21:11:07 +0000 (17:11 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 13 Jun 2025 22:10:47 +0000 (18:10 -0400)
commit2cc718a86d92abef7363384d7eac48190271f676
tree62d471dbe5a218e43e1b5b2da938de9ac8dbf21c
parentdf70aed645da58698466f5a8811a75873b85b5b2
Refactor dnsglue functions using k5input

Use k5input to make the dnsglue.c and dnssrv.c functions simpler and
more robust.  Rename the dnsglue functions to use the now-preferred
k5_ prefix instead of krb5int_.  Use stdint type names instead of
unsigned char and unsigned short.  Remove some out-of-date comments.

Change the query loop in k5_dns_init() to continue expanding the
buffer if the reported answer length is exactly equal to the buffer
size, as that is the observed behavior from the glibc res_nquery()
when the buffer size is too small for the answer.
src/lib/krb5/os/dnsglue.c
src/lib/krb5/os/dnsglue.h
src/lib/krb5/os/dnssrv.c