aboutsummaryrefslogtreecommitdiff
path: root/src/gnutls
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-02-17 04:02:42 +0100
committerChristian Grothoff <christian@grothoff.org>2018-02-17 04:02:42 +0100
commita5fa8a08ef2cf017444cfa476cb3d932c1f6ba74 (patch)
treeeea7f8d5d151b8e5113b93890a597de60e5b4c48 /src/gnutls
parentc0ac86b069fac3460fd2e4c7997245c5a1281536 (diff)
downloadlibmicrohttpd-a5fa8a08ef2cf017444cfa476cb3d932c1f6ba74.tar.gz
libmicrohttpd-a5fa8a08ef2cf017444cfa476cb3d932c1f6ba74.zip
more work on connnection_call_handlers.c
Diffstat (limited to 'src/gnutls')
-rw-r--r--src/gnutls/handshake.c15
1 files changed, 15 insertions, 0 deletions
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 @@
1 enum MHD_Bool
2 (*handshake)(void *cls,
3 struct MHD_TLS_ConnectionState *cs):
4
5
6
7 if (MHD_TLS_CONN_NO_TLS != connection->tls_state)
8 { /* HTTPS connection. */
9 if (MHD_TLS_CONN_CONNECTED > connection->tls_state)
10 {
11 if (! MHD_run_tls_handshake_ (connection))
12 return MHD_FALSE;
13 }
14 }
15 return MHD_TRUE;