Lines Matching refs:psk_key
387 const coap_bin_const_t *psk_key; in get_psk_info() local
458 psk_key = coap_get_session_client_psk_key(coap_session); in get_psk_info()
459 if (psk_key == NULL) { in get_psk_info()
464 if (psk_key->length > result_length) { in get_psk_info()
469 result_length = psk_key->length; in get_psk_info()
471 memcpy(result, psk_key->s, result_length); in get_psk_info()
490 psk_key = in get_psk_info()
495 psk_key = coap_get_session_server_psk_key(coap_session); in get_psk_info()
498 if (psk_key == NULL) { in get_psk_info()
503 coap_session_refresh_psk_key(coap_session, psk_key); in get_psk_info()
504 if (psk_key->length > result_length) { in get_psk_info()
509 result_length = psk_key->length; in get_psk_info()
511 memcpy(result, psk_key->s, result_length); in get_psk_info()