]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add dst_key_pubcompare and dst_key_compare unit test
authorAram Sargsyan <aram@isc.org>
Wed, 27 Oct 2021 19:52:05 +0000 (19:52 +0000)
committerAram Sargsyan <aram@isc.org>
Wed, 27 Oct 2021 22:23:03 +0000 (22:23 +0000)
commit7101afa23cfc7cd005aeeb00802481094a0b9cf5
tree72fcb93d69b6e41334da0cfd2b43c8627e9967cf
parent1ceb1f7ab09a2984ef976abcd33355eec48af7e9
Add dst_key_pubcompare and dst_key_compare unit test

The dst_key_pubcompare() and dst_key_compare() didn't have a unit test,
add the unit tests which test comparing the same keys, different keys,
and, where possible, similar keys with a manually altered parameter.

dst_key_pubcompare() internally uses the *_todns() functions of the
lib/dns/openssl*_link.c modules.

dst_key_compare() internally uses the *_compare() functions of the
lib/dns/openssl*_link.c modules.
32 files changed:
lib/dns/tests/comparekeys/Kexample-d.+008+53461.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample-d.+008+53461.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample-e.+008+53973.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample-e.+008+53973.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample-n.+008+37464.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample-n.+008+37464.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample-p.+008+53461.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample-p.+008+53461.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample-private.+002+65316.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample-private.+002+65316.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample-q.+008+53461.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample-q.+008+53461.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample.+002+65316.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample.+002+65316.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample.+008+53461.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample.+008+53461.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample.+013+19786.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample.+013+19786.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample.+015+63663.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample.+015+63663.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample2.+002+19823.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample2.+002+19823.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample2.+008+37993.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample2.+008+37993.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample2.+013+16384.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample2.+013+16384.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample2.+015+37529.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample2.+015+37529.private [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample3.+002+17187.key [new file with mode: 0644]
lib/dns/tests/comparekeys/Kexample3.+002+17187.private [new file with mode: 0644]
lib/dns/tests/dst_test.c
util/copyrights