Home
last modified time | relevance | path

Searched refs:psk_id_length (Results 1 – 3 of 3) sorted by relevance

/net-tools-3.5.0/tinydtls-0.8.2/tests/
Ddtls-client.c97 static size_t psk_id_length = 0; variable
117 if (result_length < psk_id_length) { in get_psk_info()
122 memcpy(result, psk_id, psk_id_length); in get_psk_info()
123 return psk_id_length; in get_psk_info()
125 if (id_len != psk_id_length || memcmp(psk_id, id, id_len) != 0) { in get_psk_info()
356 psk_id_length = strlen(PSK_DEFAULT_IDENTITY);
358 memcpy(psk_id, PSK_DEFAULT_IDENTITY, psk_id_length);
370 psk_id_length = result;
/net-tools-3.5.0/tinydtls-0.8.2/examples/contiki/
Ddtls-client.c133 static size_t psk_id_length = sizeof(PSK_DEFAULT_IDENTITY) - 1; variable
155 if (result_length < psk_id_length) { in get_psk_info()
160 memcpy(result, psk_id, psk_id_length); in get_psk_info()
161 return psk_id_length; in get_psk_info()
163 if (id_len != psk_id_length || memcmp(psk_id, id, id_len) != 0) { in get_psk_info()
/net-tools-3.5.0/
Dcoap-client.c521 static size_t psk_id_length = 0; variable
541 if (result_length < psk_id_length) { in get_psk_info()
546 memcpy(result, psk_id, psk_id_length); in get_psk_info()
547 return psk_id_length; in get_psk_info()
550 if (id_len != psk_id_length || memcmp(psk_id, id, id_len) != 0) { in get_psk_info()
1588 psk_id_length = strlen(PSK_DEFAULT_IDENTITY);
1590 memcpy(psk_id, PSK_DEFAULT_IDENTITY, psk_id_length);