diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/mod_gnutls.h.in | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/mod_gnutls.h.in b/include/mod_gnutls.h.in index f9ff32b..58fc928 100644 --- a/include/mod_gnutls.h.in +++ b/include/mod_gnutls.h.in | |||
| @@ -42,6 +42,8 @@ module AP_MODULE_DECLARE_DATA gnutls_module; | |||
| 42 | #define GNUTLS_ENABLED_FALSE 0 | 42 | #define GNUTLS_ENABLED_FALSE 0 |
| 43 | #define GNUTLS_ENABLED_TRUE 1 | 43 | #define GNUTLS_ENABLED_TRUE 1 |
| 44 | 44 | ||
| 45 | #define MOD_GNUTLS_VERSION "@MOD_GNUTLS_VERSION@" | ||
| 46 | |||
| 45 | typedef enum | 47 | typedef enum |
| 46 | { | 48 | { |
| 47 | mod_gnutls_cache_none, | 49 | mod_gnutls_cache_none, |
| @@ -54,7 +56,6 @@ typedef enum | |||
| 54 | typedef struct | 56 | typedef struct |
| 55 | { | 57 | { |
| 56 | gnutls_certificate_credentials_t certs; | 58 | gnutls_certificate_credentials_t certs; |
| 57 | gnutls_anon_server_credentials_t anoncred; | ||
| 58 | char *key_file; | 59 | char *key_file; |
| 59 | char *cert_file; | 60 | char *cert_file; |
| 60 | int enabled; | 61 | int enabled; |
| @@ -171,4 +172,17 @@ int mod_gnutls_cache_child_init(apr_pool_t *p, server_rec *s, | |||
| 171 | */ | 172 | */ |
| 172 | int mod_gnutls_cache_session_init(mod_gnutls_handle_t *ctxt); | 173 | int mod_gnutls_cache_session_init(mod_gnutls_handle_t *ctxt); |
| 173 | 174 | ||
| 175 | #define GNUTLS_SESSION_ID_STRING_LEN \ | ||
| 176 | ((GNUTLS_MAX_SESSION_ID + 1) * 2) | ||
| 177 | |||
| 178 | /** | ||
| 179 | * Convert a SSL Session ID into a Null Terminated Hex Encoded String | ||
| 180 | * @param id raw SSL Session ID | ||
| 181 | * @param idlen Length of the raw Session ID | ||
| 182 | * @param str Location to store the Hex Encoded String | ||
| 183 | * @param strsize The Maximum Length that can be stored in str | ||
| 184 | */ | ||
| 185 | char *mod_gnutls_session_id2sz(unsigned char *id, int idlen, | ||
| 186 | char *str, int strsize); | ||
| 187 | |||
| 174 | #endif /* __mod_gnutls_h_inc */ | 188 | #endif /* __mod_gnutls_h_inc */ |
