Changeset ded2291 in mod_gnutls for src/gnutls_cache.h
- Timestamp:
- Apr 24, 2018, 1:13:28 PM (3 years ago)
- Branches:
- asyncio, debian/master, master, proxy-ticket
- Children:
- 41f9bcb
- Parents:
- 6bbd378
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_cache.h
r6bbd378 rded2291 82 82 83 83 /** 84 * Generic store function for the mod_gnutls object cache.84 * Store function for the mod_gnutls object caches. 85 85 * 86 * @param cache the cache to store the entry in 86 87 * @param s server associated with the cache entry 87 88 * @param key key for the cache entry … … 91 92 * @return `-1` on error, `0` on success 92 93 */ 93 typedef int (*cache_store_func)(server_rec *s, gnutls_datum_t key, 94 gnutls_datum_t data, apr_time_t expiry); 94 int mgs_cache_store(mgs_cache_t cache, server_rec *server, gnutls_datum_t key, 95 gnutls_datum_t data, apr_time_t expiry); 96 95 97 /** 96 * Generic fetch function for the mod_gnutls object cache.98 * Fetch function for the mod_gnutls object caches. 97 99 * 98 100 * *Warning*: The `data` element of the returned `gnutls_datum_t` is 99 101 * allocated using `gnutls_malloc()` for compatibility with the GnuTLS 100 102 * session caching API, and must be released using `gnutls_free()`. 103 * 104 * @param cache the cache to fetch from 101 105 * 102 106 * @param server server context for the request … … 109 113 * @return the requested cache entry, or `{NULL, 0}` 110 114 */ 111 typedef gnutls_datum_t (*cache_fetch_func)(server_rec *server,112 gnutls_datum_t key,113 apr_pool_t *pool); 115 gnutls_datum_t mgs_cache_fetch(mgs_cache_t cache, server_rec *server, 116 gnutls_datum_t key, apr_pool_t *pool); 117 114 118 /** 115 119 * Internal cache configuration structure … … 120 124 /** The actual socache instance */ 121 125 ap_socache_instance_t *socache; 122 /** Store function for this cache */123 cache_store_func store;124 /** Fetch function for this cache */125 cache_fetch_func fetch;126 126 /** Mutex for cache access (used only if the cache type is not 127 127 * thread-safe) */
Note: See TracChangeset
for help on using the changeset viewer.