X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=test_curves.c;h=973307b0fdec87727838e7c7d7b05545d0a5a9d5;hb=32da2bf229ba8bebf2c6f6ac1fc016c49e867488;hp=28ccce41d2cd14367da74f3b350980cbd5000d71;hpb=b629c446ff7246e526999bfdd2657e774faf306f;p=openssl-gost%2Fengine.git diff --git a/test_curves.c b/test_curves.c index 28ccce4..973307b 100644 --- a/test_curves.c +++ b/test_curves.c @@ -222,11 +222,22 @@ 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_curve *tc; for (tc = test_curves; tc->nid; tc++) { ret |= parameter_test(tc); } + ENGINE_finish(eng); + ENGINE_free(eng); + if (ret) printf(cDRED "= Some tests FAILED!\n" cNORM); else