summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2021-08-30 17:34:02 +0000
committertb <>2021-08-30 17:34:02 +0000
commit769a0eb675541b26164c2614afd360bc503be92a (patch)
tree8596430725e7f227767868236eeee57380521082
parentb05142e1ba115406b0f261b5374facddce7e25b8 (diff)
downloadopenbsd-769a0eb675541b26164c2614afd360bc503be92a.tar.gz
openbsd-769a0eb675541b26164c2614afd360bc503be92a.tar.bz2
openbsd-769a0eb675541b26164c2614afd360bc503be92a.zip
Revert accidental commit
-rw-r--r--src/regress/lib/libssl/Makefile3
-rw-r--r--src/regress/lib/libssl/client/Makefile4
-rw-r--r--src/regress/lib/libssl/client/clienttest.c4
-rw-r--r--src/regress/lib/libssl/interop/Makefile4
-rw-r--r--src/regress/lib/libssl/openssl-ruby/Makefile24
-rw-r--r--src/regress/lib/libssl/tlsfuzzer/Makefile4
-rw-r--r--src/regress/lib/libssl/tlslegacy/tlslegacytest.c10
7 files changed, 18 insertions, 35 deletions
diff --git a/src/regress/lib/libssl/Makefile b/src/regress/lib/libssl/Makefile
index 19fee55210..934f8ba4e6 100644
--- a/src/regress/lib/libssl/Makefile
+++ b/src/regress/lib/libssl/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.44 2021/08/30 17:28:46 tb Exp $ 1# $OpenBSD: Makefile,v 1.45 2021/08/30 17:34:01 tb Exp $
2 2
3SUBDIR += asn1 3SUBDIR += asn1
4SUBDIR += buffer 4SUBDIR += buffer
@@ -16,7 +16,6 @@ SUBDIR += tlsext
16SUBDIR += tlslegacy 16SUBDIR += tlslegacy
17SUBDIR += key_schedule 17SUBDIR += key_schedule
18SUBDIR += unit 18SUBDIR += unit
19SUBDIR += verify
20 19
21# Things that take a long time should go below here. 20# Things that take a long time should go below here.
22SUBDIR += openssl-ruby 21SUBDIR += openssl-ruby
diff --git a/src/regress/lib/libssl/client/Makefile b/src/regress/lib/libssl/client/Makefile
index 6d2b2a068d..5a54f80914 100644
--- a/src/regress/lib/libssl/client/Makefile
+++ b/src/regress/lib/libssl/client/Makefile
@@ -1,9 +1,9 @@
1# $OpenBSD: Makefile,v 1.2 2021/08/30 17:28:46 tb Exp $ 1# $OpenBSD: Makefile,v 1.3 2021/08/30 17:34:01 tb Exp $
2 2
3PROG= clienttest 3PROG= clienttest
4LDADD= -lssl -lcrypto 4LDADD= -lssl -lcrypto
5DPADD= ${LIBSSL} ${LIBCRYPTO} 5DPADD= ${LIBSSL} ${LIBCRYPTO}
6WARNINGS= Yes 6WARNINGS= Yes
7CFLAGS+= -g -DLIBRESSL_INTERNAL -Werror 7CFLAGS+= -DLIBRESSL_INTERNAL -Werror
8 8
9.include <bsd.regress.mk> 9.include <bsd.regress.mk>
diff --git a/src/regress/lib/libssl/client/clienttest.c b/src/regress/lib/libssl/client/clienttest.c
index 5b0aa533bd..22654e7ed1 100644
--- a/src/regress/lib/libssl/client/clienttest.c
+++ b/src/regress/lib/libssl/client/clienttest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clienttest.c,v 1.34 2021/08/30 17:28:46 tb Exp $ */ 1/* $OpenBSD: clienttest.c,v 1.35 2021/08/30 17:34:01 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -720,7 +720,7 @@ client_hello_test(int testno, const struct client_hello_test *cht)
720 BIO_free(rbio); 720 BIO_free(rbio);
721 BIO_free(wbio); 721 BIO_free(wbio);
722 722
723 // free(client_hello); 723 free(client_hello);
724 724
725 return (ret); 725 return (ret);
726} 726}
diff --git a/src/regress/lib/libssl/interop/Makefile b/src/regress/lib/libssl/interop/Makefile
index 2e7114dab2..789ff00e7f 100644
--- a/src/regress/lib/libssl/interop/Makefile
+++ b/src/regress/lib/libssl/interop/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.14 2021/08/30 17:28:46 tb Exp $ 1# $OpenBSD: Makefile,v 1.15 2021/08/30 17:34:02 tb Exp $
2 2
3SUBDIR = libressl openssl openssl11 3SUBDIR = libressl openssl openssl11
4 4
@@ -14,6 +14,6 @@ SUBDIR += botan
14SUBDIR += version 14SUBDIR += version
15SUBDIR += cipher 15SUBDIR += cipher
16# This takes a really long time. 16# This takes a really long time.
17#SUBDIR += cert 17SUBDIR += cert
18 18
19.include <bsd.subdir.mk> 19.include <bsd.subdir.mk>
diff --git a/src/regress/lib/libssl/openssl-ruby/Makefile b/src/regress/lib/libssl/openssl-ruby/Makefile
index e9a904b57c..e67319b8ec 100644
--- a/src/regress/lib/libssl/openssl-ruby/Makefile
+++ b/src/regress/lib/libssl/openssl-ruby/Makefile
@@ -1,7 +1,7 @@
1# $OpenBSD: Makefile,v 1.2 2021/08/30 17:28:46 tb Exp $ 1# $OpenBSD: Makefile,v 1.3 2021/08/30 17:34:02 tb Exp $
2 2
3OPENSSL_RUBY_TESTS = /usr/local/share/openssl-ruby-tests 3OPENSSL_RUBY_TESTS = /usr/local/share/openssl-ruby-tests
4RUBY_BINREV = 30 4RUBY_BINREV = 27
5RUBY = ruby${RUBY_BINREV} 5RUBY = ruby${RUBY_BINREV}
6 6
7# We work in a subdirectory of obj/ since extconf.rb generates a Makefile whose 7# We work in a subdirectory of obj/ since extconf.rb generates a Makefile whose
@@ -56,26 +56,6 @@ retest:
56 rm -f ${_TEST_COOKIE} 56 rm -f ${_TEST_COOKIE}
57 ${_MAKE} test 57 ${_MAKE} test
58 58
59client_cert: ${_BUILD_COOKIE}
60 -cd ${BUILDDIR} && { \
61 ${RUBY} -I. -I${OPENSSL_RUBY_TESTS}/test/openssl \
62 -I${OPENSSL_RUBY_TESTS}/lib \
63 ${OPENSSL_RUBY_TESTS}/test/openssl/test_ssl.rb \
64 -n test_client_ca; \
65 }
66
67timestamp: ${_BUILD_COOKIE}
68 -cd ${BUILDDIR} && { \
69 ${RUBY} -I. -I${OPENSSL_RUBY_TESTS}/test/openssl \
70 -I${OPENSSL_RUBY_TESTS}/lib \
71 ${OPENSSL_RUBY_TESTS}/test/openssl/test_ts.rb \
72 -n test_verify_ee_wrong_root_no_intermediate; \
73 ${RUBY} -I. -I${OPENSSL_RUBY_TESTS}/test/openssl \
74 -I${OPENSSL_RUBY_TESTS}/lib \
75 ${OPENSSL_RUBY_TESTS}/test/openssl/test_ts.rb \
76 -n test_verify_ee_wrong_root_wrong_intermediate; \
77 }
78
79CLEANFILES += ${_BUILD_COOKIE} ${_TEST_COOKIE} ${_BUILDDIR_COOKIE} 59CLEANFILES += ${_BUILD_COOKIE} ${_TEST_COOKIE} ${_BUILDDIR_COOKIE}
80 60
81. if make(clean) || make(cleandir) 61. if make(clean) || make(cleandir)
diff --git a/src/regress/lib/libssl/tlsfuzzer/Makefile b/src/regress/lib/libssl/tlsfuzzer/Makefile
index 23a326744b..2097b84caa 100644
--- a/src/regress/lib/libssl/tlsfuzzer/Makefile
+++ b/src/regress/lib/libssl/tlsfuzzer/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.3 2021/08/30 17:28:46 tb Exp $ 1# $OpenBSD: Makefile,v 1.4 2021/08/30 17:34:02 tb Exp $
2 2
3.if !exists(/usr/local/share/tlsfuzzer) 3.if !exists(/usr/local/share/tlsfuzzer)
4regress: 4regress:
@@ -18,7 +18,7 @@ CLEANFILES += localhost.key localhost.crt
18 18
19PORT ?= 4433 19PORT ?= 4433
20SLOW = -s 20SLOW = -s
21TIMING = -t 21TIMING = # -t
22VERBOSE = # -v 22VERBOSE = # -v
23 23
24regress-tlsfuzzer: certs 24regress-tlsfuzzer: certs
diff --git a/src/regress/lib/libssl/tlslegacy/tlslegacytest.c b/src/regress/lib/libssl/tlslegacy/tlslegacytest.c
index 4591f6267c..58e452e911 100644
--- a/src/regress/lib/libssl/tlslegacy/tlslegacytest.c
+++ b/src/regress/lib/libssl/tlslegacy/tlslegacytest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tlslegacytest.c,v 1.3 2021/08/30 17:28:47 tb Exp $ */ 1/* $OpenBSD: tlslegacytest.c,v 1.4 2021/08/30 17:34:02 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2015, 2016, 2017, 2020 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2015, 2016, 2017, 2020 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -589,9 +589,10 @@ tlslegacy_client_test(int testno, struct tlslegacy_client_test *tct)
589 goto failure; 589 goto failure;
590 } 590 }
591 591
592 rbio->references = 2;
593 wbio->references = 2;
594
592 SSL_set_bio(ssl, rbio, wbio); 595 SSL_set_bio(ssl, rbio, wbio);
593 rbio = NULL;
594 wbio = NULL;
595 596
596 if (SSL_connect(ssl) == 1) { 597 if (SSL_connect(ssl) == 1) {
597 fprintf(stderr, "SSL_connect() succeeded\n"); 598 fprintf(stderr, "SSL_connect() succeeded\n");
@@ -610,6 +611,9 @@ tlslegacy_client_test(int testno, struct tlslegacy_client_test *tct)
610 SSL_CTX_free(ssl_ctx); 611 SSL_CTX_free(ssl_ctx);
611 SSL_free(ssl); 612 SSL_free(ssl);
612 613
614 rbio->references = 1;
615 wbio->references = 1;
616
613 BIO_free(rbio); 617 BIO_free(rbio);
614 BIO_free(wbio); 618 BIO_free(wbio);
615 619