From f3e84b52d2c5bf6774070b758714b90845d722d2 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sat, 1 May 2021 08:36:55 +0200 Subject: Make test programs less hard-coded The following programs had a hard coded load of the gost engine. This changes them to rely more on the testing environment, and to load engines through configuration files. This affects: test_ciphers.c, test_context.c, test_derive.c, test_digest.c, test_params.c, test_sign.c, test_tls.c --- test_params.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'test_params.c') diff --git a/test_params.c b/test_params.c index 4e6317e..89bae3d 100644 --- a/test_params.c +++ b/test_params.c @@ -1160,13 +1160,7 @@ int main(int argc, char **argv) { int ret = 0; - setenv("OPENSSL_ENGINES", ENGINE_DIR, 0); OPENSSL_add_all_algorithms_conf(); - ERR_load_crypto_strings(); - ENGINE *eng; - T(eng = ENGINE_by_id("gost")); - T(ENGINE_init(eng)); - T(ENGINE_set_default(eng, ENGINE_METHOD_ALL)); struct test_param **tpp; for (tpp = test_params; *tpp; tpp++) @@ -1176,9 +1170,6 @@ int main(int argc, char **argv) for (tc = test_certs; tc->cert; tc++) ret |= test_cert(tc); - ENGINE_finish(eng); - ENGINE_free(eng); - if (ret) printf(cDRED "= Some tests FAILED!" cNORM "\n"); else -- cgit v1.1