X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=test_sign.c;fp=test_sign.c;h=d785b75b2dc49c5256a4e25584b7e3884bedea70;hb=f3e84b52d2c5bf6774070b758714b90845d722d2;hp=983b63ef83cd11e05e4f06d4b353f63148f30d23;hpb=336c30e54ca42f54641ee06c9dce26ecd454b6ea;p=openssl-gost%2Fengine.git diff --git a/test_sign.c b/test_sign.c index 983b63e..d785b75 100644 --- a/test_sign.c +++ b/test_sign.c @@ -7,7 +7,6 @@ * See https://www.openssl.org/source/license.html for details */ -#include "e_gost_err.h" #include "gost_lcl.h" #include #include @@ -17,6 +16,7 @@ #include #include #include +#include #include #include @@ -318,21 +318,12 @@ 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_sign *sp; for (sp = test_signs; sp->name; sp++) ret |= test_sign(sp); - ENGINE_finish(eng); - ENGINE_free(eng); - if (ret) printf(cDRED "= Some tests FAILED!" cNORM "\n"); else