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.
This commit is contained in:
2015-01-18 04:07:05 +01:00
parent 7cb6fcdaff
commit eb0f8a028c
8 changed files with 573 additions and 6 deletions

View File

@@ -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;