Introduce TLS socket options, which allow to configure session caching on a socket. The cache can be enabled on a socket with TLS_SESSION_CACHE option. Once cache is enabled on a socket, the session will be stored for re-use after a sucessfull handshake. If a socket is attempting to connect to a host for which session is stored, the session will be resumed and mbed TLS will attempt to use a simplified handshake procedure. The server-side management of sessions is fully controlled by mbed TLS after session caching is enabled on a socket. The other TLS_SESSION_CACHE_PURGE option allows to clear all of the cache entries, releasing the memory allocated for sessions. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| getaddrinfo.c | ||
| getnameinfo.c | ||
| Kconfig | ||
| socket_dispatcher.c | ||
| socket_offload.c | ||
| socketpair.c | ||
| sockets_can.c | ||
| sockets_internal.h | ||
| sockets_misc.c | ||
| sockets_net_mgmt.c | ||
| sockets_packet.c | ||
| sockets_select.c | ||
| sockets_tls.c | ||
| sockets.c | ||