2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
25#if !defined(__LWS_PLUGIN_SSH_H__)
26#define __LWS_PLUGIN_SSH_H__
28#define LWS_CALLBACK_SSH_UART_SET_RXFLOW (LWS_CALLBACK_USER + 800
)
30#define LWS_SSH_OPS_VERSION 2
42#define SSHMO_TTY_OP_END 0
59#define SSHMO_VDSUSP 11
60#define SSHMO_VREPRINT 12
61#define SSHMO_VWERASE 13
62#define SSHMO_VLNEXT 14
64#define SSHMO_VFLUSH 15
65#define SSHMO_VSWTCH 16
66#define SSHMO_VSTATUS 17
68#define SSHMO_VDISCARD 18
69#define SSHMO_IGNPAR 30
72#define SSHMO_PARMRK 31
74#define SSHMO_ISTRIP 33
82#define SSHMO_IMAXBEL 41
84#define SSHMO_ICANON 51
91#define SSHMO_ECHONL 56
92#define SSHMO_NOFLSH 57
93#define SSHMO_TOSTOP 58
94#define SSHMO_IEXTEN 59
95#define SSHMO_ECHOCTL 60
96#define SSHMO_ECHOKE 61
97#define SSHMO_PENDIN 62
100#define SSHMO_ONLCR 72
101#define SSHMO_OCRNL 73
102#define SSHMO_ONOCR 74
103#define SSHMO_ONLRET 75
106#define SSHMO_PARENB 92
107#define SSHMO_PARODD 93
108#define SSHMO_TTY_OP_ISPEED 128
109
110#define SSHMO_TTY_OP_OSPEED 129
111
114
115
116
117
118
120
122
123
124
125
126
127
128
129
130
133typedef void (*lws_ssh_finish_exec)(
void *handle,
int retcode);
138
139
140
141
142
143
144
145
146
148
149
150
154
155
156
157
158
160
161 int (*channel_destroy)(
void *priv);
164
165
166
167
168
169
170
171
172
173 int (*rx)(
void *priv,
struct lws *wsi,
const uint8_t *buf, uint32_t len);
176
177
178
179
180
181
182
183
184
185
186
187
188 int (*tx_waiting)(
void *priv);
191
193
194
195
196
197
198
199
200
201
202
203
204
205
209
210
211
212
213
214
215
216
217
219
223
224
225
226
227
228
230
231
235
236
237
238
239
240
241
243 int (*set_env)(
void *priv,
const char *name,
const char *value);
246
247
248
249
250
251
252
253
254
256 int (*exec)(
void *priv,
struct lws *wsi,
const char *command, lws_ssh_finish_exec finish,
void *finish_handle);
259
260
261
262
263
264
266
267
268
269 int (*shell)(
void *priv,
struct lws *wsi, lws_ssh_finish_exec finish,
void *finish_handle);
272
273
274
275
277
278
279 int (*pty_req)(
void *priv,
struct lws_ssh_pty *pty);
282
283
284
285
286
288
289
294
295
296
297
298
300
301 int (*child_process_terminated)(
void *priv,
struct lws *wsi);
304
305
306
307
308
309
310
311
312
313 void (*disconnect_reason)(uint32_t reason,
const char *desc,
314 const char *desc_lang);
317
319
320
321
322
323
324
325
326
327
328
329
330
331
332 int (*is_pubkey_authorized)(
const char *username,
333 const char *type,
const uint8_t *peer,
int peer_len);
336
337
339
340
341
342
343
344
346
347
348
349
350
351
356
357
358
359 const char *server_string;
362
363
364
365
366
367
size_t(* get_server_key)(struct lws *wsi, uint8_t *buf, size_t len)