2005-07-30 19:21:20 +04:00
|
|
|
/* $NetBSD: __dn_comp.c,v 1.3 2005/07/30 15:21:20 christos Exp $ */
|
2004-05-20 22:00:55 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* written by matthew green, 22/04/97.
|
|
|
|
* public domain.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
2005-06-12 09:21:25 +04:00
|
|
|
#if defined(LIBC_SCCS) && !defined(lint)
|
2005-07-30 19:21:20 +04:00
|
|
|
__RCSID("$NetBSD: __dn_comp.c,v 1.3 2005/07/30 15:21:20 christos Exp $");
|
2005-06-12 09:21:25 +04:00
|
|
|
#endif /* LIBC_SCCS and not lint */
|
2004-05-20 22:00:55 +04:00
|
|
|
|
2005-07-30 19:21:20 +04:00
|
|
|
#if defined(__indr_reference) && !defined(__lint__)
|
2004-05-20 22:00:55 +04:00
|
|
|
__indr_reference(__dn_comp,dn_comp)
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <resolv.h>
|
|
|
|
|
|
|
|
/* XXX THIS IS A MESS! SEE <resolv.h> XXX */
|
|
|
|
|
|
|
|
#undef dn_comp
|
|
|
|
int dn_comp __P((const char *, u_char *, int, u_char **, u_char **));
|
|
|
|
|
|
|
|
int
|
|
|
|
dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr)
|
|
|
|
const char *exp_dn;
|
|
|
|
u_char *comp_dn, **dnptrs, **lastdnptr;
|
|
|
|
int length;
|
|
|
|
{
|
|
|
|
|
|
|
|
return __dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|