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

Fix: script_mandatory_keys usage #1067

Merged
merged 1 commit into from
Mar 23, 2022
Merged
Changes from all 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
10 changes: 6 additions & 4 deletions nasl/nasl_scanner_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ script_require_keys (lex_ctxt *lexic)
if (keys == NULL)
{
nasl_perror (lexic, "Argument error in function script_require_keys()\n");
nasl_perror (lexic, "Function usage is : script_require_keys(<name>)\n");
nasl_perror (lexic,
"Function usage is : script_require_keys(<name>...)\n");
nasl_perror (lexic, "Where <name> is the name of a key\n");
return FAKE_CELL;
}
Expand All @@ -379,9 +380,10 @@ script_mandatory_keys (lex_ctxt *lexic)
{
nasl_perror (lexic,
"Argument error in function script_mandatory_keys()\n");
nasl_perror (lexic,
"Function usage is : script_mandatory_keys(<name>)\n");
nasl_perror (lexic, "Where <name> is the name of a key\n");
nasl_perror (lexic, "Function usage is: script_mandatory_keys(<name>... "
"[, re: '<name>=<regex>'])\n");
nasl_perror (lexic, "Where <name> is the name of a key and <regex> is a "
"regular expression for a value of a key.\n");
return FAKE_CELL;
}

Expand Down