Home
last modified time | relevance | path

Searched refs:psk_info (Results 1 – 17 of 17) sorted by relevance

/third_party/libcoap/examples/riot/examples_libcoap_client/
Dclient-coap.c188 dtls_psk.psk_info.identity.s = (const uint8_t *)COAP_USE_PSK_ID; in client_coap_init()
189 dtls_psk.psk_info.identity.length = strlen(COAP_USE_PSK_ID); in client_coap_init()
190 dtls_psk.psk_info.key.s = (const uint8_t *)COAP_USE_PSK; in client_coap_init()
191 dtls_psk.psk_info.key.length = strlen(COAP_USE_PSK); in client_coap_init()
/third_party/libcoap/examples/lwip/
Dclient-coap.c193 dtls_psk.psk_info.identity.s = (const uint8_t *)use_id; in client_coap_init()
194 dtls_psk.psk_info.identity.length = strlen(use_id); in client_coap_init()
195 dtls_psk.psk_info.key.s = (const uint8_t *)use_psk; in client_coap_init()
196 dtls_psk.psk_info.key.length = strlen(use_psk); in client_coap_init()
Dserver-coap.c163 setup_data.psk_info.key.s = (const uint8_t *)use_psk; in server_coap_init()
164 setup_data.psk_info.key.length = strlen(use_psk); in server_coap_init()
/third_party/libcoap/examples/
Dcoap-server.c768 dtls_cpsk.psk_info.identity.s = user; in setup_cpsk()
769 dtls_cpsk.psk_info.identity.length = user_length; in setup_cpsk()
770 dtls_cpsk.psk_info.key.s = key; in setup_cpsk()
771 dtls_cpsk.psk_info.key.length = key_length; in setup_cpsk()
1936 static coap_dtls_spsk_info_t psk_info; in verify_psk_sni_callback() local
1939 memset(&psk_info, 0, sizeof(psk_info)); in verify_psk_sni_callback()
1940 psk_info.hint.s = (const uint8_t *)hint; in verify_psk_sni_callback()
1941 psk_info.hint.length = hint ? strlen(hint) : 0; in verify_psk_sni_callback()
1942 psk_info.key.s = key; in verify_psk_sni_callback()
1943 psk_info.key.length = key_length; in verify_psk_sni_callback()
[all …]
Dcoap-client.c1296 coap_dtls_cpsk_info_t *psk_info = (coap_dtls_cpsk_info_t *)arg; in verify_ih_callback() local
1308 psk_identity_info = *psk_info; in verify_ih_callback()
1321 return psk_info; in verify_ih_callback()
1418 dtls_psk.ih_call_back_arg = &dtls_psk.psk_info; in setup_psk()
1425 dtls_psk.psk_info.identity.s = identity; in setup_psk()
1426 dtls_psk.psk_info.identity.length = identity_len; in setup_psk()
1427 dtls_psk.psk_info.key.s = key; in setup_psk()
1428 dtls_psk.psk_info.key.length = key_len; in setup_psk()
Dcoap-rd.c678 dtls_psk.psk_info.hint.s = (const uint8_t *)hint; in fill_keystore()
679 dtls_psk.psk_info.hint.length = hint ? strlen(hint) : 0; in fill_keystore()
680 dtls_psk.psk_info.key.s = key; in fill_keystore()
681 dtls_psk.psk_info.key.length = key_length; in fill_keystore()
/third_party/libcoap/include/coap3/
Dcoap_dtls.h407 coap_dtls_cpsk_info_t psk_info; /**< Client PSK definition */ member
495 coap_dtls_spsk_info_t psk_info; /**< Server PSK definition */ member
/third_party/libcoap/src/
Dcoap_openssl.c149 coap_dtls_spsk_info_t psk_info; member
927 if (setup_data->psk_info.hint.s) { in coap_dtls_context_set_spsk()
929 snprintf(hint, sizeof(hint), "%.*s", (int)setup_data->psk_info.hint.length, in coap_dtls_context_set_spsk()
930 setup_data->psk_info.hint.s); in coap_dtls_context_set_spsk()
2036 (session->context->spsk_setup_data.psk_info.key.s && in tls_secret_call_back()
2037 session->context->spsk_setup_data.psk_info.key.length)) { in tls_secret_call_back()
2086 } else if (session->context->spsk_setup_data.psk_info.key.s && in tls_secret_call_back()
2087 session->context->spsk_setup_data.psk_info.key.length) { in tls_secret_call_back()
2088 memcpy(secret, session->context->spsk_setup_data.psk_info.key.s, in tls_secret_call_back()
2089 session->context->spsk_setup_data.psk_info.key.length); in tls_secret_call_back()
[all …]
Dcoap_session.c1443 setup_data.psk_info.identity.s = (const uint8_t *)identity; in coap_new_client_session_psk()
1444 setup_data.psk_info.identity.length = strlen(identity); in coap_new_client_session_psk()
1448 setup_data.psk_info.key.s = key; in coap_new_client_session_psk()
1449 setup_data.psk_info.key.length = key_len; in coap_new_client_session_psk()
1469 if (setup_data->psk_info.identity.s) { in coap_new_client_session_psk2()
1471 coap_new_bin_const(setup_data->psk_info.identity.s, in coap_new_client_session_psk2()
1472 setup_data->psk_info.identity.length); in coap_new_client_session_psk2()
1484 if (setup_data->psk_info.key.s && setup_data->psk_info.key.length > 0) { in coap_new_client_session_psk2()
1485 session->psk_key = coap_new_bin_const(setup_data->psk_info.key.s, in coap_new_client_session_psk2()
1486 setup_data->psk_info.key.length); in coap_new_client_session_psk2()
[all …]
Dcoap_net.c276 if (session->cpsk_setup_data.psk_info.key.length) in coap_get_session_client_psk_key()
277 return &session->cpsk_setup_data.psk_info.key; in coap_get_session_client_psk_key()
290 if (session->cpsk_setup_data.psk_info.identity.length) in coap_get_session_client_psk_identity()
291 return &session->cpsk_setup_data.psk_info.identity; in coap_get_session_client_psk_identity()
304 if (session->context->spsk_setup_data.psk_info.key.length) in coap_get_session_server_psk_key()
305 return &session->context->spsk_setup_data.psk_info.key; in coap_get_session_server_psk_key()
317 if (session->context->spsk_setup_data.psk_info.hint.length) in coap_get_session_server_psk_hint()
318 return &session->context->spsk_setup_data.psk_info.hint; in coap_get_session_server_psk_hint()
333 setup_data.psk_info.hint.s = (const uint8_t *)hint; in coap_context_set_psk()
334 setup_data.psk_info.hint.length = strlen(hint); in coap_context_set_psk()
[all …]
Dcoap_gnutls.c120 coap_dtls_spsk_info_t psk_info; member
1436 if (setup_data->psk_info.hint.s) { in setup_psk_credentials()
1437 snprintf(hint, sizeof(hint), "%.*s", (int)setup_data->psk_info.hint.length, in setup_psk_credentials()
1438 setup_data->psk_info.hint.s); in setup_psk_credentials()
1530 g_context->psk_sni_entry_list[i].psk_info = *new_entry; in post_client_hello_gnutls_psk()
1532 sni_setup_data.psk_info = *new_entry; in post_client_hello_gnutls_psk()
1550 &g_context->psk_sni_entry_list[i].psk_info.hint); in post_client_hello_gnutls_psk()
1552 &g_context->psk_sni_entry_list[i].psk_info.key); in post_client_hello_gnutls_psk()
Dcoap_mbedtls.c148 coap_dtls_spsk_info_t psk_info; member
923 m_context->psk_sni_entry_list[i].psk_info = *new_entry; in psk_sni_callback()
931 &m_context->psk_sni_entry_list[i].psk_info.hint); in psk_sni_callback()
933 &m_context->psk_sni_entry_list[i].psk_info.key); in psk_sni_callback()
935 m_context->psk_sni_entry_list[i].psk_info.key.s, in psk_sni_callback()
936 m_context->psk_sni_entry_list[i].psk_info.key.length); in psk_sni_callback()
/third_party/libcoap/examples/riot/examples_libcoap_server/
Dserver-coap.c160 setup_data.psk_info.key.s = (const uint8_t *)use_psk; in init_coap_context_endpoints()
161 setup_data.psk_info.key.length = strlen(use_psk); in init_coap_context_endpoints()
/third_party/libcoap/man/
Dcoap_endpoint_client.txt.in412 coap_dtls_cpsk_info_t *psk_info = (coap_dtls_cpsk_info_t *)arg;
419 return psk_info;
455 dtls_psk.ih_call_back_arg = &dtls_psk.psk_info;
461 dtls_psk.psk_info.identity.s = identity;
462 dtls_psk.psk_info.identity.length = identity_len;
463 dtls_psk.psk_info.key.s = key;
464 dtls_psk.psk_info.key.length = key_len;
Dcoap_endpoint_server.txt.in478 coap_dtls_spsk_info_t psk_info;
502 return &valid_sni_list->sni_list[i].psk_info;
540 dtls_psk.psk_info.hint.s = (const uint8_t*)hint;
541 dtls_psk.psk_info.hint.length = hint ? strlen(hint) : 0;
542 dtls_psk.psk_info.key.s = key;
543 dtls_psk.psk_info.key.length = key_len;
Dcoap_encryption.txt.in149 coap_dtls_cpsk_info_t psk_info; /* Client PSK definition */
273 coap_dtls_spsk_info_t psk_info; /* Server PSK definition */
1054 coap_dtls_spsk_info_t psk_info;
1078 return &valid_sni_list->sni_list[i].psk_info;
1116 dtls_psk.psk_info.hint.s = (const uint8_t*)hint;
1117 dtls_psk.psk_info.hint.length = hint ? strlen(hint) : 0;
1118 dtls_psk.psk_info.key.s = key;
1119 dtls_psk.psk_info.key.length = key_len;
1158 coap_dtls_cpsk_info_t *psk_info = (coap_dtls_cpsk_info_t *)arg;
1165 return psk_info;
[all …]
/third_party/mbedtls/programs/ssl/
Dssl_server2.c1480 psk_entry *psk_info = NULL; in main() local
2386 if ((psk_info = psk_parse(opt.psk_list)) == NULL) { in main()
3191 for (cur_psk = psk_info; cur_psk != NULL; cur_psk = cur_psk->next) { in main()
3204 mbedtls_ssl_conf_psk_cb(&conf, psk_callback, psk_info); in main()
4192 ret = psk_free(psk_info); in main()