Error message:
test_keyexpimp.c(111,11): warning C4013: 'setenv' undefined; assuming extern returning int
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
*/
#ifdef _MSC_VER
# include <Winsock2.h>
+# include <stdlib.h>
#else
# include <arpa/inet.h>
#endif
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;