comparison session.h @ 1654:cc0fc5131c5c

Rename EPKA -> Plugin
author Matt Johnston <matt@ucc.asn.au>
date Wed, 15 May 2019 21:59:45 +0800
parents 76189c9ffea2
children 3a97f14c0235 ba6fc7afe1c5
comparison
equal deleted inserted replaced
1653:76189c9ffea2 1654:cc0fc5131c5c
36 #include "packet.h" 36 #include "packet.h"
37 #include "tcpfwd.h" 37 #include "tcpfwd.h"
38 #include "chansession.h" 38 #include "chansession.h"
39 #include "dbutil.h" 39 #include "dbutil.h"
40 #include "netio.h" 40 #include "netio.h"
41 #if DROPBEAR_EPKA 41 #if DROPBEAR_PLUGIN
42 #include "pubkeyapi.h" 42 #include "pubkeyapi.h"
43 #endif 43 #endif
44 44
45 void common_session_init(int sock_in, int sock_out); 45 void common_session_init(int sock_in, int sock_out);
46 void session_loop(void(*loophandler)(void)) ATTRIB_NORETURN; 46 void session_loop(void(*loophandler)(void)) ATTRIB_NORETURN;
218 /* this is set when we get SIGINT or SIGTERM, the handler is in main.c */ 218 /* this is set when we get SIGINT or SIGTERM, the handler is in main.c */
219 volatile int exitflag; 219 volatile int exitflag;
220 /* set once the ses structure (and cli_ses/svr_ses) have been populated to their initial state */ 220 /* set once the ses structure (and cli_ses/svr_ses) have been populated to their initial state */
221 int init_done; 221 int init_done;
222 222
223 #if DROPBEAR_EPKA 223 #if DROPBEAR_PLUGIN
224 struct EPKASession * epka_session; 224 struct PluginSession * plugin_session;
225 #endif 225 #endif
226 }; 226 };
227 227
228 struct serversession { 228 struct serversession {
229 229
246 246
247 #if DROPBEAR_VFORK 247 #if DROPBEAR_VFORK
248 pid_t server_pid; 248 pid_t server_pid;
249 #endif 249 #endif
250 250
251 #if DROPBEAR_EPKA 251 #if DROPBEAR_PLUGIN
252 /* The shared library handle */ 252 /* The shared library handle */
253 void *epka_plugin_handle; 253 void *plugin_handle;
254 254
255 /* The instance created by the plugin_new function */ 255 /* The instance created by the plugin_new function */
256 struct EPKAInstance *epka_instance; 256 struct PluginInstance *plugin_instance;
257 #endif 257 #endif
258 258
259 }; 259 };
260 260
261 typedef enum { 261 typedef enum {