-
Notifications
You must be signed in to change notification settings - Fork 153
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: functions to handle an Openvasd scan task #2262
base: main
Are you sure you want to change the base?
Conversation
Conventional Commits Report
🚀 Conventional commits found. |
Depends on greenbone/gvm-libs#826 |
3fe6dfa
to
ed0b115
Compare
Depends on #2169 |
a19d368
to
d5d1f2a
Compare
ff7a256
to
0e31fee
Compare
src/manage_sql_nvts.c
Outdated
@@ -2571,8 +3166,27 @@ manage_sync_nvts (int (*fork_update_nvt_cache) (pid_t*)) | |||
int | |||
update_or_rebuild_nvts (int update) | |||
{ | |||
gchar *db_feed_version, *scanner_feed_version; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gchar *db_feed_version, *scanner_feed_version; | |
gchar *db_feed_version, *scanner_feed_version; |
@@ -20074,14 +20079,17 @@ nvt_severity (const char *nvt_id, const char *type) | |||
{ | |||
char *severity = NULL; | |||
|
|||
if (strcasecmp (type, "Alarm") == 0 && nvt_id) | |||
if ((strcasecmp (type, "alarm") == 0 || strcasecmp (type, "Alarm") == 0) && nvt_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just browsing through and this looks weird, because strcasecmp ignores case.
2d1bbea
to
9343d96
Compare
0097281
to
f45fb9a
Compare
What
Add: functions to handle an Openvasd scan task
SC-1056
SC-1053
SC-1058
SC-1057
SC-1060
Why
Required for handling scans via openvasd
References
Checklist