aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd_tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd_tls.h')
-rw-r--r--src/include/microhttpd_tls.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/include/microhttpd_tls.h b/src/include/microhttpd_tls.h
index f5b48522..7bd7d477 100644
--- a/src/include/microhttpd_tls.h
+++ b/src/include/microhttpd_tls.h
@@ -54,9 +54,9 @@ struct MHD_TLS_Plugin
54{ 54{
55 /** 55 /**
56 * Closure with plugin's internal state, opaque to MHD. 56 * Closure with plugin's internal state, opaque to MHD.
57 */ 57 */
58 void *cls; 58 void *cls;
59 59
60 /** 60 /**
61 * Destroy the plugin, we are done with it. 61 * Destroy the plugin, we are done with it.
62 */ 62 */
@@ -77,9 +77,9 @@ struct MHD_TLS_Plugin
77 */ 77 */
78 enum MHD_StatusCode 78 enum MHD_StatusCode
79 (*init_kcp)(void *cls, 79 (*init_kcp)(void *cls,
80 const char *mem_key, 80 const char *mem_key,
81 const char *mem_cert, 81 const char *mem_cert,
82 const char *pass); 82 const char *pass);
83 83
84 84
85 /** 85 /**
@@ -91,7 +91,7 @@ struct MHD_TLS_Plugin
91 */ 91 */
92 enum MHD_StatusCode 92 enum MHD_StatusCode
93 (*init_dhparams)(void *cls, 93 (*init_dhparams)(void *cls,
94 const char *dh); 94 const char *dh);
95 95
96 96
97 /** 97 /**
@@ -103,7 +103,7 @@ struct MHD_TLS_Plugin
103 */ 103 */
104 enum MHD_StatusCode 104 enum MHD_StatusCode
105 (*init_mem_trust)(void *cls, 105 (*init_mem_trust)(void *cls,
106 const char *mem_trust); 106 const char *mem_trust);
107 107
108 108
109 /** 109 /**
@@ -116,59 +116,59 @@ struct MHD_TLS_Plugin
116 */ 116 */
117 struct MHD_TLS_ConnectionState * 117 struct MHD_TLS_ConnectionState *
118 (*setup_connection)(void *cls, 118 (*setup_connection)(void *cls,
119 ...); 119 ...);
120 120
121 121
122 enum MHD_Bool 122 enum MHD_Bool
123 (*handshake)(void *cls, 123 (*handshake)(void *cls,
124 struct MHD_TLS_ConnectionState *cs); 124 struct MHD_TLS_ConnectionState *cs);
125 125
126 126
127 enum MHD_Bool 127 enum MHD_Bool
128 (*idle_ready)(void *cls, 128 (*idle_ready)(void *cls,
129 struct MHD_TLS_ConnectionState *cs); 129 struct MHD_TLS_ConnectionState *cs);
130 130
131 131
132 enum MHD_Bool 132 enum MHD_Bool
133 (*update_event_loop_info)(void *cls, 133 (*update_event_loop_info)(void *cls,
134 struct MHD_TLS_ConnectionState *cs, 134 struct MHD_TLS_ConnectionState *cs,
135 enum MHD_RequestEventLoopInfo *eli); 135 enum MHD_RequestEventLoopInfo *eli);
136 136
137 ssize_t 137 ssize_t
138 (*send)(void *cls, 138 (*send)(void *cls,
139 struct MHD_TLS_ConnectionState *cs, 139 struct MHD_TLS_ConnectionState *cs,
140 const void *buf, 140 const void *buf,
141 size_t buf_size); 141 size_t buf_size);
142 142
143 143
144 ssize_t 144 ssize_t
145 (*recv)(void *cls, 145 (*recv)(void *cls,
146 struct MHD_TLS_ConnectionState *cs, 146 struct MHD_TLS_ConnectionState *cs,
147 void *buf, 147 void *buf,
148 size_t buf_size); 148 size_t buf_size);
149 149
150 150
151 const char * 151 const char *
152 (*strerror)(void *cls, 152 (*strerror)(void *cls,
153 int ec); 153 int ec);
154 154
155 enum MHD_Bool 155 enum MHD_Bool
156 (*check_record_pending)(void *cls, 156 (*check_record_pending)(void *cls,
157 struct MHD_TLS_ConnectionState *cs); 157 struct MHD_TLS_ConnectionState *cs);
158 158
159 enum MHD_Bool 159 enum MHD_Bool
160 (*shutdown_connection) (void *cls, 160 (*shutdown_connection)(void *cls,
161 struct MHD_TLS_ConnectionState *cs); 161 struct MHD_TLS_ConnectionState *cs);
162
162 163
163
164 void 164 void
165 (*teardown_connection)(void *cls, 165 (*teardown_connection)(void *cls,
166 struct MHD_TLS_ConnectionState *cs); 166 struct MHD_TLS_ConnectionState *cs);
167 167
168 /** 168 /**
169 * TODO: More functions here.... 169 * TODO: More functions here....
170 */ 170 */
171 171
172}; 172};
173 173
174 174
@@ -191,7 +191,7 @@ typedef struct MHD_TLS_Plugin *
191 */ 191 */
192#define MHD_TLS_INIT(body) \ 192#define MHD_TLS_INIT(body) \
193 struct MHD_TLS_Plugin * \ 193 struct MHD_TLS_Plugin * \
194 MHD_TLS_init_ ## MHD_TLS_ABI_VERSION (const char *ciphers) \\ 194 MHD_TLS_init_ ## MHD_TLS_ABI_VERSION (const char *ciphers) \ \
195 { body } 195 { body }
196 196
197#endif 197#endif