]> git.ipfire.org Git - thirdparty/bind9.git/commit
Check that we can verify a signature at initialisation time
authorMark Andrews <marka@isc.org>
Tue, 22 Mar 2022 05:16:57 +0000 (16:16 +1100)
committerMark Andrews <marka@isc.org>
Mon, 25 Jul 2022 14:59:38 +0000 (10:59 -0400)
commitf3a0dac0573d21887ee0fa262b2c3a75466a538b
tree2b4239d6333f7d849eb0f89d48667da2cb4070ec
parentc3ab2a25efed9cb26037d1cf22499d5045be84d2
Check that we can verify a signature at initialisation time

Fedora 33 doesn't support RSASHA1 in future mode.  There is no easy
check for this other than by attempting to perform a verification
using known good signatures.  We don't attempt to sign with RSASHA1
as that would not work in FIPS mode.  RSASHA1 is verify only.

The test vectors were generated using OpenSSL 3.0 and
util/gen-rsa-sha-vectors.c.  Rerunning will generate a new set of
test vectors as the private key is not preserved.

e.g.
cc util/gen-rsa-sha-vectors.c -I /opt/local/include \
-L /opt/local/lib -lcrypto

(cherry picked from commit cd3f00874f63a50954cebb78edac8f580a27c0de)
lib/dns/opensslrsa_link.c
util/gen-rsa-sha-vectors.c [new file with mode: 0644]