Don't access configuration files outside the source tree.
authorBodo Möller <bodo@openssl.org>
Thu, 17 Jun 1999 21:10:35 +0000 (21:10 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 17 Jun 1999 21:10:35 +0000 (21:10 +0000)
test/testgen
test/testss
test/treq

index f31586e2a46c6db1ee92d3a2051da08f2a6b9751..3534f5821f0cfcb1c5e51fb854c291c9c93d9686 100644 (file)
@@ -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
index 36c792251e259f4d747f499aa356c44240c1260d..da62997a5ffaddad07b5a6828a4600332c7153c6 100644 (file)
@@ -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
index ef3c13274a743a3fc228bcf15bb4255a4b95a164..0464c9d902fb516bdfdeaae905f00f7e75ef7766 100644 (file)
--- 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