File tree Expand file tree Collapse file tree 4 files changed +6
-9
lines changed
features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF52/source Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -188,15 +188,14 @@ int main()
188
188
{
189
189
int ret = 0 ;
190
190
#if defined(MBEDTLS_PLATFORM_C)
191
- mbedtls_platform_context platform_ctx;
192
- if ((ret = mbedtls_platform_setup (&platform_ctx)) != 0 ) {
191
+ if ((ret = mbedtls_platform_setup (NULL )) != 0 ) {
193
192
mbedtls_printf (" Mbed TLS multitest failed! mbedtls_platform_setup returned %d\n " , ret);
194
193
return 1 ;
195
194
}
196
195
#endif
197
196
ret = (Harness::run (specification) ? 0 : 1 );
198
197
#if defined(MBEDTLS_PLATFORM_C)
199
- mbedtls_platform_teardown (&platform_ctx );
198
+ mbedtls_platform_teardown (NULL );
200
199
#endif
201
200
return ret;
202
201
}
Original file line number Diff line number Diff line change @@ -96,15 +96,14 @@ int main()
96
96
{
97
97
int ret = 0 ;
98
98
#if defined(MBEDTLS_PLATFORM_C)
99
- mbedtls_platform_context platform_ctx;
100
- if ((ret = mbedtls_platform_setup (&platform_ctx)) != 0 ) {
99
+ if ((ret = mbedtls_platform_setup (NULL )) != 0 ) {
101
100
mbedtls_printf (" Mbed TLS selftest failed! mbedtls_platform_setup returned %d\n " , ret);
102
101
return 1 ;
103
102
}
104
103
#endif
105
104
ret = (Harness::run (specification) ? 0 : 1 );
106
105
#if defined(MBEDTLS_PLATFORM_C)
107
- mbedtls_platform_teardown (&platform_ctx );
106
+ mbedtls_platform_teardown (NULL );
108
107
#endif
109
108
return ret;
110
109
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ namespace vendor {
47
47
namespace nordic {
48
48
49
49
CryptoToolbox::CryptoToolbox () : _initialized(false ) {
50
- mbedtls_platform_setup (&_platform_context );
50
+ mbedtls_platform_setup (NULL );
51
51
mbedtls_entropy_init (&_entropy_context);
52
52
mbedtls_ecp_group_init (&_group);
53
53
int err = mbedtls_ecp_group_load (
@@ -60,7 +60,7 @@ CryptoToolbox::CryptoToolbox() : _initialized(false) {
60
60
CryptoToolbox::~CryptoToolbox () {
61
61
mbedtls_ecp_group_free (&_group);
62
62
mbedtls_entropy_free (&_entropy_context);
63
- mbedtls_platform_teardown (&_platform_context );
63
+ mbedtls_platform_teardown (NULL );
64
64
}
65
65
66
66
bool CryptoToolbox::generate_keys (
Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ class CryptoToolbox : mbed::NonCopyable<CryptoToolbox> {
132
132
void swap_endian (uint8_t * buf, size_t len);
133
133
134
134
bool _initialized;
135
- mbedtls_platform_context _platform_context;
136
135
mbedtls_entropy_context _entropy_context;
137
136
mbedtls_ecp_group _group;
138
137
};
You can’t perform that action at this time.
0 commit comments