Changeset a85de63 in mod_gnutls for src/gnutls_cache.h


Ignore:
Timestamp:
Apr 19, 2018, 3:09:04 PM (4 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, debian/master, master, proxy-ticket
Children:
103cafa
Parents:
c34a68b
Message:

Make cache_fetch_func work without a connection context

This is necessary to do cache fetches without a client connection,
e.g. while doing asynchronous OCSP updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.h

    rc34a68b ra85de63  
    22 *  Copyright 2004-2005 Paul Querna
    33 *  Copyright 2014 Nikos Mavrogiannopoulos
    4  *  Copyright 2015-2016 Fiona Klute
     4 *  Copyright 2015-2018 Fiona Klute
    55 *
    66 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    9797 * session caching API, and must be released using `gnutls_free()`.
    9898 *
    99  * @param ctxt mod_gnutls session context for the request
     99 * @param server server context for the request
     100 *
    100101 * @param key key for the cache entry to be fetched
     102 *
     103 * @param pool pool to allocate the response and other temporary
     104 * memory from
    101105 *
    102106 * @return the requested cache entry, or `{NULL, 0}`
    103107 */
    104 typedef gnutls_datum_t (*cache_fetch_func)(mgs_handle_t *ctxt,
    105                                            gnutls_datum_t key);
     108typedef gnutls_datum_t (*cache_fetch_func)(server_rec *server,
     109                                           gnutls_datum_t key,
     110                                           apr_pool_t *pool);
    106111/**
    107112 * Internal cache configuration structure
Note: See TracChangeset for help on using the changeset viewer.