Lines Matching full:cache
4 * \brief SSL session cache implementation
47 #define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /*!< Maximum entries in cache */
60 * \brief This structure is used for storing cache entries
77 * \brief Cache context
81 int MBEDTLS_PRIVATE(timeout); /*!< cache entry timeout */
89 * \brief Initialize an SSL cache context
91 * \param cache SSL cache context
93 void mbedtls_ssl_cache_init(mbedtls_ssl_cache_context *cache);
96 * \brief Cache get callback implementation
99 * \param data The SSL cache context to use.
112 * \brief Cache set callback implementation
115 * \param data The SSL cache context to use.
127 * \brief Remove the cache entry by the session ID
130 * \param data The SSL cache context to use.
135 * \return 0: The cache entry for session with provided ID
145 * \brief Set the cache timeout
150 * \param cache SSL cache context
151 * \param timeout cache entry timeout in seconds
153 void mbedtls_ssl_cache_set_timeout(mbedtls_ssl_cache_context *cache, int timeout);
157 * \brief Set the maximum number of cache entries
160 * \param cache SSL cache context
161 * \param max cache entry maximum
163 void mbedtls_ssl_cache_set_max_entries(mbedtls_ssl_cache_context *cache, int max);
166 * \brief Free referenced items in a cache context and clear memory
168 * \param cache SSL cache context
170 void mbedtls_ssl_cache_free(mbedtls_ssl_cache_context *cache);