Changeset fcb122d in mod_gnutls for include


Ignore:
Timestamp:
Apr 5, 2005, 12:39:18 PM (14 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
42307a9
Parents:
6e0bfd6
Message:

checkpoint the work so far. The DBM cache needs a little more work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/mod_gnutls.h.in

    r6e0bfd6 rfcb122d  
    1 /* ====================================================================
    2  *  Copyright 2004 Paul Querna
     1/**
     2 *  Copyright 2004-2005 Paul Querna
    33 *
    44 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    4343#define GNUTLS_ENABLED_TRUE  1
    4444
    45 
    46 /**
    47  * GnuTLS changed the names of several structures between 1.0.X and 1.1.X
    48  * This is just a simple hack so we can compile with both versions.
    49  * There is a full list in <gnutls/compat.h>, But I am just
    50  * doing this for a few types we use.
    51  */
    52 #ifndef gnutls_certificate_credentials_t
    53 #define gnutls_certificate_credentials_t    gnutls_certificate_credentials
    54 #define gnutls_anon_server_credentials_t    gnutls_anon_server_credentials
    55 #define gnutls_session_t                    gnutls_session
    56 #define gnutls_transport_ptr_t              gnutls_transport_ptr
    57 #define gnutls_dh_params_t                  gnutls_dh_params
    58 #define gnutls_rsa_params_t                 gnutls_rsa_params
     45typedef enum
     46{
     47    mod_gnutls_cache_none,
     48    mod_gnutls_cache_dbm,
     49#if HAVE_APR_MEMCACHE
     50    mod_gnutls_cache_memcache
    5951#endif
     52} mod_gnutls_cache_e;
    6053
    6154typedef struct
     
    7164    int protocol[16];
    7265    int compression[16];
     66    int cert_types[16];
     67    apr_time_t cache_timeout;
     68    mod_gnutls_cache_e cache_type;
    7369    const char* cache_config;
     70    const char* rsa_params_file;
     71    const char* dh_params_file;
    7472} mod_gnutls_srvconf_rec;
    7573
     
    160158
    161159/**
     160 * Init the Cache after Configuration is done
     161 */
     162int mod_gnutls_cache_post_config(apr_pool_t *p, server_rec *s,
     163                                 mod_gnutls_srvconf_rec *sc);
     164/**
    162165 * Init the Cache inside each Process
    163166 */
Note: See TracChangeset for help on using the changeset viewer.