* Contents licensed under the terms of the OpenSSL license
* See https://www.openssl.org/source/license.html for details
*/
-#include <arpa/inet.h>
+#ifdef _MSC_VER
+# pragma warning(push, 3)
+# include <openssl/applink.c>
+# pragma warning(pop)
+# include <Winsock2.h>
+# include <stdlib.h>
+#else
+# include <arpa/inet.h>
+#endif
#include <string.h>
#include <stdio.h>
#include <string.h>
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;