Searched refs:tls_ctx (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_tls.c | 855 struct tls_context *tls_ctx = ctx; in dtls_tx() local 858 sent = zsock_sendto(tls_ctx->sock, buf, len, ZSOCK_MSG_DONTWAIT, in dtls_tx() 859 &tls_ctx->dtls_peer_addr, in dtls_tx() 860 tls_ctx->dtls_peer_addrlen); in dtls_tx() 874 struct tls_context *tls_ctx = ctx; in dtls_rx() local 880 received = zsock_recvfrom(tls_ctx->sock, buf, len, in dtls_rx() 890 if (tls_ctx->dtls_peer_addrlen == 0) { in dtls_rx() 892 if (tls_ctx->options.role == MBEDTLS_SSL_IS_SERVER) { in dtls_rx() 893 dtls_peer_address_set(tls_ctx, &addr, addrlen); in dtls_rx() 896 &tls_ctx->ssl, in dtls_rx() [all …]
|