mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Define and implement RES_USE_DNSSEC option in resolver.
This commit is contained in:
committed by
Ulrich Drepper
parent
09cd1f5754
commit
2d0671cbbd
@@ -247,7 +247,15 @@ __res_nopt(res_state statp,
|
||||
NS_PUT16(MIN(anslen, 0xffff), cp); /* CLASS = UDP payload size */
|
||||
*cp++ = NOERROR; /* extended RCODE */
|
||||
*cp++ = 0; /* EDNS version */
|
||||
/* XXX Once we support DNSSEC we change the flag value here. */
|
||||
|
||||
if (statp->options & RES_USE_DNSSEC) {
|
||||
#ifdef DEBUG
|
||||
if (statp->options & RES_DEBUG)
|
||||
printf(";; res_opt()... ENDS0 DNSSEC\n");
|
||||
#endif
|
||||
flags |= NS_OPT_DNSSEC_OK;
|
||||
}
|
||||
|
||||
NS_PUT16(flags, cp);
|
||||
NS_PUT16(0, cp); /* RDLEN */
|
||||
hp->arcount = htons(ntohs(hp->arcount) + 1);
|
||||
|
Reference in New Issue
Block a user