summaryrefslogtreecommitdiff
path: root/regress/lib/libssl/testdsa.sh
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>1999-01-05 17:53:10 +0000
committerBob Beck <beck@cvs.openbsd.org>1999-01-05 17:53:10 +0000
commit0a0f4596b795354a803b00baa899ecb288a1e20b (patch)
treee3d6adb6c26887e4c48130352afdb2bc6f527335 /regress/lib/libssl/testdsa.sh
parent65adbf725c06baaac6bc27dd4769fae6a9e3d45c (diff)
Fix up for make regress. Should handle objdir now.
Diffstat (limited to 'regress/lib/libssl/testdsa.sh')
-rw-r--r--regress/lib/libssl/testdsa.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/lib/libssl/testdsa.sh b/regress/lib/libssl/testdsa.sh
index 4c9668c906f..dc5d7b97b56 100644
--- a/regress/lib/libssl/testdsa.sh
+++ b/regress/lib/libssl/testdsa.sh
@@ -2,6 +2,8 @@
#Test DSA certificate generation of ssleay
+cd $1
+
# Generate DSA paramter set
ssleay dsaparam 512 -out dsa512.pem
if [ $? != 0 ]; then
@@ -10,7 +12,7 @@ fi
# Denerate a DSA certificate
-ssleay req -config ssleay.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key
+ssleay req -config $2/ssleay.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key
if [ $? != 0 ]; then
exit 1;
fi