2017-05-27 15:44:57 +02:00
|
|
|
diff --git a/thirdparty/openssl/crypto/rand/rand_win.c b/thirdparty/openssl/crypto/rand/rand_win.c
|
2018-01-13 13:39:08 +01:00
|
|
|
index b4be3097e..bc2a7d201 100644
|
2017-05-27 15:44:57 +02:00
|
|
|
--- a/thirdparty/openssl/crypto/rand/rand_win.c
|
|
|
|
+++ b/thirdparty/openssl/crypto/rand/rand_win.c
|
2016-09-04 00:41:36 +02:00
|
|
|
@@ -118,8 +118,10 @@
|
|
|
|
# ifndef _WIN32_WINNT
|
|
|
|
# define _WIN32_WINNT 0x0400
|
|
|
|
# endif
|
2017-05-27 15:44:57 +02:00
|
|
|
+#ifndef UWP_ENABLED // -- GODOT --
|
2016-09-04 00:41:36 +02:00
|
|
|
# include <wincrypt.h>
|
|
|
|
# include <tlhelp32.h>
|
2017-05-27 15:44:57 +02:00
|
|
|
+#endif // -- GODOT --
|
2016-09-04 00:41:36 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Limit the time spent walking through the heap, processes, threads and
|
|
|
|
@@ -161,7 +163,7 @@ typedef struct tagCURSORINFO {
|
|
|
|
# define CURSOR_SHOWING 0x00000001
|
|
|
|
# endif /* CURSOR_SHOWING */
|
|
|
|
|
|
|
|
-# if !defined(OPENSSL_SYS_WINCE)
|
2017-05-27 15:44:57 +02:00
|
|
|
+# if !defined(OPENSSL_SYS_WINCE) && !defined(UWP_ENABLED) // -- GODOT --
|
2016-09-04 00:41:36 +02:00
|
|
|
typedef BOOL(WINAPI *CRYPTACQUIRECONTEXTW) (HCRYPTPROV *, LPCWSTR, LPCWSTR,
|
|
|
|
DWORD, DWORD);
|
|
|
|
typedef BOOL(WINAPI *CRYPTGENRANDOM) (HCRYPTPROV, DWORD, BYTE *);
|
2018-01-13 13:39:08 +01:00
|
|
|
@@ -198,6 +200,7 @@ typedef NET_API_STATUS(NET_API_FUNCTION *NETFREE) (LPBYTE);
|
|
|
|
|
|
|
|
#define NOTTOOLONG(start) ((GetTickCount() - (start)) < MAXDELAY)
|
2016-09-04 00:41:36 +02:00
|
|
|
|
2017-05-27 15:44:57 +02:00
|
|
|
+#if !defined(UWP_ENABLED) // -- GODOT --
|
2016-09-04 00:41:36 +02:00
|
|
|
int RAND_poll(void)
|
|
|
|
{
|
|
|
|
MEMORYSTATUS m;
|
2018-01-13 13:39:08 +01:00
|
|
|
@@ -576,6 +579,8 @@ int RAND_poll(void)
|
2016-09-04 00:41:36 +02:00
|
|
|
return (1);
|
|
|
|
}
|
|
|
|
|
2017-05-27 15:44:57 +02:00
|
|
|
+#endif // UWP_ENABLED // -- GODOT --
|
2016-09-04 00:41:36 +02:00
|
|
|
+
|
|
|
|
int RAND_event(UINT iMsg, WPARAM wParam, LPARAM lParam)
|
|
|
|
{
|
|
|
|
double add_entropy = 0;
|
2018-01-13 13:39:08 +01:00
|
|
|
@@ -678,7 +683,7 @@ static void readtimer(void)
|
2016-09-04 00:41:36 +02:00
|
|
|
|
|
|
|
static void readscreen(void)
|
|
|
|
{
|
|
|
|
-# if !defined(OPENSSL_SYS_WINCE) && !defined(OPENSSL_SYS_WIN32_CYGWIN)
|
2017-05-27 15:44:57 +02:00
|
|
|
+# if !defined(OPENSSL_SYS_WINCE) && !defined(OPENSSL_SYS_WIN32_CYGWIN) && !defined(UWP_ENABLED) // -- GODOT --
|
2016-09-04 00:41:36 +02:00
|
|
|
HDC hScrDC; /* screen DC */
|
|
|
|
HBITMAP hBitmap; /* handle for our bitmap */
|
|
|
|
BITMAP bm; /* bitmap properties */
|
2017-05-27 15:44:57 +02:00
|
|
|
diff --git a/thirdparty/openssl/openssl/dtls1.h b/thirdparty/openssl/openssl/dtls1.h
|
|
|
|
index 30bbcf278..81d28c29c 100644
|
|
|
|
--- a/thirdparty/openssl/openssl/dtls1.h
|
|
|
|
+++ b/thirdparty/openssl/openssl/dtls1.h
|
|
|
|
@@ -78,6 +78,9 @@
|
2016-09-04 00:41:36 +02:00
|
|
|
# include <sys/time.h>
|
|
|
|
# endif
|
|
|
|
# endif
|
2017-05-27 15:44:57 +02:00
|
|
|
+#ifdef UWP_ENABLED // -- GODOT start --
|
2016-09-04 00:41:36 +02:00
|
|
|
+#include <winsock2.h>
|
2017-05-27 15:44:57 +02:00
|
|
|
+#endif // -- GODOT end --
|
2016-09-04 00:41:36 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|