summaryrefslogtreecommitdiffstats
path: root/test/evp_libctx_test.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-09-26 15:21:48 +0200
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-12-10 11:01:26 +0100
commitbca7ad6efd0e1e828033cae2440d83322bf3dc01 (patch)
tree57d6dc04ab9481e63ca61e2b5174ce1cc641018f /test/evp_libctx_test.c
parent5ea64b456b1a27ae046f23d632a968a7583bb9eb (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_libctx_test.c')
-rw-r--r--test/evp_libctx_test.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/test/evp_libctx_test.c b/test/evp_libctx_test.c
index cf39bf0871..c306bd9a16 100644
--- a/test/evp_libctx_test.c
+++ b/test/evp_libctx_test.c
@@ -648,19 +648,7 @@ int setup_tests(void)
}
}
- nullprov = OSSL_PROVIDER_load(NULL, "null");
- if (!TEST_ptr(nullprov))
- return 0;
-
- libctx = OSSL_LIB_CTX_new();
- if (!TEST_ptr(libctx))
- return 0;
- if (config_file != NULL
- && !TEST_true(OSSL_LIB_CTX_load_config(libctx, config_file)))
- return 0;
-
- libprov = OSSL_PROVIDER_load(libctx, prov_name);
- if (!TEST_ptr(libprov))
+ if (!test_get_libctx(&libctx, &nullprov, config_file, &libprov, prov_name))
return 0;
#if !defined(OPENSSL_NO_DSA) && !defined(OPENSSL_NO_DH)