Commit 17fb9ea7 authored by Simon Kelley's avatar Simon Kelley

Exclude CRC code in DNSSEC build - replaced with SHA1.

parent 7d23a66f
...@@ -360,6 +360,7 @@ static unsigned char *skip_section(unsigned char *ansp, int count, struct dns_he ...@@ -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. than CRC the raw bytes, since replies might be compressed differently.
We ignore case in the names for the same reason. Return all-ones We ignore case in the names for the same reason. Return all-ones
if there is not question section. */ if there is not question section. */
#ifndef HAVE_DNSSEC
unsigned int questions_crc(struct dns_header *header, size_t plen, char *name) unsigned int questions_crc(struct dns_header *header, size_t plen, char *name)
{ {
int q; int q;
...@@ -400,7 +401,7 @@ unsigned int questions_crc(struct dns_header *header, size_t plen, char *name) ...@@ -400,7 +401,7 @@ unsigned int questions_crc(struct dns_header *header, size_t plen, char *name)
return crc; return crc;
} }
#endif
size_t resize_packet(struct dns_header *header, size_t plen, unsigned char *pheader, size_t hlen) size_t resize_packet(struct dns_header *header, size_t plen, unsigned char *pheader, size_t hlen)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment