summaryrefslogtreecommitdiff
path: root/src/lib/libssl/test
diff options
context:
space:
mode:
authormarkus <>2003-05-11 21:36:58 +0000
committermarkus <>2003-05-11 21:36:58 +0000
commit1c98a87f0daac81245653c227eb2f2508a22a965 (patch)
tree3de6d603296ec563b936da4e6a8a1e33d48f8884 /src/lib/libssl/test
parent31392c89d1135cf2a416f97295f6d21681b3fbc4 (diff)
downloadopenbsd-1c98a87f0daac81245653c227eb2f2508a22a965.tar.gz
openbsd-1c98a87f0daac81245653c227eb2f2508a22a965.tar.bz2
openbsd-1c98a87f0daac81245653c227eb2f2508a22a965.zip
import 0.9.7b (without idea and rc5)
Diffstat (limited to 'src/lib/libssl/test')
-rw-r--r--src/lib/libssl/test/methtest.c4
-rw-r--r--src/lib/libssl/test/testgen2
-rw-r--r--src/lib/libssl/test/testssl16
3 files changed, 16 insertions, 6 deletions
diff --git a/src/lib/libssl/test/methtest.c b/src/lib/libssl/test/methtest.c
index 06ccb3b310..005c2f4822 100644
--- a/src/lib/libssl/test/methtest.c
+++ b/src/lib/libssl/test/methtest.c
@@ -96,10 +96,10 @@ char *argv[];
96 METH_init(top); 96 METH_init(top);
97 METH_control(tmp1,METH_CONTROL_DUMP,stdout); 97 METH_control(tmp1,METH_CONTROL_DUMP,stdout);
98 METH_control(tmp2,METH_CONTROL_DUMP,stdout); 98 METH_control(tmp2,METH_CONTROL_DUMP,stdout);
99 exit(0); 99 EXIT(0);
100err: 100err:
101 ERR_load_crypto_strings(); 101 ERR_load_crypto_strings();
102 ERR_print_errors_fp(stderr); 102 ERR_print_errors_fp(stderr);
103 exit(1); 103 EXIT(1);
104 return(0); 104 return(0);
105 } 105 }
diff --git a/src/lib/libssl/test/testgen b/src/lib/libssl/test/testgen
index 55c496f4bc..3798543e04 100644
--- a/src/lib/libssl/test/testgen
+++ b/src/lib/libssl/test/testgen
@@ -27,6 +27,8 @@ fi
27 27
28echo "This could take some time." 28echo "This could take some time."
29 29
30rm -f testkey.pem testreq.pem
31
30../apps/openssl req -config test.cnf $req_new -out testreq.pem 32../apps/openssl req -config test.cnf $req_new -out testreq.pem
31if [ $? != 0 ]; then 33if [ $? != 0 ]; then
32echo problems creating request 34echo problems creating request
diff --git a/src/lib/libssl/test/testssl b/src/lib/libssl/test/testssl
index ba5e41c861..ca8e718022 100644
--- a/src/lib/libssl/test/testssl
+++ b/src/lib/libssl/test/testssl
@@ -121,8 +121,12 @@ $ssltest -bio_pair -server_auth -client_auth -app_verify $CA $extra || exit 1
121 121
122############################################################################# 122#############################################################################
123 123
124echo test tls1 with 1024bit anonymous DH, multiple handshakes 124if ../apps/openssl no-dh; then
125$ssltest -v -bio_pair -tls1 -cipher ADH -dhe1024dsa -num 10 -f -time $extra || exit 1 125 echo skipping anonymous DH tests
126else
127 echo test tls1 with 1024bit anonymous DH, multiple handshakes
128 $ssltest -v -bio_pair -tls1 -cipher ADH -dhe1024dsa -num 10 -f -time $extra || exit 1
129fi
126 130
127if ../apps/openssl no-rsa; then 131if ../apps/openssl no-rsa; then
128 echo skipping RSA tests 132 echo skipping RSA tests
@@ -130,8 +134,12 @@ else
130 echo test tls1 with 1024bit RSA, no DHE, multiple handshakes 134 echo test tls1 with 1024bit RSA, no DHE, multiple handshakes
131 ./ssltest -v -bio_pair -tls1 -cert ../apps/server2.pem -no_dhe -num 10 -f -time $extra || exit 1 135 ./ssltest -v -bio_pair -tls1 -cert ../apps/server2.pem -no_dhe -num 10 -f -time $extra || exit 1
132 136
133 echo test tls1 with 1024bit RSA, 1024bit DHE, multiple handshakes 137 if ../apps/openssl no-dh; then
134 ./ssltest -v -bio_pair -tls1 -cert ../apps/server2.pem -dhe1024dsa -num 10 -f -time $extra || exit 1 138 echo skipping RSA+DHE tests
139 else
140 echo test tls1 with 1024bit RSA, 1024bit DHE, multiple handshakes
141 ./ssltest -v -bio_pair -tls1 -cert ../apps/server2.pem -dhe1024dsa -num 10 -f -time $extra || exit 1
142 fi
135fi 143fi
136 144
137exit 0 145exit 0