diff options
author | Paul Querna | 2005-04-06 04:52:25 +0000 |
---|---|---|
committer | Paul Querna | 2005-04-06 04:52:25 +0000 |
commit | 42307a9120b12fa5eb6fe1b316ef521ae46dbeb9 (patch) | |
tree | 3f3da6cbf06c91cbca72f9f6f552a0a26afe62f2 /include | |
parent | fcb122d264414b86ca89dddffba5f839963fc7fa (diff) |
- remove anno creds
- initial attempt at Server Name Extension
- change to adding 'mod_gnutls' to the server sig instead of GnuTLS/
- fix for EOF/EOC/EOS buckets
- 'general' code cleanups
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 */ |