Lines Matching refs:psk_key
473 if (c_session->psk_key) { in coap_dtls_psk_client_callback()
474 coap_delete_bin_const(c_session->psk_key); 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()
530 const coap_bin_const_t *psk_key = in coap_dtls_psk_server_callback() local
535 if (psk_key == NULL) in coap_dtls_psk_server_callback()
537 if (psk_key->length > max_psk_len) in coap_dtls_psk_server_callback()
539 memcpy(psk, psk_key->s, psk_key->length); in coap_dtls_psk_server_callback()
540 coap_session_refresh_psk_key(c_session, psk_key); in coap_dtls_psk_server_callback()
541 return (unsigned int)psk_key->length; in coap_dtls_psk_server_callback()
1967 if ((session->psk_key) || in tls_secret_call_back()
2017 if (session->psk_key) { in tls_secret_call_back()
2018 memcpy(secret, session->psk_key->s, session->psk_key->length); in tls_secret_call_back()
2019 *secretlen = session->psk_key->length; in tls_secret_call_back()
2282 if ((session->psk_key) || in tls_client_hello_call_back()