please test (HEADER.ad)

Tim Rice tim at multitalents.net
Tue Sep 9 03:29:18 EST 2003


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);


More information about the openssh-unix-dev mailing list