diff options
Diffstat (limited to 'src/include/microhttpd_tls.h')
-rw-r--r-- | src/include/microhttpd_tls.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/include/microhttpd_tls.h b/src/include/microhttpd_tls.h index 4f5b0e72..f8e5bd51 100644 --- a/src/include/microhttpd_tls.h +++ b/src/include/microhttpd_tls.h | |||
@@ -14,6 +14,12 @@ | |||
14 | 14 | ||
15 | 15 | ||
16 | /** | 16 | /** |
17 | * Data structure kept per TLS client by the plugin. | ||
18 | */ | ||
19 | struct MHD_TLS_ConnectionState; | ||
20 | |||
21 | |||
22 | /** | ||
17 | * Callback functions to use for TLS operations. | 23 | * Callback functions to use for TLS operations. |
18 | */ | 24 | */ |
19 | struct MHD_TLS_Plugin | 25 | struct MHD_TLS_Plugin |
@@ -70,7 +76,19 @@ struct MHD_TLS_Plugin | |||
70 | enum MHD_StatusCode | 76 | enum MHD_StatusCode |
71 | (*init_mem_trust)(void *cls, | 77 | (*init_mem_trust)(void *cls, |
72 | const char *mem_trust); | 78 | const char *mem_trust); |
73 | 79 | ||
80 | |||
81 | /** | ||
82 | * Function called when we receive a connection and need | ||
83 | * to initialize our TLS state for it. | ||
84 | * | ||
85 | * @param cls the @e cls of this struct | ||
86 | * @param ... TBD | ||
87 | * @return NULL on error | ||
88 | */ | ||
89 | struct MHD_TLS_ConnectionState * | ||
90 | (*setup_connection)(void *cls, | ||
91 | ...); | ||
74 | 92 | ||
75 | /** | 93 | /** |
76 | * TODO: More functions here.... | 94 | * TODO: More functions here.... |