diff options
author | tb <> | 2021-08-30 17:34:02 +0000 |
---|---|---|
committer | tb <> | 2021-08-30 17:34:02 +0000 |
commit | 769a0eb675541b26164c2614afd360bc503be92a (patch) | |
tree | 8596430725e7f227767868236eeee57380521082 | |
parent | b05142e1ba115406b0f261b5374facddce7e25b8 (diff) | |
download | openbsd-769a0eb675541b26164c2614afd360bc503be92a.tar.gz openbsd-769a0eb675541b26164c2614afd360bc503be92a.tar.bz2 openbsd-769a0eb675541b26164c2614afd360bc503be92a.zip |
Revert accidental commit
-rw-r--r-- | src/regress/lib/libssl/Makefile | 3 | ||||
-rw-r--r-- | src/regress/lib/libssl/client/Makefile | 4 | ||||
-rw-r--r-- | src/regress/lib/libssl/client/clienttest.c | 4 | ||||
-rw-r--r-- | src/regress/lib/libssl/interop/Makefile | 4 | ||||
-rw-r--r-- | src/regress/lib/libssl/openssl-ruby/Makefile | 24 | ||||
-rw-r--r-- | src/regress/lib/libssl/tlsfuzzer/Makefile | 4 | ||||
-rw-r--r-- | src/regress/lib/libssl/tlslegacy/tlslegacytest.c | 10 |
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 | ||
3 | SUBDIR += asn1 | 3 | SUBDIR += asn1 |
4 | SUBDIR += buffer | 4 | SUBDIR += buffer |
@@ -16,7 +16,6 @@ SUBDIR += tlsext | |||
16 | SUBDIR += tlslegacy | 16 | SUBDIR += tlslegacy |
17 | SUBDIR += key_schedule | 17 | SUBDIR += key_schedule |
18 | SUBDIR += unit | 18 | SUBDIR += unit |
19 | SUBDIR += 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. |
22 | SUBDIR += openssl-ruby | 21 | SUBDIR += 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 | ||
3 | PROG= clienttest | 3 | PROG= clienttest |
4 | LDADD= -lssl -lcrypto | 4 | LDADD= -lssl -lcrypto |
5 | DPADD= ${LIBSSL} ${LIBCRYPTO} | 5 | DPADD= ${LIBSSL} ${LIBCRYPTO} |
6 | WARNINGS= Yes | 6 | WARNINGS= Yes |
7 | CFLAGS+= -g -DLIBRESSL_INTERNAL -Werror | 7 | CFLAGS+= -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 | ||
3 | SUBDIR = libressl openssl openssl11 | 3 | SUBDIR = libressl openssl openssl11 |
4 | 4 | ||
@@ -14,6 +14,6 @@ SUBDIR += botan | |||
14 | SUBDIR += version | 14 | SUBDIR += version |
15 | SUBDIR += cipher | 15 | SUBDIR += cipher |
16 | # This takes a really long time. | 16 | # This takes a really long time. |
17 | #SUBDIR += cert | 17 | SUBDIR += 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 | ||
3 | OPENSSL_RUBY_TESTS = /usr/local/share/openssl-ruby-tests | 3 | OPENSSL_RUBY_TESTS = /usr/local/share/openssl-ruby-tests |
4 | RUBY_BINREV = 30 | 4 | RUBY_BINREV = 27 |
5 | RUBY = ruby${RUBY_BINREV} | 5 | RUBY = 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 | ||
59 | client_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 | |||
67 | timestamp: ${_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 | |||
79 | CLEANFILES += ${_BUILD_COOKIE} ${_TEST_COOKIE} ${_BUILDDIR_COOKIE} | 59 | CLEANFILES += ${_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) |
4 | regress: | 4 | regress: |
@@ -18,7 +18,7 @@ CLEANFILES += localhost.key localhost.crt | |||
18 | 18 | ||
19 | PORT ?= 4433 | 19 | PORT ?= 4433 |
20 | SLOW = -s | 20 | SLOW = -s |
21 | TIMING = -t | 21 | TIMING = # -t |
22 | VERBOSE = # -v | 22 | VERBOSE = # -v |
23 | 23 | ||
24 | regress-tlsfuzzer: certs | 24 | regress-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 | ||