Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add directly single tags to nvti. #385

Merged
merged 3 commits into from
Sep 9, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions misc/plugutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,6 @@ plug_current_vhost (void)

static int plug_fork_child (kb_t);

void
plug_set_tag (struct script_infos *args, char *name, char *value)
{
nvti_t *n = args->nvti;
char *new;

if (nvti_tag (n))
new = g_strconcat (nvti_tag (n), "|", name, "=", value, NULL);
else
new = g_strconcat (name, "=", value, NULL);

nvti_set_tag (n, new);
g_free (new);
}

void
plug_set_dep (struct script_infos *args, const char *depname)
{
Expand Down
3 changes: 0 additions & 3 deletions misc/plugutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ scanner_add_port (struct script_infos *, int, char *);
void
plug_set_dep (struct script_infos *, const char *);

void
plug_set_tag (struct script_infos *, char *, char *);

void
plug_set_ssl_cert (struct script_infos *, char *);

Expand Down
2 changes: 1 addition & 1 deletion nasl/nasl_scanner_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ script_tag (lex_ctxt *lexic)
nasl_perror (lexic, "%s tag contains | separator", name);
return FAKE_CELL;
}
plug_set_tag (script_infos, name, value);
nvti_add_tag (script_infos->nvti, name, value);

return FAKE_CELL;
}
Expand Down