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

Enable using saved filters for TLS Certificates #750

Merged
merged 3 commits into from
Sep 16, 2019
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]

### Added
- Added TLS certificates as a new resource type [#585](https://github.com/greenbone/gvmd/pull/585) [#663](https://github.com/greenbone/gvmd/pull/663) [#673](https://github.com/greenbone/gvmd/pull/673) [#695](https://github.com/greenbone/gvmd/pull/695) [#703](https://github.com/greenbone/gvmd/pull/703) [#728](https://github.com/greenbone/gvmd/pull/728) [#732](https://github.com/greenbone/gvmd/pull/732)
- Added TLS certificates as a new resource type [#585](https://github.com/greenbone/gvmd/pull/585) [#663](https://github.com/greenbone/gvmd/pull/663) [#673](https://github.com/greenbone/gvmd/pull/673) [#695](https://github.com/greenbone/gvmd/pull/695) [#703](https://github.com/greenbone/gvmd/pull/703) [#728](https://github.com/greenbone/gvmd/pull/728) [#732](https://github.com/greenbone/gvmd/pull/732) [#750](https://github.com/greenbone/gvmd/pull/750)
- Update NVTs via OSP [#392](https://github.com/greenbone/gvmd/pull/392) [#609](https://github.com/greenbone/gvmd/pull/609) [#626](https://github.com/greenbone/gvmd/pull/626)
- Handle addition of ID to NVT preferences. [#413](https://github.com/greenbone/gvmd/pull/413)
- Add setting 'OMP Slave Check Period' [#491](https://github.com/greenbone/gvmd/pull/491)
Expand Down
5 changes: 5 additions & 0 deletions src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -4350,6 +4350,7 @@ valid_type (const char* type)
|| (strcasecmp (type, "target") == 0)
|| (strcasecmp (type, "task") == 0)
|| (strcasecmp (type, "ticket") == 0)
|| (strcasecmp (type, "tls_certificate") == 0)
|| (strcasecmp (type, "user") == 0)
|| (strcasecmp (type, "vuln") == 0);
}
Expand Down Expand Up @@ -4410,6 +4411,8 @@ type_db_name (const char* type)
return "task";
if (strcasecmp (type, "Ticket") == 0)
return "ticket";
if (strcasecmp (type, "TLS Certificate") == 0)
return "tls_certificate";
if (strcasecmp (type, "SecInfo") == 0)
return "info";
return NULL;
Expand Down Expand Up @@ -58895,6 +58898,8 @@ modify_setting (const gchar *uuid, const gchar *name,
setting_name = g_strdup ("Tasks Filter");
else if (strcmp (uuid, "801544de-f06d-4377-bb77-bbb23369bad4") == 0)
setting_name = g_strdup ("Tickets Filter");
else if (strcmp (uuid, "34a176c1-0278-4c29-b84d-3d72117b2169") == 0)
setting_name = g_strdup ("TLS Certificates Filter");
else if (strcmp (uuid, "a33635be-7263-4549-bd80-c04d2dba89b4") == 0)
setting_name = g_strdup ("Users Filter");
else if (strcmp (uuid, "17c9d269-95e7-4bfa-b1b2-bc106a2175c7") == 0)
Expand Down