From 42307a9120b12fa5eb6fe1b316ef521ae46dbeb9 Mon Sep 17 00:00:00 2001 From: Paul Querna Date: Wed, 6 Apr 2005 04:52:25 +0000 Subject: - 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 --- include/mod_gnutls.h.in | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'include') 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; #define GNUTLS_ENABLED_FALSE 0 #define GNUTLS_ENABLED_TRUE 1 +#define MOD_GNUTLS_VERSION "@MOD_GNUTLS_VERSION@" + typedef enum { mod_gnutls_cache_none, @@ -54,7 +56,6 @@ typedef enum typedef struct { gnutls_certificate_credentials_t certs; - gnutls_anon_server_credentials_t anoncred; char *key_file; char *cert_file; int enabled; @@ -171,4 +172,17 @@ int mod_gnutls_cache_child_init(apr_pool_t *p, server_rec *s, */ int mod_gnutls_cache_session_init(mod_gnutls_handle_t *ctxt); +#define GNUTLS_SESSION_ID_STRING_LEN \ + ((GNUTLS_MAX_SESSION_ID + 1) * 2) + +/** + * Convert a SSL Session ID into a Null Terminated Hex Encoded String + * @param id raw SSL Session ID + * @param idlen Length of the raw Session ID + * @param str Location to store the Hex Encoded String + * @param strsize The Maximum Length that can be stored in str + */ +char *mod_gnutls_session_id2sz(unsigned char *id, int idlen, + char *str, int strsize); + #endif /* __mod_gnutls_h_inc */ -- cgit