diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-01-18 04:07:05 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-01-18 04:14:45 +0100 |
commit | eb0f8a028cf7ddb1b708ee97e6a9c777b45d4d4f (patch) | |
tree | d923be9e25130cec96209be2fb6db4668c7b16a6 /plugins/ssh.c | |
parent | 7cb6fcdaff2237cd24cf22fbc739192704838b6d (diff) | |
download | ponymap-eb0f8a028cf7ddb1b708ee97e6a9c777b45d4d4f.tar.gz ponymap-eb0f8a028cf7ddb1b708ee97e6a9c777b45d4d4f.tar.xz ponymap-eb0f8a028cf7ddb1b708ee97e6a9c777b45d4d4f.zip |
Implement a Lua 5.3 plugin loader plugin
Also implemented SOCKS detection in said language.
There are probably going to be some bugs.
The program is no longer Valgrind-clean, as that would require plugin
deinitialization, in which there is very little point.
Diffstat (limited to 'plugins/ssh.c')
-rw-r--r-- | plugins/ssh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/ssh.c b/plugins/ssh.c index 8a1cc3a..68f8d52 100644 --- a/plugins/ssh.c +++ b/plugins/ssh.c @@ -37,8 +37,10 @@ struct scan_data }; static void * -scan_init (struct unit *u) +scan_init (struct service *service, struct unit *u) { + (void) service; + struct scan_data *scan = xcalloc (1, sizeof *scan); str_init (&scan->input); scan->u = u; |