Lines Matching refs:psk_key
563 const coap_bin_const_t *psk_key; in psk_client_callback() local
603 psk_key = &cpsk_info->key; in psk_client_callback()
606 psk_key = coap_get_session_client_psk_key(c_session); in psk_client_callback()
609 if (psk_identity == NULL || psk_key == NULL) { in psk_client_callback()
620 key->data = gnutls_malloc(psk_key->length); in psk_client_callback()
626 memcpy(key->data, psk_key->s, psk_key->length); in psk_client_callback()
627 key->size = psk_key->length; in psk_client_callback()
1781 const coap_bin_const_t *psk_key; in psk_server_callback() local
1801 psk_key = setup_data->validate_id_call_back(&lidentity, in psk_server_callback()
1805 coap_session_refresh_psk_key(c_session, psk_key); in psk_server_callback()
1807 psk_key = coap_get_session_server_psk_key(c_session); in psk_server_callback()
1810 if (psk_key == NULL) in psk_server_callback()
1813 key->data = gnutls_malloc(psk_key->length); in psk_server_callback()
1816 memcpy(key->data, psk_key->s, psk_key->length); in psk_server_callback()
1817 key->size = psk_key->length; in psk_server_callback()