Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_tls.c251 static struct tls_session_cache client_cache[CONFIG_NET_SOCKETS_TLS_MAX_CLIENT_SESSION_COUNT]; variable
267 for (int i = 0; i < ARRAY_SIZE(client_cache); i++) { in tls_session_cache_reset()
268 if (client_cache[i].session != NULL) { in tls_session_cache_reset()
269 mbedtls_free(client_cache[i].session); in tls_session_cache_reset()
273 (void)memset(client_cache, 0, sizeof(client_cache)); in tls_session_cache_reset()
368 (void)memset(client_cache, 0, sizeof(client_cache)); in tls_init()
581 for (int i = 0; i < ARRAY_SIZE(client_cache); i++) { in tls_session_save()
582 if (client_cache[i].session == NULL) { in tls_session_save()
585 entry = &client_cache[i]; in tls_session_save()
588 if (peer_addr_cmp(&client_cache[i].peer_addr, peer_addr)) { in tls_session_save()
[all …]