aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 861ff39f..9d50de25 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -31,6 +31,9 @@
31#include "microhttpd.h" 31#include "microhttpd.h"
32#if HTTPS_SUPPORT 32#if HTTPS_SUPPORT
33#include <gnutls/gnutls.h> 33#include <gnutls/gnutls.h>
34#if GNUTLS_VERSION_MAJOR >= 3
35#include <gnutls/abstract.h>
36#endif
34#endif 37#endif
35#if EPOLL_SUPPORT 38#if EPOLL_SUPPORT
36#include <sys/epoll.h> 39#include <sys/epoll.h>
@@ -1161,6 +1164,14 @@ struct MHD_Daemon
1161 */ 1164 */
1162 gnutls_dh_params_t dh_params; 1165 gnutls_dh_params_t dh_params;
1163 1166
1167#if GNUTLS_VERSION_MAJOR >= 3
1168 /**
1169 * Function that can be used to obtain the certificate. Needed
1170 * for SNI support. See #MHD_OPTION_HTTPS_CERT_CALLBACK.
1171 */
1172 gnutls_certificate_retrieve_function2 *cert_callback;
1173#endif
1174
1164 /** 1175 /**
1165 * Pointer to our SSL/TLS key (in ASCII) in memory. 1176 * Pointer to our SSL/TLS key (in ASCII) in memory.
1166 */ 1177 */