From: jsing Date: Sat, 11 Mar 2023 14:27:37 +0000 (+0000) Subject: Add OPENSSL_cleanup() calls to some regress. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6ab8c0ead415b6c109302b80d574e87bf40701ec;p=openbsd Add OPENSSL_cleanup() calls to some regress. This gets us some minimal test coverage. --- diff --git a/regress/lib/libcrypto/evp/evp_test.c b/regress/lib/libcrypto/evp/evp_test.c index dbfe442377d..4a671d978dc 100644 --- a/regress/lib/libcrypto/evp/evp_test.c +++ b/regress/lib/libcrypto/evp/evp_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evp_test.c,v 1.3 2022/11/26 16:08:56 tb Exp $ */ +/* $OpenBSD: evp_test.c,v 1.4 2023/03/11 14:27:38 jsing Exp $ */ /* * Copyright (c) 2022 Joel Sing * @@ -145,5 +145,7 @@ main(int argc, char **argv) failed |= evp_asn1_method_test(); failed |= evp_pkey_method_test(); + OPENSSL_cleanup(); + return failed; } diff --git a/regress/lib/libcrypto/wycheproof/wycheproof.go b/regress/lib/libcrypto/wycheproof/wycheproof.go index f98d4b13e80..7183e1bbe90 100644 --- a/regress/lib/libcrypto/wycheproof/wycheproof.go +++ b/regress/lib/libcrypto/wycheproof/wycheproof.go @@ -1,4 +1,4 @@ -/* $OpenBSD: wycheproof.go,v 1.138 2023/03/08 06:12:52 jsing Exp $ */ +/* $OpenBSD: wycheproof.go,v 1.139 2023/03/11 14:27:37 jsing Exp $ */ /* * Copyright (c) 2018 Joel Sing * Copyright (c) 2018,2019,2022 Theo Buehler @@ -3024,6 +3024,8 @@ func main() { testc.shutdown() + C.OPENSSL_cleanup() + if !success { os.Exit(1) }