Skip to content
Commit 4c235dea authored by Robert Lubos's avatar Robert Lubos Committed by Jukka Rissanen
Browse files

net: tls: Add DTLS bio functions



Add binary IO functions for DTLS connections.

dtls_rx function is more complex than it's TLS counterpart due to fact,
that DTLS does not allow blocking operation for this function. A simple
timeout mechanism was implmented basing on the zsock_poll function.

This function also verifies peer address. As currently only a single
DTLS connection is supported on a socket, if a DTLS connection is
established, and we receive datagram from different peer, it is silently
dropped.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 8719f9a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment