From d34e3757ca4fb0d1572bda7be497cfd73476e4ce Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Wed, 7 Aug 2024 23:06:05 +0200 Subject: [PATCH 1/7] Bump HL version to 1.14. --- project/BuildHashlink.xml | 43 +++++++++++++++++++++++++++------------ project/lib/hashlink | 2 +- 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/project/BuildHashlink.xml b/project/BuildHashlink.xml index c9e83b019..42b09448f 100644 --- a/project/BuildHashlink.xml +++ b/project/BuildHashlink.xml @@ -24,6 +24,8 @@ + + @@ -56,19 +58,34 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/project/lib/hashlink b/project/lib/hashlink index 68daa125a..03110f7e1 160000 --- a/project/lib/hashlink +++ b/project/lib/hashlink @@ -1 +1 @@ -Subproject commit 68daa125ad115a1f1d1db65d38e6045858d55013 +Subproject commit 03110f7e11fb76acf13312864b1d0bb700a6eda4 From 90403f0314182a7f242fcb49585399033ed6932f Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Thu, 8 Aug 2024 08:54:54 +0200 Subject: [PATCH 2/7] Uses Lime's vendored mbedtls for Hashlink. --- project/BuildHashlink.xml | 88 +++------------------------------------ 1 file changed, 5 insertions(+), 83 deletions(-) diff --git a/project/BuildHashlink.xml b/project/BuildHashlink.xml index 42b09448f..a89f085eb 100644 --- a/project/BuildHashlink.xml +++ b/project/BuildHashlink.xml @@ -7,8 +7,11 @@ + + + @@ -95,84 +98,9 @@ - + - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -388,6 +316,7 @@ + @@ -400,13 +329,6 @@ - - - - - - - From b48b9d058c7ce10c4cfcc1e1b4a156706b388fb0 Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Thu, 8 Aug 2024 19:23:14 +0200 Subject: [PATCH 3/7] Try to fix HL Windows build. --- project/BuildHashlink.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/BuildHashlink.xml b/project/BuildHashlink.xml index a89f085eb..1181bdcb6 100644 --- a/project/BuildHashlink.xml +++ b/project/BuildHashlink.xml @@ -99,7 +99,9 @@ - + + + From 937f8aab86e919e4797cf00582e03b0eb96c3e39 Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Sat, 10 Aug 2024 13:55:07 +0200 Subject: [PATCH 4/7] Try to fix HL ssl.hdll Windows build. --- project/BuildHashlink.xml | 1 + project/lib/custom/hl-ssl/threading_alt.h | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 project/lib/custom/hl-ssl/threading_alt.h diff --git a/project/BuildHashlink.xml b/project/BuildHashlink.xml index 1181bdcb6..0e66ed093 100644 --- a/project/BuildHashlink.xml +++ b/project/BuildHashlink.xml @@ -98,6 +98,7 @@ + diff --git a/project/lib/custom/hl-ssl/threading_alt.h b/project/lib/custom/hl-ssl/threading_alt.h new file mode 100644 index 000000000..8a9f80db0 --- /dev/null +++ b/project/lib/custom/hl-ssl/threading_alt.h @@ -0,0 +1,6 @@ +#include + +typedef struct { + CRITICAL_SECTION cs; + char is_valid; +} mbedtls_threading_mutex_t; From 2b47b250ee01c565c0ed52e028be38101c879274 Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Sun, 11 Aug 2024 11:11:30 +0200 Subject: [PATCH 5/7] Try to fix HL ssl Windows build. --- project/BuildHashlink.xml | 7 +++++-- project/lib/mbedtls-files.xml | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/project/BuildHashlink.xml b/project/BuildHashlink.xml index 0e66ed093..0ebcaec92 100644 --- a/project/BuildHashlink.xml +++ b/project/BuildHashlink.xml @@ -100,8 +100,11 @@ - - + + + + + diff --git a/project/lib/mbedtls-files.xml b/project/lib/mbedtls-files.xml index 486b01653..83d8655a5 100644 --- a/project/lib/mbedtls-files.xml +++ b/project/lib/mbedtls-files.xml @@ -5,6 +5,9 @@ + + + From ab8ab42df5cf2077911aabde21ed0646c43d4016 Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Sun, 11 Aug 2024 11:23:34 +0200 Subject: [PATCH 6/7] Add missing compilerflag in mbedtls-files.xml. --- project/lib/mbedtls-files.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/lib/mbedtls-files.xml b/project/lib/mbedtls-files.xml index 83d8655a5..59f4408ad 100644 --- a/project/lib/mbedtls-files.xml +++ b/project/lib/mbedtls-files.xml @@ -2,7 +2,8 @@ - + + From c2e57ea2d394fd0a35d19f0fea1e30217f0c5bae Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Sun, 11 Aug 2024 11:52:18 +0200 Subject: [PATCH 7/7] Exclude net_sockets.c from HL mbedtls build. --- project/lib/mbedtls-files.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/lib/mbedtls-files.xml b/project/lib/mbedtls-files.xml index 59f4408ad..676c65b5e 100644 --- a/project/lib/mbedtls-files.xml +++ b/project/lib/mbedtls-files.xml @@ -48,7 +48,7 @@ - +