Home | History | Annotate | Download | only in resolv
      1 /*	$NetBSD: __dn_comp.c,v 1.4 2005/09/13 01:44:10 christos Exp $	*/
      2 
      3 /*
      4  * written by matthew green, 22/04/97.
      5  * public domain.
      6  */
      7 
      8 #include <sys/cdefs.h>
      9 #if defined(LIBC_SCCS) && !defined(lint)
     10 __RCSID("$NetBSD: __dn_comp.c,v 1.4 2005/09/13 01:44:10 christos Exp $");
     11 #endif /* LIBC_SCCS and not lint */
     12 
     13 #if defined(__indr_reference)
     14 __indr_reference(__dn_comp,dn_comp)
     15 #else
     16 
     17 #include <sys/types.h>
     18 #include <netinet/in.h>
     19 #ifdef ANDROID_CHANGES
     20 #include "resolv_private.h"
     21 #else
     22 #include <resolv.h>
     23 #endif
     24 
     25 /* XXX THIS IS A MESS!  SEE <resolv.h> XXX */
     26 
     27 #undef dn_comp
     28 int	dn_comp(const char *, u_char *, int, u_char **, u_char **);
     29 
     30 int
     31 dn_comp(const char *exp_dn, u_char *comp_dn, u_char **dnptrs,
     32     u_char **lastdnptr, int length)
     33 {
     34 
     35 	return __dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr);
     36 }
     37 
     38 #endif
     39