diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-09-26 15:21:48 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-12-10 11:01:26 +0100 |
commit | bca7ad6efd0e1e828033cae2440d83322bf3dc01 (patch) | |
tree | 57d6dc04ab9481e63ca61e2b5174ce1cc641018f /test/evp_extra_test2.c | |
parent | 5ea64b456b1a27ae046f23d632a968a7583bb9eb (diff) |
Use adapted test_get_libctx() for simpler test setup and better error reporting
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13001)
Diffstat (limited to 'test/evp_extra_test2.c')
-rw-r--r-- | test/evp_extra_test2.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/evp_extra_test2.c b/test/evp_extra_test2.c index f91e66a08b..9181061247 100644 --- a/test/evp_extra_test2.c +++ b/test/evp_extra_test2.c @@ -272,13 +272,7 @@ static int test_d2i_PrivateKey_ex(void) { int setup_tests(void) { - mainctx = OSSL_LIB_CTX_new(); - - if (!TEST_ptr(mainctx)) - return 0; - - nullprov = OSSL_PROVIDER_load(NULL, "null"); - if (!TEST_ptr(nullprov)) { + if (!test_get_libctx(&mainctx, &nullprov, NULL, NULL, NULL)) { OSSL_LIB_CTX_free(mainctx); mainctx = NULL; return 0; |