-# $OpenBSD: Makefile,v 1.44 2021/08/30 17:28:46 tb Exp $
+# $OpenBSD: Makefile,v 1.45 2021/08/30 17:34:01 tb Exp $
SUBDIR += asn1
SUBDIR += buffer
SUBDIR += tlslegacy
SUBDIR += key_schedule
SUBDIR += unit
-SUBDIR += verify
# Things that take a long time should go below here.
SUBDIR += openssl-ruby
-# $OpenBSD: Makefile,v 1.2 2021/08/30 17:28:46 tb Exp $
+# $OpenBSD: Makefile,v 1.3 2021/08/30 17:34:01 tb Exp $
PROG= clienttest
LDADD= -lssl -lcrypto
DPADD= ${LIBSSL} ${LIBCRYPTO}
WARNINGS= Yes
-CFLAGS+= -g -DLIBRESSL_INTERNAL -Werror
+CFLAGS+= -DLIBRESSL_INTERNAL -Werror
.include <bsd.regress.mk>
-/* $OpenBSD: clienttest.c,v 1.34 2021/08/30 17:28:46 tb Exp $ */
+/* $OpenBSD: clienttest.c,v 1.35 2021/08/30 17:34:01 tb Exp $ */
/*
* Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
*
BIO_free(rbio);
BIO_free(wbio);
- // free(client_hello);
+ free(client_hello);
return (ret);
}
-# $OpenBSD: Makefile,v 1.14 2021/08/30 17:28:46 tb Exp $
+# $OpenBSD: Makefile,v 1.15 2021/08/30 17:34:02 tb Exp $
SUBDIR = libressl openssl openssl11
SUBDIR += version
SUBDIR += cipher
# This takes a really long time.
-#SUBDIR += cert
+SUBDIR += cert
.include <bsd.subdir.mk>
-# $OpenBSD: Makefile,v 1.2 2021/08/30 17:28:46 tb Exp $
+# $OpenBSD: Makefile,v 1.3 2021/08/30 17:34:02 tb Exp $
OPENSSL_RUBY_TESTS = /usr/local/share/openssl-ruby-tests
-RUBY_BINREV = 30
+RUBY_BINREV = 27
RUBY = ruby${RUBY_BINREV}
# We work in a subdirectory of obj/ since extconf.rb generates a Makefile whose
rm -f ${_TEST_COOKIE}
${_MAKE} test
-client_cert: ${_BUILD_COOKIE}
- -cd ${BUILDDIR} && { \
- ${RUBY} -I. -I${OPENSSL_RUBY_TESTS}/test/openssl \
- -I${OPENSSL_RUBY_TESTS}/lib \
- ${OPENSSL_RUBY_TESTS}/test/openssl/test_ssl.rb \
- -n test_client_ca; \
- }
-
-timestamp: ${_BUILD_COOKIE}
- -cd ${BUILDDIR} && { \
- ${RUBY} -I. -I${OPENSSL_RUBY_TESTS}/test/openssl \
- -I${OPENSSL_RUBY_TESTS}/lib \
- ${OPENSSL_RUBY_TESTS}/test/openssl/test_ts.rb \
- -n test_verify_ee_wrong_root_no_intermediate; \
- ${RUBY} -I. -I${OPENSSL_RUBY_TESTS}/test/openssl \
- -I${OPENSSL_RUBY_TESTS}/lib \
- ${OPENSSL_RUBY_TESTS}/test/openssl/test_ts.rb \
- -n test_verify_ee_wrong_root_wrong_intermediate; \
- }
-
CLEANFILES += ${_BUILD_COOKIE} ${_TEST_COOKIE} ${_BUILDDIR_COOKIE}
. if make(clean) || make(cleandir)
-# $OpenBSD: Makefile,v 1.3 2021/08/30 17:28:46 tb Exp $
+# $OpenBSD: Makefile,v 1.4 2021/08/30 17:34:02 tb Exp $
.if !exists(/usr/local/share/tlsfuzzer)
regress:
PORT ?= 4433
SLOW = -s
-TIMING = -t
+TIMING = # -t
VERBOSE = # -v
regress-tlsfuzzer: certs
-/* $OpenBSD: tlslegacytest.c,v 1.3 2021/08/30 17:28:47 tb Exp $ */
+/* $OpenBSD: tlslegacytest.c,v 1.4 2021/08/30 17:34:02 tb Exp $ */
/*
* Copyright (c) 2015, 2016, 2017, 2020 Joel Sing <jsing@openbsd.org>
*
goto failure;
}
+ rbio->references = 2;
+ wbio->references = 2;
+
SSL_set_bio(ssl, rbio, wbio);
- rbio = NULL;
- wbio = NULL;
if (SSL_connect(ssl) == 1) {
fprintf(stderr, "SSL_connect() succeeded\n");
SSL_CTX_free(ssl_ctx);
SSL_free(ssl);
+ rbio->references = 1;
+ wbio->references = 1;
+
BIO_free(rbio);
BIO_free(wbio);