Searched refs:client_cache (Results 1 – 1 of 1) sorted by relevance
251 static struct tls_session_cache client_cache[CONFIG_NET_SOCKETS_TLS_MAX_CLIENT_SESSION_COUNT]; variable267 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 …]