X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=test_keyexpimp.c;h=0e61b6f43c3d0453331416278ecdfbc9cdbdf61a;hb=HEAD;hp=31a42f7260c041faabe7bee50f7ea6904fc76686;hpb=5ac243da2a2bb76afecacc47c84e0ba0e60bed14;p=openssl-gost%2Fengine.git diff --git a/test_keyexpimp.c b/test_keyexpimp.c index 31a42f7..0e61b6f 100644 --- a/test_keyexpimp.c +++ b/test_keyexpimp.c @@ -5,7 +5,11 @@ * See https://www.openssl.org/source/license.html for details */ #ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) # include +# include #else # include #endif @@ -108,7 +112,11 @@ int main(void) unsigned char tlsseq[8]; unsigned char out[32]; +#ifdef _MSC_VER + _putenv_s("OPENSSL_ENGINES", ENGINE_DIR); +#else setenv("OPENSSL_ENGINES", ENGINE_DIR, 0); +#endif OPENSSL_add_all_algorithms_conf(); ERR_load_crypto_strings(); ENGINE *eng;