Lines Matching refs:client_cache
251 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()
590 entry = &client_cache[i]; in tls_session_save()
597 entry->timestamp < client_cache[i].timestamp)) { in tls_session_save()
598 entry = &client_cache[i]; in tls_session_save()
640 for (int i = 0; i < ARRAY_SIZE(client_cache); i++) { in tls_session_get()
641 if (client_cache[i].session != NULL && in tls_session_get()
642 peer_addr_cmp(&client_cache[i].peer_addr, peer_addr)) { in tls_session_get()
643 entry = &client_cache[i]; in tls_session_get()