@@ -50,11 +50,11 @@ bool test_thread_security_create()
50
50
51
51
nsdynmemlib_stub .returnCounter = 2 ;
52
52
mbedtls_stub .crt_expected_int = 0 ;
53
- thread_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
53
+ coap_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
54
54
if ( NULL == handle )
55
55
return false;
56
56
57
- ns_dyn_mem_free (handle );
57
+ thread_security_destroy (handle );
58
58
59
59
return true;
60
60
}
@@ -64,7 +64,7 @@ bool test_thread_security_destroy()
64
64
uint8_t buf [16 ];
65
65
nsdynmemlib_stub .returnCounter = 2 ;
66
66
mbedtls_stub .crt_expected_int = 0 ;
67
- thread_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
67
+ coap_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
68
68
if ( NULL == handle )
69
69
return false;
70
70
@@ -77,7 +77,7 @@ bool test_coap_security_handler_connect()
77
77
uint8_t buf [16 ];
78
78
nsdynmemlib_stub .returnCounter = 2 ;
79
79
mbedtls_stub .crt_expected_int = 0 ;
80
- thread_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
80
+ coap_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
81
81
if ( NULL == handle )
82
82
return false;
83
83
@@ -174,7 +174,7 @@ bool test_coap_security_handler_continue_connecting()
174
174
uint8_t buf [16 ];
175
175
nsdynmemlib_stub .returnCounter = 2 ;
176
176
mbedtls_stub .crt_expected_int = 0 ;
177
- thread_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
177
+ coap_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
178
178
if ( NULL == handle )
179
179
return false;
180
180
@@ -222,7 +222,7 @@ bool test_coap_security_handler_send_message()
222
222
uint8_t buf [16 ];
223
223
nsdynmemlib_stub .returnCounter = 2 ;
224
224
mbedtls_stub .crt_expected_int = 0 ;
225
- thread_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
225
+ coap_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
226
226
if ( NULL == handle )
227
227
return false;
228
228
@@ -243,7 +243,7 @@ bool test_thread_security_send_close_alert()
243
243
uint8_t buf [16 ];
244
244
nsdynmemlib_stub .returnCounter = 2 ;
245
245
mbedtls_stub .crt_expected_int = 0 ;
246
- thread_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
246
+ coap_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
247
247
if ( NULL == handle )
248
248
return false;
249
249
@@ -263,7 +263,7 @@ bool test_coap_security_handler_read()
263
263
uint8_t buf [16 ];
264
264
nsdynmemlib_stub .returnCounter = 2 ;
265
265
mbedtls_stub .crt_expected_int = 0 ;
266
- thread_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
266
+ coap_security_t * handle = thread_security_create (1 ,2 ,& buf ,12 ,& send_to_socket , & receive_from_socket , & start_timer_callback , & timer_status_callback );
267
267
if ( NULL == handle )
268
268
return false;
269
269
0 commit comments