File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 7
7
iotjs %{iotjs-dirname}/src
8
8
jerry deps/jerry
9
9
libtuv deps/libtuv
10
+ mbedtls deps/mbedtls
10
11
11
12
[Total] 1
12
13
(jerry)
13
14
(iotjs)
14
15
(libtuv)
16
+ (mbedtls)
15
17
[other] 1 +
Original file line number Diff line number Diff line change @@ -122,4 +122,9 @@ void print_mem_stat() {
122
122
printf (" Malloc peak allocated: %u bytes\n" , peak_allocated_bytes );
123
123
}
124
124
125
+
126
+ // Define custom allocator functions for mbedtls of TizenRT.
127
+ void * (* mbedtls_calloc )(size_t n , size_t size ) = jstest_calloc ;
128
+ void (* mbedtls_free )(void * ptr ) = jstest_free ;
129
+
125
130
#endif /* JSTEST_MEMSTAT_ENABLED */
Original file line number Diff line number Diff line change 1
1
diff --git a/external/include/mbedtls/config.h b/external/include/mbedtls/config.h
2
- index 7d5cda4..0f1401f 100644
2
+ index 7d5cda4..57e1501 100644
3
3
--- a/external/include/mbedtls/config.h
4
4
+++ b/external/include/mbedtls/config.h
5
+ @@ -132,7 +132,7 @@
6
+ *
7
+ * Enable this layer to allow use of alternative memory allocators.
8
+ */
9
+ - //#define MBEDTLS_PLATFORM_MEMORY
10
+ + #define MBEDTLS_PLATFORM_MEMORY
11
+
12
+ /**
13
+ * \def MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
5
14
@@ -678,7 +678,7 @@
6
15
* enabled as well):
7
16
* MBEDTLS_TLS_ECDH_ANON_WITH_AES_128_CBC_SHA256
@@ -11,6 +20,15 @@ index 7d5cda4..0f1401f 100644
11
20
12
21
/**
13
22
* \def MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
23
+ @@ -2178,7 +2178,7 @@
24
+ *
25
+ * This module enables abstraction of common (libc) functions.
26
+ */
27
+ - //#define MBEDTLS_PLATFORM_C
28
+ + #define MBEDTLS_PLATFORM_C
29
+
30
+ /**
31
+ * \def MBEDTLS_RIPEMD160_C
14
32
diff --git a/external/mbedtls/Makefile b/external/mbedtls/Makefile
15
33
index 5e321e3..fb174a7 100644
16
34
--- a/external/mbedtls/Makefile
You can’t perform that action at this time.
0 commit comments