From a5fa8a08ef2cf017444cfa476cb3d932c1f6ba74 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 17 Feb 2018 04:02:42 +0100 Subject: more work on connnection_call_handlers.c --- src/gnutls/handshake.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/gnutls/handshake.c (limited to 'src/gnutls') diff --git a/src/gnutls/handshake.c b/src/gnutls/handshake.c new file mode 100644 index 00000000..259056df --- /dev/null +++ b/src/gnutls/handshake.c @@ -0,0 +1,15 @@ + enum MHD_Bool + (*handshake)(void *cls, + struct MHD_TLS_ConnectionState *cs): + + + + if (MHD_TLS_CONN_NO_TLS != connection->tls_state) + { /* HTTPS connection. */ + if (MHD_TLS_CONN_CONNECTED > connection->tls_state) + { + if (! MHD_run_tls_handshake_ (connection)) + return MHD_FALSE; + } + } + return MHD_TRUE; -- cgit v1.2.3