summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-06-17 21:10:35 +0000
committerBodo Möller <bodo@openssl.org>1999-06-17 21:10:35 +0000
commit56f74f2ec3a307bbc65a7a7099ea59508755183f (patch)
treed16eeb97c260dcc9dea128c50cc3f3b3559224e5 /test
parent8050bc7955c538a6ca6fdc18a4293aee40a30094 (diff)
downloadopenssl-new-56f74f2ec3a307bbc65a7a7099ea59508755183f.tar.gz
Don't access configuration files outside the source tree.
Diffstat (limited to 'test')
-rw-r--r--test/testgen2
-rw-r--r--test/testss5
-rw-r--r--test/treq2
3 files changed, 5 insertions, 4 deletions
diff --git a/test/testgen b/test/testgen
index f31586e2a4..3534f5821f 100644
--- a/test/testgen
+++ b/test/testgen
@@ -21,7 +21,7 @@ echo problems creating request
exit 1
fi
-../apps/openssl req -verify -in testreq.pem -noout
+../apps/openssl req -config test.cnf -verify -in testreq.pem -noout
if [ $? != 0 ]; then
echo signature on req is wrong
exit 1
diff --git a/test/testss b/test/testss
index 36c792251e..da62997a5f 100644
--- a/test/testss
+++ b/test/testss
@@ -4,6 +4,7 @@ digest='-mdc2'
reqcmd="../apps/openssl req"
x509cmd="../apps/openssl x509 $digest"
verifycmd="../apps/openssl verify"
+dummycnf="../apps/openssl.cnf"
CAkey="keyCA.ss"
CAcert="certCA.ss"
@@ -39,13 +40,13 @@ if [ $? != 0 ]; then
exit 1
fi
-$reqcmd -verify -in $CAreq -noout
+$reqcmd -config $dummycnf -verify -in $CAreq -noout
if [ $? != 0 ]; then
echo first generated request is invalid
exit 1
fi
-$reqcmd -verify -in $CAreq2 -noout
+$reqcmd -config $dummycnf -verify -in $CAreq2 -noout
if [ $? != 0 ]; then
echo second generated request is invalid
exit 1
diff --git a/test/treq b/test/treq
index ef3c13274a..0464c9d902 100644
--- a/test/treq
+++ b/test/treq
@@ -3,7 +3,7 @@
PATH=../apps:$PATH
export PATH
-cmd='../apps/openssl req'
+cmd='../apps/openssl req -config ../apps/openssl.cnf'
if [ "$1"x != "x" ]; then
t=$1