aboutsummaryrefslogtreecommitdiff
path: root/src/gnutls
diff options
context:
space:
mode:
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;