diff options
| -rw-r--r-- | include/mod_gnutls.h | 38 | ||||
| -rw-r--r-- | src/gnutls_io.c | 10 | ||||
| -rw-r--r-- | src/mod_gnutls.c | 89 |
3 files changed, 79 insertions, 58 deletions
diff --git a/include/mod_gnutls.h b/include/mod_gnutls.h index 70e641f..b1abd52 100644 --- a/include/mod_gnutls.h +++ b/include/mod_gnutls.h | |||
| @@ -40,6 +40,21 @@ module AP_MODULE_DECLARE_DATA gnutls_module; | |||
| 40 | #define GNUTLS_ENABLED_TRUE 1 | 40 | #define GNUTLS_ENABLED_TRUE 1 |
| 41 | 41 | ||
| 42 | 42 | ||
| 43 | /** | ||
| 44 | * GnuTLS changed the names of several structures between 1.0.X and 1.1.X | ||
| 45 | * This is just a simple hack so we can compile with both versions. | ||
| 46 | * There is a full list in <gnutls/compat.h>, But I am just | ||
| 47 | * doing this for a few types we use. | ||
| 48 | */ | ||
| 49 | #ifndef gnutls_certificate_credentials_t | ||
| 50 | #define gnutls_certificate_credentials_t gnutls_certificate_credentials | ||
| 51 | #define gnutls_anon_server_credentials_t gnutls_anon_server_credentials | ||
| 52 | #define gnutls_session_t gnutls_session | ||
| 53 | #define gnutls_transport_ptr_t gnutls_transport_ptr | ||
| 54 | #define gnutls_dh_params_t gnutls_dh_params | ||
| 55 | #define gnutls_rsa_params_t gnutls_rsa_params | ||
| 56 | #endif | ||
| 57 | |||
| 43 | typedef struct | Paul Querna | 2004-12-02 |
| * | input and output filters | 2004-09-28 | |
| * | rename structures. | 2004-09-27 | |
| * | break up the IO functions into their own file | 2004-09-27 | |
