X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/52b7d2ce06d68d0a9160d16f6e7c08c21c149d0d..c8d8bee0bee0298e25cb827876f57e58cc0a938c:/ipsec-tools/racoon/getcertsbyname.c?ds=sidebyside diff --git a/ipsec-tools/racoon/getcertsbyname.c b/ipsec-tools/racoon/getcertsbyname.c index 890f067..74a8501 100644 --- a/ipsec-tools/racoon/getcertsbyname.c +++ b/ipsec-tools/racoon/getcertsbyname.c @@ -29,9 +29,6 @@ * SUCH DAMAGE. */ -//%%%HWR Do we need this? -#define BIND_8_COMPAT - #include "config.h" #include @@ -39,7 +36,7 @@ #include #include -#include +#include #include #ifdef HAVE_LWRES_GETRRSETBYNAME #include @@ -56,13 +53,14 @@ #include #endif +#include "var.h" #include "netdb_dnssec.h" /* XXX should it use ci_errno to hold errno instead of h_errno ? */ extern int h_errno; -static struct certinfo *getnewci __P((int, int, int, int, int, - unsigned char *)); +static struct certinfo *getnewci (int, int, int, int, int, + unsigned char *); static struct certinfo * getnewci(qtype, keytag, algorithm, flags, certlen, cert) @@ -247,7 +245,7 @@ getcertsbyname(name, res) /* parse CERT RR */ eom = answer + anslen; - hp = (HEADER *)answer; + hp = ALIGNED_CAST(HEADER *)answer; qdcount = ntohs(hp->qdcount); ancount = ntohs(hp->ancount);