Skip to content

Commit

Permalink
adding provider_unload functions for cmp_ tests
Browse files Browse the repository at this point in the history
CLA: trivial

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #20731)

(cherry picked from commit 8835940)
  • Loading branch information
dcarpente authored and paulidale committed Apr 16, 2023
1 parent 3d3f9e0 commit c299be2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/cmp_client_test.c
Expand Up @@ -417,6 +417,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;
}
Expand Down
2 changes: 2 additions & 0 deletions test/cmp_msg_test.c
Expand Up @@ -541,6 +541,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);
}

Expand Down
2 changes: 2 additions & 0 deletions test/cmp_protect_test.c
Expand Up @@ -528,6 +528,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);
}

Expand Down
2 changes: 2 additions & 0 deletions test/cmp_vfy_test.c
Expand Up @@ -568,6 +568,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;
}
Expand Down

0 comments on commit c299be2

Please sign in to comment.