From: Danny Carpenter Date: Thu, 13 Apr 2023 19:16:44 +0000 (+0000) Subject: adding provider_unload functions for cmp_ tests X-Git-Tag: openssl-3.2.0-alpha1~1006 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8835940db58229fc467cdea1eebf3f064352a086;p=thirdparty%2Fopenssl.git adding provider_unload functions for cmp_ tests CLA: trivial Reviewed-by: Todd Short Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/20731) --- diff --git a/test/cmp_client_test.c b/test/cmp_client_test.c index 160d1f1f567..47bfb4d451d 100644 --- a/test/cmp_client_test.c +++ b/test/cmp_client_test.c @@ -449,6 +449,8 @@ void cleanup_tests(void) EVP_PKEY_free(server_key); X509_free(client_cert); EVP_PKEY_free(client_key); + OSSL_PROVIDER_unload(default_null_provider); + OSSL_PROVIDER_unload(provider); OSSL_LIB_CTX_free(libctx); return; } diff --git a/test/cmp_msg_test.c b/test/cmp_msg_test.c index ba6aaad1c1c..5aaffa39e4e 100644 --- a/test/cmp_msg_test.c +++ b/test/cmp_msg_test.c @@ -539,6 +539,8 @@ void cleanup_tests(void) { EVP_PKEY_free(newkey); X509_free(cert); + OSSL_PROVIDER_unload(default_null_provider); + OSSL_PROVIDER_unload(provider); OSSL_LIB_CTX_free(libctx); } diff --git a/test/cmp_protect_test.c b/test/cmp_protect_test.c index 0612a1faee9..b8a50d3157b 100644 --- a/test/cmp_protect_test.c +++ b/test/cmp_protect_test.c @@ -527,6 +527,8 @@ void cleanup_tests(void) X509_free(intermediate); OSSL_CMP_MSG_free(ir_protected); OSSL_CMP_MSG_free(ir_unprotected); + OSSL_PROVIDER_unload(default_null_provider); + OSSL_PROVIDER_unload(provider); OSSL_LIB_CTX_free(libctx); } diff --git a/test/cmp_vfy_test.c b/test/cmp_vfy_test.c index 383ac2c852e..26f2015e8e8 100644 --- a/test/cmp_vfy_test.c +++ b/test/cmp_vfy_test.c @@ -585,6 +585,8 @@ void cleanup_tests(void) X509_free(instaca_cert); OSSL_CMP_MSG_free(ir_unprotected); OSSL_CMP_MSG_free(ir_rmprotection); + OSSL_PROVIDER_unload(default_null_provider); + OSSL_PROVIDER_unload(provider); OSSL_LIB_CTX_free(libctx); return; }