mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
dnssec: check if RSASHA1 is supported by the OS
If not skip RSASHA1 based system tests which are supposed to succeed even in FIPS mode.
This commit is contained in:
@@ -1103,10 +1103,15 @@ status=$((status+ret))
|
|||||||
# Should work with FIPS mode as we are only validating
|
# Should work with FIPS mode as we are only validating
|
||||||
echo_i "checking positive validation RSASHA1 NSEC ($n)"
|
echo_i "checking positive validation RSASHA1 NSEC ($n)"
|
||||||
ret=0
|
ret=0
|
||||||
dig_with_opts +noauth a.rsasha1.example. @10.53.0.3 a > dig.out.ns3.test$n || ret=1
|
if $FEATURETEST --rsasha1
|
||||||
dig_with_opts +noauth a.rsasha1.example. @10.53.0.4 a > dig.out.ns4.test$n || ret=1
|
then
|
||||||
digcomp dig.out.ns3.test$n dig.out.ns4.test$n || ret=1
|
dig_with_opts +noauth a.rsasha1.example. @10.53.0.3 a > dig.out.ns3.test$n || ret=1
|
||||||
grep "flags:.*ad.*QUERY" dig.out.ns4.test$n > /dev/null || ret=1
|
dig_with_opts +noauth a.rsasha1.example. @10.53.0.4 a > dig.out.ns4.test$n || ret=1
|
||||||
|
digcomp dig.out.ns3.test$n dig.out.ns4.test$n || ret=1
|
||||||
|
grep "flags:.*ad.*QUERY" dig.out.ns4.test$n > /dev/null || ret=1
|
||||||
|
else
|
||||||
|
echo_i "skip: RSASHA1 not supported by OS"
|
||||||
|
fi
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
test "$ret" -eq 0 || echo_i "failed"
|
test "$ret" -eq 0 || echo_i "failed"
|
||||||
status=$((status+ret))
|
status=$((status+ret))
|
||||||
@@ -1114,10 +1119,15 @@ status=$((status+ret))
|
|||||||
# Should work with FIPS mode as we are only validating
|
# Should work with FIPS mode as we are only validating
|
||||||
echo_i "checking positive validation RSASHA1 (1024 bits) NSEC ($n)"
|
echo_i "checking positive validation RSASHA1 (1024 bits) NSEC ($n)"
|
||||||
ret=0
|
ret=0
|
||||||
dig_with_opts +noauth a.rsasha1-1024.example. @10.53.0.3 a > dig.out.ns3.test$n || ret=1
|
if $FEATURETEST --rsasha1
|
||||||
dig_with_opts +noauth a.rsasha1-1024.example. @10.53.0.4 a > dig.out.ns4.test$n || ret=1
|
then
|
||||||
digcomp dig.out.ns3.test$n dig.out.ns4.test$n || ret=1
|
dig_with_opts +noauth a.rsasha1-1024.example. @10.53.0.3 a > dig.out.ns3.test$n || ret=1
|
||||||
grep "flags:.*ad.*QUERY" dig.out.ns4.test$n > /dev/null || ret=1
|
dig_with_opts +noauth a.rsasha1-1024.example. @10.53.0.4 a > dig.out.ns4.test$n || ret=1
|
||||||
|
digcomp dig.out.ns3.test$n dig.out.ns4.test$n || ret=1
|
||||||
|
grep "flags:.*ad.*QUERY" dig.out.ns4.test$n > /dev/null || ret=1
|
||||||
|
else
|
||||||
|
echo_i "skip: RSASHA1 not supported by OS"
|
||||||
|
fi
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
test "$ret" -eq 0 || echo_i "failed"
|
test "$ret" -eq 0 || echo_i "failed"
|
||||||
status=$((status+ret))
|
status=$((status+ret))
|
||||||
|
Reference in New Issue
Block a user