summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authorbeck <>1999-01-05 17:53:09 +0000
committerbeck <>1999-01-05 17:53:09 +0000
commit13215bc3b7babd9ef92e2e94f0ed0104529722b2 (patch)
treea923c3d24cbf0041955f1773566af229d4d3a77b /src/regress/lib
parent2ab850a424d07c3f877cbfc628f24480be0e7bac (diff)
downloadopenbsd-13215bc3b7babd9ef92e2e94f0ed0104529722b2.tar.gz
openbsd-13215bc3b7babd9ef92e2e94f0ed0104529722b2.tar.bz2
openbsd-13215bc3b7babd9ef92e2e94f0ed0104529722b2.zip
Fix up for make regress. Should handle objdir now.
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libssl/Makefile6
-rw-r--r--src/regress/lib/libssl/testdsa.sh4
-rw-r--r--src/regress/lib/libssl/testenc.sh6
-rw-r--r--src/regress/lib/libssl/testrsa.sh3
4 files changed, 12 insertions, 7 deletions
diff --git a/src/regress/lib/libssl/Makefile b/src/regress/lib/libssl/Makefile
index 5eb5fc6455..3f7d48fd2e 100644
--- a/src/regress/lib/libssl/Makefile
+++ b/src/regress/lib/libssl/Makefile
@@ -4,8 +4,8 @@ CLEANFILES+= testdsa.key testdsa.pem rsakey.pem rsacert.pem dsa512.pem
4install: 4install:
5 5
6regress: 6regress:
7 sh ${.CURDIR}/testenc.sh 7 sh ${.CURDIR}/testenc.sh ${.OBJDIR} ${.CURDIR}
8 sh ${.CURDIR}/testdsa.sh 8 sh ${.CURDIR}/testdsa.sh ${.OBJDIR} ${.CURDIR}
9# sh ${.CURDIR}/testrsa.sh 9# sh ${.CURDIR}/testrsa.sh ${.OBJDIR} ${.CURDIR}
10 10
11.include <bsd.prog.mk> 11.include <bsd.prog.mk>
diff --git a/src/regress/lib/libssl/testdsa.sh b/src/regress/lib/libssl/testdsa.sh
index 4c9668c906..dc5d7b97b5 100644
--- a/src/regress/lib/libssl/testdsa.sh
+++ b/src/regress/lib/libssl/testdsa.sh
@@ -2,6 +2,8 @@
2 2
3#Test DSA certificate generation of ssleay 3#Test DSA certificate generation of ssleay
4 4
5cd $1
6
5# Generate DSA paramter set 7# Generate DSA paramter set
6ssleay dsaparam 512 -out dsa512.pem 8ssleay dsaparam 512 -out dsa512.pem
7if [ $? != 0 ]; then 9if [ $? != 0 ]; then
@@ -10,7 +12,7 @@ fi
10 12
11 13
12# Denerate a DSA certificate 14# Denerate a DSA certificate
13ssleay req -config ssleay.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key 15ssleay req -config $2/ssleay.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key
14if [ $? != 0 ]; then 16if [ $? != 0 ]; then
15 exit 1; 17 exit 1;
16fi 18fi
diff --git a/src/regress/lib/libssl/testenc.sh b/src/regress/lib/libssl/testenc.sh
index ab3278f27e..85997bfbe5 100644
--- a/src/regress/lib/libssl/testenc.sh
+++ b/src/regress/lib/libssl/testenc.sh
@@ -1,9 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2 2
3testsrc=./ssleay.cnf 3testsrc=$2/ssleay.cnf
4test=./p 4test=$1/p
5cmd=/usr/sbin/ssleay 5cmd=/usr/sbin/ssleay
6 6
7cd $1
8
7cat $testsrc >$test; 9cat $testsrc >$test;
8 10
9echo cat 11echo cat
diff --git a/src/regress/lib/libssl/testrsa.sh b/src/regress/lib/libssl/testrsa.sh
index 79c578834a..3f4c328acd 100644
--- a/src/regress/lib/libssl/testrsa.sh
+++ b/src/regress/lib/libssl/testrsa.sh
@@ -11,6 +11,7 @@ echo This will *not* work with what\'s in the tree, rsa is not in that.
11echo 11echo
12sleep 3 12sleep 3
13 13
14cd $1
14 15
15# Generate RSA private key 16# Generate RSA private key
16ssleay genrsa -out rsakey.pem 17ssleay genrsa -out rsakey.pem
@@ -20,7 +21,7 @@ fi
20 21
21 22
22# Denerate an RSA certificate 23# Denerate an RSA certificate
23ssleay req -config ssleay.cnf -key rsakey.pem -new -x509 -days 365 -out rsacert.pem 24ssleay req -config $2/ssleay.cnf -key rsakey.pem -new -x509 -days 365 -out rsacert.pem
24if [ $? != 0 ]; then 25if [ $? != 0 ]; then
25 exit 1; 26 exit 1;
26fi 27fi