File tree Expand file tree Collapse file tree 4 files changed +4
-12
lines changed
esp32/components/avm_sys/include Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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-
4544struct PromiseResource
4645{
4746 em_promise_t promise ;
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments