aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/internal.h')
-rw-r--r--src/daemon/internal.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/daemon/internal.h b/src/daemon/internal.h
index 37075bc0..1084de08 100644
--- a/src/daemon/internal.h
+++ b/src/daemon/internal.h
@@ -35,6 +35,7 @@
35#include <errno.h> 35#include <errno.h>
36#include <fcntl.h> 36#include <fcntl.h>
37#include <signal.h> 37#include <signal.h>
38#include <gnutls/gnutls.h>
38 39
39#include "config.h" 40#include "config.h"
40#include "plibc.h" 41#include "plibc.h"
@@ -58,6 +59,9 @@
58 */ 59 */
59#define MHD_BUF_INC_SIZE 2048 60#define MHD_BUF_INC_SIZE 2048
60 61
62/* TLS Diffie-Hellman parameter */
63#define DH_BITS 1024
64
61#if HAVE_MESSAGES 65#if HAVE_MESSAGES
62/** 66/**
63 * fprintf-like helper function for logging debug 67 * fprintf-like helper function for logging debug
@@ -606,6 +610,22 @@ struct MHD_Daemon
606 */ 610 */
607 unsigned short port; 611 unsigned short port;
608 612
613 /* server credintials */
614 gnutls_certificate_credentials_t x509_cret;
615
616 /* cipher priority cache */
617 gnutls_priority_t priority_cache;
618
619 /* Diffie-Hellman parameters */
620 gnutls_dh_params_t dh_params;
621
622 // TODO consider switching to variadic length paths
623 /* server root path used while serving http pages */
624 char doc_root[255];
625
626 char https_key_path[255];
627
628 char https_cert_path[255];
609}; 629};
610 630
611#endif 631#endif