Could someone with HEADER.ad in arpa/nameser.h please test the attached patch (against current) to see it it's detected. None of my platforms have the ad member. config.h will end up with "#define HAVE_HEADER_AD". -- Tim Rice Multitalents (707) 887-1469 tim at multitalents.net -------------- next part -------------- --- openssh/configure.ac.old 2003-09-08 06:33:33.000000000 -0700 +++ openssh/configure.ac 2003-09-08 10:07:44.849040019 -0700 @@ -1913,6 +1913,9 @@ AC_SEARCH_LIBS(res_query, resolv) AC_SEARCH_LIBS(dn_expand, resolv) AC_CHECK_FUNCS(_getshort _getlong) + AC_CHECK_MEMBER(struct HEADER.ad, + [AC_DEFINE(HAVE_HEADER_AD)],, + [#include arpa/nameser.h]) ]) fi ] --- openssh/acconfig.h.old 2003-09-07 11:01:43.989760001 -0700 +++ openssh/acconfig.h 2003-09-08 09:58:18.714080015 -0700 @@ -418,6 +418,9 @@ /* Define if getrrsetbyname() exists */ #undef HAVE_GETRRSETBYNAME +/* Define if HEADER.ad exists in arpa/nameser.h */ +#undef HAVE_HEADER_AD + @BOTTOM@ /* ******************* Shouldn't need to edit below this line ************** */ --- openssh/openbsd-compat/getrrsetbyname.c.old 2003-09-08 06:29:05.644640000 -0700 +++ openssh/openbsd-compat/getrrsetbyname.c 2003-09-08 10:08:28.004080003 -0700 @@ -243,9 +243,11 @@ rrset->rri_ttl = response->answer->ttl; rrset->rri_nrdatas = response->header.ancount; +#ifdef HAVE_HEADER_AD /* check for authenticated data */ if (response->header.ad == 1) rrset->rri_flags |= RRSET_VALIDATED; +#endif /* copy name from answer section */ length = strlen(response->answer->name);
Sorry, forgot to mention you must use the --with-dns option to configure. On Mon, 8 Sep 2003, Tim Rice wrote:> > Could someone with HEADER.ad in arpa/nameser.h please test the > attached patch (against current) to see it it's detected. > > None of my platforms have the ad member. > > config.h will end up with "#define HAVE_HEADER_AD". > >-- Tim Rice Multitalents (707) 887-1469 tim at multitalents.net -------------- next part -------------- --- openssh/configure.ac.old 2003-09-08 06:33:33.000000000 -0700 +++ openssh/configure.ac 2003-09-08 10:07:44.849040019 -0700 @@ -1913,6 +1913,9 @@ AC_SEARCH_LIBS(res_query, resolv) AC_SEARCH_LIBS(dn_expand, resolv) AC_CHECK_FUNCS(_getshort _getlong) + AC_CHECK_MEMBER(struct HEADER.ad, + [AC_DEFINE(HAVE_HEADER_AD)],, + [#include arpa/nameser.h]) ]) fi ] --- openssh/acconfig.h.old 2003-09-07 11:01:43.989760001 -0700 +++ openssh/acconfig.h 2003-09-08 09:58:18.714080015 -0700 @@ -418,6 +418,9 @@ /* Define if getrrsetbyname() exists */ #undef HAVE_GETRRSETBYNAME +/* Define if HEADER.ad exists in arpa/nameser.h */ +#undef HAVE_HEADER_AD + @BOTTOM@ /* ******************* Shouldn't need to edit below this line ************** */ --- openssh/openbsd-compat/getrrsetbyname.c.old 2003-09-08 06:29:05.644640000 -0700 +++ openssh/openbsd-compat/getrrsetbyname.c 2003-09-08 10:08:28.004080003 -0700 @@ -243,9 +243,11 @@ rrset->rri_ttl = response->answer->ttl; rrset->rri_nrdatas = response->header.ancount; +#ifdef HAVE_HEADER_AD /* check for authenticated data */ if (response->header.ad == 1) rrset->rri_flags |= RRSET_VALIDATED; +#endif /* copy name from answer section */ length = strlen(response->answer->name);
Maybe Matching Threads
- [Bug 1455] New: ssh client ignoring ad bit in dns response - OSX 10.5
- [PATCH] Add support for ldns
- Resolver changes broke AIX & HPUX
- ssh hangs or gives Segmentation fault
- [Bug 2022] ssh segfaults when using ldns, SSHFP, a DNSSEC-enabled resolver and a CNAME