Skip to content

Commit 52b83ea

Browse files
committed
coderabbit
Signed-off-by: Peter M <petermm@gmail.com>
1 parent 21d6620 commit 52b83ea

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

.github/workflows/build-libraries.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: "Install specific MbedTLS version"
4949
if: matrix.mbedtls == 'mbedtls@4'
5050
run: |
51-
git clone --depth 1 --branch v4.0.0 https://github.com/Mbed-TLS/mbedtls
51+
git clone --depth 1 --branch mbedtls-4.0.0 --recurse-submodules https://github.com/Mbed-TLS/mbedtls
5252
cd mbedtls
5353
mkdir build
5454
cd build

src/platforms/emscripten/src/lib/emscripten_sys.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@
3333
#include <emscripten/fetch.h>
3434
#include <emscripten/promise.h>
3535

36+
#include <mbedtls/version.h>
37+
#include "sys_mbedtls.h"
38+
3639
#if MBEDTLS_VERSION_NUMBER < 0x04000000
3740
#include <mbedtls/ctr_drbg.h>
3841
#include <mbedtls/entropy.h>
3942
#endif
4043

41-
#include <mbedtls/version.h>
42-
43-
#include "sys_mbedtls.h"
44-
4544
struct PromiseResource
4645
{
4746
em_promise_t promise;

src/platforms/esp32/components/avm_sys/include/esp32_sys.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ struct ESP32PlatformData
8181
#endif
8282
#if MBEDTLS_VERSION_NUMBER < 0x04000000
8383
mbedtls_entropy_context entropy_ctx;
84-
#else
85-
char entropy_ctx;
8684
#endif
8785
bool entropy_is_initialized;
8886

@@ -91,8 +89,6 @@ struct ESP32PlatformData
9189
#endif
9290
#if MBEDTLS_VERSION_NUMBER < 0x04000000
9391
mbedtls_ctr_drbg_context random_ctx;
94-
#else
95-
char random_ctx;
9692
#endif
9793
bool random_is_initialized;
9894

src/platforms/rp2/src/lib/rp2_sys.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ struct RP2PlatformData
9797
#endif
9898
mbedtls_ctr_drbg_context random_ctx;
9999
bool random_is_initialized;
100-
#else
101-
char entropy_ctx;
102-
char random_ctx;
103100
#endif
104101
};
105102

0 commit comments

Comments
 (0)