Fix hashing of TLSA packets

Also add example files with TLSA and SSHFP records.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2016-01-31 16:23:00 -05:00
parent fff85dbe15
commit fa45182ed6
4 changed files with 4 additions and 2 deletions

View file

@ -5324,7 +5324,9 @@ EXTRA_DIST += \
src/resolve/test-data/root.pkts \
src/resolve/test-data/sw1a1aa-sw1a2aa-sw1a2ab-sw1a2ac.find.me.uk.pkts \
src/resolve/test-data/teamits.com.pkts \
src/resolve/test-data/zbyszek@fedoraproject.org.pkts
src/resolve/test-data/zbyszek@fedoraproject.org.pkts \
src/resolve/test-data/_443._tcp.fedoraproject.org.pkts \
src/resolve/test-data/kyhwana.org.pkts
test_dnssec_SOURCES = \
src/resolve/test-dnssec.c \

View file

@ -1429,7 +1429,7 @@ void dns_resource_record_hash_func(const void *i, struct siphash *state) {
siphash24_compress(&rr->tlsa.cert_usage, sizeof(rr->tlsa.cert_usage), state);
siphash24_compress(&rr->tlsa.selector, sizeof(rr->tlsa.selector), state);
siphash24_compress(&rr->tlsa.matching_type, sizeof(rr->tlsa.matching_type), state);
siphash24_compress(&rr->tlsa.data, rr->tlsa.data_size, state);
siphash24_compress(rr->tlsa.data, rr->tlsa.data_size, state);
break;
case DNS_TYPE_OPENPGPKEY:

Binary file not shown.

Binary file not shown.