aboutsummaryrefslogtreecommitdiff
path: root/src/lib/upgrade_process.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/upgrade_process.h')
-rw-r--r--src/lib/upgrade_process.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/lib/upgrade_process.h b/src/lib/upgrade_process.h
new file mode 100644
index 00000000..36a7ddff
--- /dev/null
+++ b/src/lib/upgrade_process.h
@@ -0,0 +1,44 @@
1/*
2 This file is part of libmicrohttpd
3 Copyright (C) 2007-2018 Daniel Pittman and Christian Grothoff
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18*/
19/**
20 * @file lib/upgrade_process.h
21 * @brief function to process upgrade activity (over TLS)
22 * @author Christian Grothoff
23 */
24#ifndef UPGRADE_PROCESS_H
25#define UPGRADE_PROCESS_H
26
27
28#if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT)
29/**
30 * Performs bi-directional forwarding on upgraded HTTPS connections
31 * based on the readyness state stored in the @a urh handle.
32 * @remark To be called only from thread that process
33 * connection's recv(), send() and response.
34 *
35 * @param urh handle to process
36 */
37void
38MHD_upgrade_response_handle_process_ (struct MHD_UpgradeResponseHandle *urh)
39 MHD_NONNULL(1);
40
41
42#endif
43
44#endif