Lines Matching full:cache
4 * \brief SSL session cache implementation
35 #define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /*!< Maximum entries in cache */
48 * \brief This structure is used for storing cache entries
65 * \brief Cache context
69 int MBEDTLS_PRIVATE(timeout); /*!< cache entry timeout */
77 * \brief Initialize an SSL cache context
79 * \param cache SSL cache context
81 void mbedtls_ssl_cache_init(mbedtls_ssl_cache_context *cache);
84 * \brief Cache get callback implementation
87 * \param data The SSL cache context to use.
96 * no cache entry with specified session ID found, or
105 * \brief Cache set callback implementation
108 * \param data The SSL cache context to use.
123 * \brief Remove the cache entry by the session ID
126 * \param data The SSL cache context to use.
131 * \return \c 0 on success. This indicates the cache entry for
142 * \brief Set the cache timeout
147 * \param cache SSL cache context
148 * \param timeout cache entry timeout in seconds
150 void mbedtls_ssl_cache_set_timeout(mbedtls_ssl_cache_context *cache, int timeout);
153 * \brief Get the cache timeout
157 * \param cache SSL cache context
159 * \return cache entry timeout in seconds
161 static inline int mbedtls_ssl_cache_get_timeout(mbedtls_ssl_cache_context *cache) in mbedtls_ssl_cache_get_timeout() argument
163 return cache->MBEDTLS_PRIVATE(timeout); in mbedtls_ssl_cache_get_timeout()
168 * \brief Set the maximum number of cache entries
171 * \param cache SSL cache context
172 * \param max cache entry maximum
174 void mbedtls_ssl_cache_set_max_entries(mbedtls_ssl_cache_context *cache, int max);
177 * \brief Free referenced items in a cache context and clear memory
179 * \param cache SSL cache context
181 void mbedtls_ssl_cache_free(mbedtls_ssl_cache_context *cache);