X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=test_params.c;h=f7d4b90f8fbb3989ea9b94ce4713f9e38bfb0207;hb=c4e68c4e124ec29bd3c9c88fd8fdca77e6292f38;hp=3e12d5a9669bbd23e2a8da997270128f6e38e4e7;hpb=c8e12852242eca38b511f43f219b9dd69a38760e;p=openssl-gost%2Fengine.git diff --git a/test_params.c b/test_params.c index 3e12d5a..f7d4b90 100644 --- a/test_params.c +++ b/test_params.c @@ -1093,9 +1093,13 @@ int main(int argc, char **argv) { int ret = 0; - setenv("OPENSSL_CONF", "../example.conf", 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++) @@ -1105,5 +1109,8 @@ int main(int argc, char **argv) for (tc = test_certs; tc->cert; tc++) ret |= test_cert(tc); + ENGINE_finish(eng); + ENGINE_free(eng); + return ret; }