@@ -66,7 +66,9 @@ static NS_LIST_DEFINE(socket_list, internal_socket_t, link);
66
66
static uint8_t max_handshakes = MAX_ONGOING_HANDSHAKES ;
67
67
static uint8_t max_sessions = MAX_SECURE_SESSION_COUNT ;
68
68
69
+ #ifdef COAP_SECURITY_AVAILABLE
69
70
static void timer_cb (void * param );
71
+ #endif
70
72
71
73
static void recv_sckt_msg (void * cb_res );
72
74
#ifdef COAP_SECURITY_AVAILABLE
@@ -122,6 +124,7 @@ static secure_session_t *secure_session_find_by_timer_id(int8_t timer_id)
122
124
return this ;
123
125
}
124
126
127
+ #ifdef COAP_SECURITY_AVAILABLE
125
128
static bool is_secure_session_valid (secure_session_t * session )
126
129
{
127
130
ns_list_foreach (secure_session_t , cur_ptr , & secure_session_list ) {
@@ -131,6 +134,7 @@ static bool is_secure_session_valid(secure_session_t *session)
131
134
}
132
135
return false;
133
136
}
137
+ #endif
134
138
135
139
static void secure_session_delete (secure_session_t * this )
136
140
{
@@ -164,6 +168,7 @@ static int8_t virtual_socket_id_allocate()
164
168
165
169
static secure_session_t * secure_session_create (internal_socket_t * parent , const uint8_t * address_ptr , uint16_t port , SecureConnectionMode secure_mode )
166
170
{
171
+ (void ) secure_mode ;
167
172
uint8_t handshakes = 0 ;
168
173
if (!address_ptr ) {
169
174
return NULL ;
@@ -493,6 +498,7 @@ static int secure_session_recvfrom(int8_t socket_id, unsigned char *buf, size_t
493
498
* TODO - might be better to use an event timer in conjunction with
494
499
* CoAP tasklet
495
500
*/
501
+ #ifdef COAP_SECURITY_AVAILABLE
496
502
static void timer_cb (void * param )
497
503
{
498
504
secure_session_t * sec = param ;
@@ -524,6 +530,7 @@ static void timer_cb(void *param)
524
530
}
525
531
}
526
532
}
533
+ #endif
527
534
528
535
#ifdef COAP_SECURITY_AVAILABLE
529
536
static void start_timer (int8_t timer_id , uint32_t int_ms , uint32_t fin_ms )
0 commit comments