X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_keyexpimp.c;h=e0961ff5f0bba2cc421f4716dc11af3f8b0b2486;hb=96ca13301197c0a60962e97898bfffbb8dbf4ba5;hp=e8ee1ebedce5e9a129f7d1874a78109a6fc73234;hpb=a418dfa28b4c3432a6da7d01adc1038789ce209c;p=openssl-gost%2Fengine.git diff --git a/gost_keyexpimp.c b/gost_keyexpimp.c index e8ee1eb..e0961ff 100644 --- a/gost_keyexpimp.c +++ b/gost_keyexpimp.c @@ -1,4 +1,8 @@ +#ifdef _WIN32 +#include +#else #include +#endif #include #include #include @@ -172,7 +176,7 @@ int gost_kdftree2012_256(unsigned char *keyout, size_t keyout_len, int iters, i = 0; unsigned char zero = 0; unsigned char *ptr = keyout; - HMAC_CTX *ctx = NULL; + HMAC_CTX *ctx; unsigned char *len_ptr = NULL; uint32_t len_repr = htonl(keyout_len * 8); size_t len_repr_len = 4;