Home
last modified time | relevance | path

Searched refs:c_session (Results 1 – 10 of 10) sorted by relevance

/third_party/libcoap/src/
Dcoap_gnutls.c218 coap_session_t *c_session = in coap_gnutls_audit_log_func() local
221 coap_session_str(c_session), text); in coap_gnutls_audit_log_func()
386 coap_dtls_get_tls(const coap_session_t *c_session, in coap_dtls_get_tls() argument
390 if (c_session && c_session->tls) { in coap_dtls_get_tls()
391 const coap_gnutls_env_t *g_env = (const coap_gnutls_env_t *)c_session->tls; in coap_dtls_get_tls()
511 coap_session_t *c_session = in psk_client_callback() local
530 if (c_session == NULL || c_session->context == NULL || in psk_client_callback()
531 c_session->context->get_client_psk == NULL) { in psk_client_callback()
535 g_context = (coap_gnutls_context_t *)c_session->context->dtls_context; in psk_client_callback()
539 setup_data = &c_session->cpsk_setup_data; in psk_client_callback()
[all …]
Dcoap_mbedtls.c142 coap_session_t *c_session = (coap_session_t *)ctx; in coap_dgram_read() local
145 if (!c_session->tls) { in coap_dgram_read()
149 data = &((coap_mbedtls_env_t *)c_session->tls)->coap_ssl_data; in coap_dgram_read()
187 coap_session_t *c_session = (coap_session_t *)ctx; in coap_dgram_write() local
189 if (c_session) { in coap_dgram_write()
190 coap_mbedtls_env_t *m_env = (coap_mbedtls_env_t *)c_session->tls; in coap_dgram_write()
191 result = coap_session_send(c_session, send_buffer, send_buffer_length); in coap_dgram_write()
215 coap_session_t *c_session = (coap_session_t *)p_info; in psk_server_callback() local
224 if (c_session == NULL || c_session->context == NULL || in psk_server_callback()
225 c_session->context->get_server_psk == NULL) { in psk_server_callback()
[all …]
Dcoap_openssl.c221 coap_dtls_get_tls(const coap_session_t *c_session, in coap_dtls_get_tls() argument
225 if (c_session) { in coap_dtls_get_tls()
226 return c_session->tls; in coap_dtls_get_tls()
423 coap_session_t *c_session; in coap_dtls_psk_client_callback() local
427 c_session = (coap_session_t*)SSL_get_app_data(ssl); in coap_dtls_psk_client_callback()
428 if (c_session == NULL || c_session->context == NULL || in coap_dtls_psk_client_callback()
429 c_session->context->get_client_psk == NULL) in coap_dtls_psk_client_callback()
431 o_context = (coap_openssl_context_t *)c_session->context->dtls_context; in coap_dtls_psk_client_callback()
434 setup_data = &c_session->cpsk_setup_data; in coap_dtls_psk_client_callback()
436 if (c_session->psk_hint) { in coap_dtls_psk_client_callback()
[all …]
Dcoap_tinydtls.c57 coap_dtls_get_tls(const coap_session_t *c_session, in coap_dtls_get_tls() argument
61 if (c_session && c_session->context && c_session->context->dtls_context) { in coap_dtls_get_tls()
63 (const coap_tiny_context_t *)c_session->context->dtls_context; in coap_dtls_get_tls()
385 coap_session_t *c_session; in verify_ecdsa_key() local
405 c_session = coap_session_get_by_peer(t_context->coap_context, in verify_ecdsa_key()
407 if (!c_session) in verify_ecdsa_key()
410 buf, p-buf, c_session, 0, 1, t_context->setup_data.cn_call_back_arg)) { in verify_ecdsa_key()
Dcoap_notls.c77 coap_dtls_get_tls(const coap_session_t *c_session COAP_UNUSED, in coap_dtls_get_tls()
/third_party/libcoap/man/
Dcoap_endpoint_server.txt.in222 coap_session_t *c_session,
232 (void)c_session;
369 coap_session_t *c_session,
375 (void)c_session;
401 coap_session_t *c_session,
407 (void)c_session;
489 coap_session_t *c_session,
495 (void)c_session;
Dcoap_endpoint_client.txt.in200 coap_session_t *c_session,
209 (void)c_session;
297 coap_session_t *c_session,
302 (void)c_session;
Dcoap_encryption.txt.in870 coap_session_t *c_session,
880 (void)c_session;
1029 coap_session_t *c_session,
1033 const coap_bin_const_t *s_psk_hint = coap_session_get_psk_hint(c_session);
1065 coap_session_t *c_session,
1071 (void)c_session;
1153 coap_session_t *c_session,
1158 (void)c_session;
/third_party/libcoap/examples/
Dcoap-server.c1926 coap_session_t *c_session COAP_UNUSED, in verify_psk_sni_callback()
1963 coap_session_t *c_session, in verify_id_callback() argument
1967 const coap_bin_const_t *s_psk_hint = coap_session_get_psk_hint(c_session); in verify_id_callback()
1992 s_psk_key = coap_session_get_psk_key(c_session); in verify_id_callback()
Dcoap-client.c1167 coap_session_t *c_session COAP_UNUSED, in verify_ih_callback()