From db9706d123a2d85eb6f7ec5e5e3eeea5c2968847 Mon Sep 17 00:00:00 2001 From: Edouard LEFIZELIER Date: Mon, 17 Jul 2023 09:55:29 -0400 Subject: [PATCH] stuff --- src/microhttpd/connection_https.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/microhttpd/connection_https.c b/src/microhttpd/connection_https.c index 07da32fa..4fb516d9 100644 --- a/src/microhttpd/connection_https.c +++ b/src/microhttpd/connection_https.c @@ -37,6 +37,19 @@ #include #include "mhd_send.h" +struct TLS_Plugin * +MHD_TLS_gnutls_init (void *ctx) +{ +#define GNUTLS_API(rval,fname,fargs) \ + fname = MHD_TLS_openssl_ ## fname + + static struct TLS_Plugin plugin = { + TLS_API (GNUTLS_API) + }; +#undef GNUTLS_API + return &plugin; +} + /** * Callback for receiving data from the socket.