summaryrefslogtreecommitdiffstats
path: root/test/testss
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-03-13 19:24:39 +0000
committerBodo Möller <bodo@openssl.org>2000-03-13 19:24:39 +0000
commit65b002f39934a755b6db855c9f9ba722d6cef863 (patch)
treeb26617a66f83a3bd399da887892a6e4af0ba3735 /test/testss
parentbc23b70e47531cabe5b3c329ba0b5d58777fbb7b (diff)
Update test suite so that 'make test' succeeds in 'no-rsa' configuration.
Diffstat (limited to 'test/testss')
-rw-r--r--test/testss11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/testss b/test/testss
index da62997a5f..fc27c83fa7 100644
--- a/test/testss
+++ b/test/testss
@@ -19,7 +19,14 @@ Ucert="certU.ss"
echo
echo "make a certificate request using 'req'"
-$reqcmd -config $CAconf -out $CAreq -keyout $CAkey -new #>err.ss
+
+if ../apps/openssl list-standard-commands | grep '^rsa$' >/dev/null; then
+ req_new='-new'
+else
+ req_new='-newkey dsa:../apps/dsa512.pem'
+fi
+
+$reqcmd -config $CAconf -out $CAreq -keyout $CAkey $req_new #>err.ss
if [ $? != 0 ]; then
echo "error using 'req' to generate a certificate request"
exit 1
@@ -60,7 +67,7 @@ fi
echo
echo "make another certificate request using 'req'"
-$reqcmd -config $Uconf -out $Ureq -keyout $Ukey -new >err.ss
+$reqcmd -config $Uconf -out $Ureq -keyout $Ukey $req_new >err.ss
if [ $? != 0 ]; then
echo "error using 'req' to generate a certificate request"
exit 1