Changeset 04e6e65 in mod_gnutls


Ignore:
Timestamp:
Jun 3, 2016, 6:49:21 PM (20 months ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master, debian, upstream
Children:
f785704
Parents:
379a297
Message:

Move declarations of cache-related functions to a dedicated header

This should make the code a little easier to understand, especially
regarding where these functions are used.

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • include/mod_gnutls.h.in

    r379a297 r04e6e65  
    345345
    346346/**
    347  * Init the Cache after Configuration is done
    348  */
    349 int mgs_cache_post_config(apr_pool_t *p, server_rec *s,
    350                                  mgs_srvconf_rec *sc);
    351 /**
    352  * Init the Cache inside each Process
    353  */
    354 int mgs_cache_child_init(apr_pool_t *p, server_rec *s,
    355                                 mgs_srvconf_rec *sc);
    356 /**
    357  * Setup the Session Caching
    358  */
    359 int mgs_cache_session_init(mgs_handle_t *ctxt);
    360 
    361 #define GNUTLS_SESSION_ID_STRING_LEN \
    362     ((GNUTLS_MAX_SESSION_ID + 1) * 2)
    363 
    364 /**
    365347 * Perform any reinitialization required in PKCS #11
    366348 */
    367349int mgs_pkcs11_reinit(server_rec * s);
    368350
    369 /**
    370  * Convert a SSL Session ID into a Null Terminated Hex Encoded String
    371  * @param id raw SSL Session ID
    372  * @param idlen Length of the raw Session ID
    373  * @param str Location to store the Hex Encoded String
    374  * @param strsize The Maximum Length that can be stored in str
    375  */
    376 char *mgs_session_id2sz(unsigned char *id, int idlen,
    377                                 char *str, int strsize);
    378 
    379 /**
    380  * Convert a time_t into a Null Terminated String
    381  * @param t time_t time
    382  * @param str Location to store the Hex Encoded String
    383  * @param strsize The Maximum Length that can be stored in str
    384  */
    385 char *mgs_time2sz(time_t t, char *str, int strsize);
    386351
    387352
  • src/Makefile.am

    r94cb972 r04e6e65  
    1010mod_gnutls_la_CFLAGS = -Wall ${MODULE_CFLAGS}
    1111mod_gnutls_la_LDFLAGS = -module -avoid-version ${MODULE_LIBS}
    12 noinst_HEADERS = gnutls_ocsp.h
     12noinst_HEADERS = gnutls_cache.h gnutls_ocsp.h
    1313
    1414apmodpkglib_LTLIBRARIES = mod_gnutls.la
  • src/gnutls_cache.c

    r8913410 r04e6e65  
    1919 */
    2020
     21#include "gnutls_cache.h"
    2122#include "mod_gnutls.h"
    2223
  • src/gnutls_hooks.c

    r7511bfa r04e6e65  
    2121
    2222#include "mod_gnutls.h"
     23#include "gnutls_cache.h"
    2324#include "gnutls_ocsp.h"
    2425#include "http_vhost.h"
Note: See TracChangeset for help on using the changeset viewer.