summaryrefslogtreecommitdiff
path: root/src/libwaitress/waitress.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libwaitress/waitress.h')
-rw-r--r--src/libwaitress/waitress.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libwaitress/waitress.h b/src/libwaitress/waitress.h
index bc697e7..8d4e5a4 100644
--- a/src/libwaitress/waitress.h
+++ b/src/libwaitress/waitress.h
@@ -27,9 +27,7 @@ THE SOFTWARE.
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
-#ifdef ENABLE_TLS
#include <gnutls/gnutls.h>
-#endif
#define WAITRESS_BUFFER_SIZE 10*1024
@@ -93,19 +91,15 @@ typedef struct {
void *data;
WaitressCbReturn_t (*callback) (void *, size_t, void *);
int timeout;
-#ifdef ENABLE_TLS
gnutls_certificate_credentials_t tlsCred;
bool tlsInitialized;
-#endif
/* per-request data */
struct {
size_t contentLength, contentReceived, chunkSize;
int sockfd;
char *buf;
-#ifdef ENABLE_TLS
gnutls_session_t tlsSession;
-#endif
/* first argument is WaitressHandle_t, but that's not defined here */
WaitressHandlerReturn_t (*dataHandler) (void *, char *, const size_t);
ssize_t (*read) (void *, char *, const size_t, ssize_t *);