Home
last modified time | relevance | path

Searched refs:psk_hint (Results 1 - 5 of 5) sorted by relevance

/third_party/libcoap/src/
H A Dcoap_session.c631 if (session->psk_hint) in coap_session_mfree()
632 coap_delete_bin_const(session->psk_hint); in coap_session_mfree()
1513 const coap_bin_const_t *psk_hint in coap_session_refresh_psk_hint()
1516 coap_bin_const_t *old_psk_hint = session->psk_hint; in coap_session_refresh_psk_hint()
1518 if (psk_hint && psk_hint->s) { in coap_session_refresh_psk_hint()
1519 if (session->psk_hint) { in coap_session_refresh_psk_hint()
1520 if (coap_binary_equal(session->psk_hint, psk_hint)) in coap_session_refresh_psk_hint()
1523 session->psk_hint in coap_session_refresh_psk_hint()
[all...]
H A Dcoap_openssl.c2823 const coap_bin_const_t *psk_hint; in coap_dtls_new_server_session() local
2844 psk_hint = coap_get_session_server_psk_hint(session); in coap_dtls_new_server_session()
2845 if (psk_hint != NULL && psk_hint->length) { in coap_dtls_new_server_session()
2846 char *hint = OPENSSL_malloc(psk_hint->length + 1); in coap_dtls_new_server_session()
2849 memcpy(hint, psk_hint->s, psk_hint->length); in coap_dtls_new_server_session()
2850 hint[psk_hint->length] = '\000'; in coap_dtls_new_server_session()
3344 const coap_bin_const_t *psk_hint; in coap_tls_new_server_session() local
3356 psk_hint in coap_tls_new_server_session()
[all...]
H A Dcoap_tinydtls.c390 const coap_bin_const_t *psk_hint; in get_psk_info() local
519 psk_hint = coap_get_session_server_psk_hint(coap_session); in get_psk_info()
520 if (psk_hint == NULL) in get_psk_info()
522 if (psk_hint->length > result_length) { in get_psk_info()
523 coap_log_warn("psk_hint too large, truncated to %zd bytes\n", in get_psk_info()
527 result_length = psk_hint->length; in get_psk_info()
529 memcpy(result, psk_hint->s, result_length); in get_psk_info()
H A Dcoap_net.c314 if (session->psk_hint) in coap_get_session_server_psk_hint()
315 return session->psk_hint; in coap_get_session_server_psk_hint()
/third_party/libcoap/include/coap3/
H A Dcoap_session_internal.h136 coap_bin_const_t *psk_hint; /**< If client, this field contains the member
269 * Note: A copy of @p psk_hint is maintained in the session by libcoap.
272 * @param psk_hint If NULL, the Identity Hint will revert to the
278 const coap_bin_const_t *psk_hint);

Completed in 15 milliseconds