From 17fb9ea763bb8c1fb9dd9de319a7f10409e17a61 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Sun, 26 Jan 2014 09:36:54 +0000 Subject: [PATCH] Exclude CRC code in DNSSEC build - replaced with SHA1. --- src/rfc1035.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rfc1035.c b/src/rfc1035.c index 1453157..5ae6e1b 100644 --- a/src/rfc1035.c +++ b/src/rfc1035.c @@ -360,6 +360,7 @@ static unsigned char *skip_section(unsigned char *ansp, int count, struct dns_he than CRC the raw bytes, since replies might be compressed differently. We ignore case in the names for the same reason. Return all-ones if there is not question section. */ +#ifndef HAVE_DNSSEC unsigned int questions_crc(struct dns_header *header, size_t plen, char *name) { int q; @@ -400,7 +401,7 @@ unsigned int questions_crc(struct dns_header *header, size_t plen, char *name) return crc; } - +#endif size_t resize_packet(struct dns_header *header, size_t plen, unsigned char *pheader, size_t hlen) {