Lines Matching refs:psk_info
132 coap_dtls_spsk_info_t psk_info; member
453 const coap_dtls_cpsk_info_t *psk_info = in coap_dtls_psk_client_callback() local
458 if (psk_info == NULL) in coap_dtls_psk_client_callback()
460 if (psk_info->identity.length >= max_identity_len) in coap_dtls_psk_client_callback()
462 if (psk_info->key.length > max_psk_len) in coap_dtls_psk_client_callback()
468 identity_len = psk_info->identity.length; in coap_dtls_psk_client_callback()
469 c_session->psk_identity = coap_new_bin_const(psk_info->identity.s, identity_len); in coap_dtls_psk_client_callback()
470 memcpy(identity, psk_info->identity.s, identity_len); in coap_dtls_psk_client_callback()
476 psk_len = psk_info->key.length; in coap_dtls_psk_client_callback()
477 c_session->psk_key = coap_new_bin_const(psk_info->key.s, psk_len); in coap_dtls_psk_client_callback()
478 memcpy(psk, psk_info->key.s, psk_len); in coap_dtls_psk_client_callback()
809 if (setup_data->psk_info.hint.s) { in coap_dtls_context_set_spsk()
811 snprintf(hint, sizeof(hint), "%.*s", (int)setup_data->psk_info.hint.length, in coap_dtls_context_set_spsk()
812 setup_data->psk_info.hint.s); in coap_dtls_context_set_spsk()
1968 (session->context->spsk_setup_data.psk_info.key.s && in tls_secret_call_back()
1969 session->context->spsk_setup_data.psk_info.key.length)) { in tls_secret_call_back()
2021 else if (session->context->spsk_setup_data.psk_info.key.s && in tls_secret_call_back()
2022 session->context->spsk_setup_data.psk_info.key.length) { in tls_secret_call_back()
2023 memcpy(secret, session->context->spsk_setup_data.psk_info.key.s, in tls_secret_call_back()
2024 session->context->spsk_setup_data.psk_info.key.length); in tls_secret_call_back()
2025 *secretlen = session->context->spsk_setup_data.psk_info.key.length; in tls_secret_call_back()
2213 o_context->psk_sni_entry_list[o_context->psk_sni_count].psk_info = in psk_tls_server_name_call_back()
2224 &o_context->psk_sni_entry_list[i].psk_info.key); in psk_tls_server_name_call_back()
2226 (int)o_context->psk_sni_entry_list[i].psk_info.hint.length, in psk_tls_server_name_call_back()
2227 o_context->psk_sni_entry_list[i].psk_info.hint.s); in psk_tls_server_name_call_back()
2283 (session->context->spsk_setup_data.psk_info.key.s && in tls_client_hello_call_back()
2284 session->context->spsk_setup_data.psk_info.key.length)) { in tls_client_hello_call_back()
2532 o_context->psk_sni_entry_list[o_context->psk_sni_count].psk_info = in psk_tls_client_hello_call_back()
2542 &o_context->psk_sni_entry_list[i].psk_info.hint) in psk_tls_client_hello_call_back()
2547 &o_context->psk_sni_entry_list[i].psk_info.key) in psk_tls_client_hello_call_back()
2551 if (o_context->psk_sni_entry_list[i].psk_info.hint.s) { in psk_tls_client_hello_call_back()
2553 (int)o_context->psk_sni_entry_list[i].psk_info.hint.length, in psk_tls_client_hello_call_back()
2554 o_context->psk_sni_entry_list[i].psk_info.hint.s); in psk_tls_client_hello_call_back()