SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 
Changelog for openvas-manager-4.0.2-3.4.i586.rpm :
Sat Jul 27 14:00:00 2013 arxboxAATTarxcorp.com
- changed debian.compat file - it was empty and added 6. This will
allow it to complete the packaging process successfully on debian
based systems.

Mon Jul 8 14:00:00 2013 johann.luceAATTwanadoo.fr
- Update in 4.0.2
Backport for r16811. Patch by Hani Benhabiles.

* src/manage_sql.c (validate_results_port): Also try to validate results
in old format \"foo (123/bar)\"
Backport for r16224. Patch by Hani Benhabiles.

* src/manage.c (get_nvti_xml): Escape xrefs too as characters like
ampersand may be included in URLs.

* src/manage_sql.c (print_report_xml): Initialize result_count value.
Backport for r16657. Patch by Hani Benhabiles.

* src/manage_sql.c (validate_results_port): New function.
(create_note, modify_note, create_override, modify_override): Validate
port value.

* src/omp.c (omp_xml_handle_end_element): Handle invalid port case for
create_note, create_override, modify_note, modify_override calls.
Backport for r16196. Patch by Timo Pollmeier.

* src/omp.c (xml_handle_end_element): In case CLIENT_CREATE_CONFIG
check if copy parameter is NULL before calculating its string length.
Backport for r16653. Patch by Hani Benhabiles.

* src/manage_sql.c (where_search_phrase): Apply search on nvt cve value
too.
Backport for r16636. Patch by Hani Benhabiles.

* src/manage_sql.c (where_search_phrase): Apply search phrase matching
based on nvt tags content too.
Backport r16612.

* src/manage_sql.c (note_count, init_note_iterator, override_count)
(init_override_iterator): Use the task in the results table, instead of
looking up the task via the report. This drastically improves
performance of GET_NOTES when given a task, which was making the GSA Task
Details page load very slowly for big databases.
Post release version bump.
- Update 4.0.1

* CHANGES: Updated.
Revert Backport for r16518 as it affects values from report results page
and old results.
Backport for r16518. Patch by Hani Benhabiles.

* src/manage_sql.c (create_note, modify_note, create_override)
(modify_override): Validate port before writing in DB. Return adequate
error code when validation fails.

* src/omp.c (omp_xml_handle_end_element): Adequately Handle new return
codes for invalid port in create_note, create_override, modify_note and
modify_override.
Backport r16556.

* src/manage.c (run_slave_task): Give up if connection succeeds but
login fails.

* src/manage_sql.c (copy_task): Copy observers too.
Backport from r16547.

* src/manage_sql.c (copy_task): Copy alerts too.
Post release version bump.

Tue Apr 23 14:00:00 2013 johann.luceAATTwanadoo.fr
- Add openvas-certdata-sync to openvas-setup

Mon Apr 22 14:00:00 2013 johann.luceAATTwanadoo.fr
- Add openvas-scapdata-sync to openvas-setup

Mon Apr 22 14:00:00 2013 johann.luceAATTwanadoo.fr
- Add file openvas-setup for initial startup
fix duplicate files
fix liscence problem

Thu Apr 18 14:00:00 2013 johann.luceAATTwanadoo.fr
- Update in 4.0.0
+2013-04-17 Timo Pollmeier

* src/sql.c (sql_resource_exists, sql_resource_name): Change SQL
function to return null when at least one of the parameters is null
instead of treating it as an error, which caused problems with empty
tables.
2013-04-16 Timo Pollmeier

* src/manage.c (parse_tags): Change comment to \"Scanner Tags\".
(valid_db_resource_type): New function to test if a string is a valid
resource type.

* src/manage.h (tag_iterator_attach_name, tag_iterator_orphaned): New
iterator function prototypes.
(valid_db_resource_type): New function prototype.

* src/manage_sql.c (init_manage_process): Add creation of SQLite
functions resource_exists, resource_name.
(TAG_ITERATOR_FILTER_COLUMNS, TAG_ITERATOR_COLUMNS): Add columns
\"orphaned\" and \"attach_name\".
(tag_iterator_orphaned, tag_iterator_attach_name): New iterator
functions.

* src/omp.c (omp_xml_handle_end_element): In case CLIENT_GET_TAGS,
add \"name\" element to \"attach\", add \"orphaned\" element to \"tag\" to
response.
In case CLIENT_CREATE_TAG, remove a superfluous whitespace.
In cases CLIENT_CREATE_TAG, CLIENT_MODIFY_TAG add validation of
attach_type using valid_db_resource_type.

* src/sql.c (sql_resource_exists): New SQLite function to test if a
resource of arbitrary type exists.
(sql_resource_name): New SQLite function to get the name of a resource
or construct one from various info.

* src/sql.h (sql_resource_exists, sql_resource_name): New SQLite
function prototypes.

* src/schema_formats/XML/OMP.xml (get_tags): Add response elements
attach/name and orphaned and update example to include these.

* doc/omp.html, doc/omp.rnc: Update from source.
2013-04-15 Timo Pollmeier

* src/manage_sql.c (valid_type, type_pretty_name, type_db_name):
Add new resource type \"Tag\" for filters.
2013-04-11 Matthew Mundell

* src/omp.c (modify_task_data_t, modify_task_data_reset)
(client_state_t): Add target_id and config_id entries.
(omp_xml_handle_start_element, omp_xml_handle_end_element): Allow config
and target editing in MODIFY_TASK when the task status is New.
2013-04-11 Matthew Mundell

* src/schema_formats/XML/OMP.xml (delete_user): Add user_id and ultimate
attribs.
(get_users): Add user_id attrib. Add USER/AATTid to response.

* doc/omp.html, doc/omp.rnc: Update from source.
2013-04-11 Timo Pollmeier

* src/manage.h (copy_tag): New function prototype.

* src/manage_sql.c (copy_tag): New function to create copies of existing
tags.

* src/omp.c (create_tag_data_t, create_tag_data_reset): Add field
\"copy\".
(client_state_t): Add new state CLIENT_CREATE_TAG_COPY.
(omp_xml_handle_start_element, omp_xml_handle_end_element)
(omp_xml_handle_text): Add handling of new create_tag subelement \"copy\".

* src/schema_formats/XML/OMP.xml, doc/omp.html, doc/omp.rnc
(create_tag): Add optional subelement \"copy\" to command.
2013-04-11 Timo Pollmeier

* src/manage_sql.c (manage_empty_trashcan): Also clear tags_trash
table when trashcan is emptied.
2013-04-11 Matthew Mundell

* src/schema_formats/XML/OMP.xml (create_user, delete_user)
(describe_auth, get_users, modify_auth, modify_user): New commands.
From OAP schema in Administrator.
(help): Update to match help text.

* doc/omp.html, doc/omp.rnc: Update from source.
2013-04-11 Matthew Mundell

* src/schema_formats/XML/OMP.xml (create_user, delete_user)
(describe_auth, get_users, modify_auth, modify_user): New commands.
From OAP schema in Administrator.
(help): Update to match help text.

* doc/omp.html, doc/omp.rnc: Update from source.
2013-04-11 Timo Pollmeier

* src/manage_sql.c (modify_tag): Fix \"value\" parameter changing
name instead of value.
2013-04-10 Matthew Mundell

* src/omp.c (omp_xml_handle_end_element): In CLIENT_MODIFY_AUTH align
comment and remove FIX that was already covered.
2013-04-10 Matthew Mundell
Cleanup the MODIFY_AUTH implementation.

* src/omp.c (modify_auth_data_t, modify_auth_data_reset): Remove
curr_group_name.
(omp_xml_handle_start_element): Remove MODIFY_AUTH doc, this will be in
the OMP doc. Remove TODO, this is a general feature that applies to all
commands. Reformat CLIENT_MODIFY_AUTH to match others, using
ELSE_ERROR. In CLIENT_MODIFY_AUTH allocate the group instead of storing
the name separately. Remove FIX on
CLIENT_MODIFY_AUTH_GROUP_AUTHCONFSETTING because it\'s basically what the
the others do.
(omp_xml_handle_end_element): In CLIENT_MODIFY_AUTH add group name check
and move key_file declaration to top of block. In
CLIENT_MODIFY_AUTH_GROUP just add the settings, and leave the name
checking to the end handler.
2013-04-10 Jan-Oliver Wagner

* INSTALL: Adjusted formatting.

* tools/openvas-portnames-update.in: Use cmake variable instead of
fixed path to allow individual installation prefix.
Also added output of number of processed items.
2013-04-10 Timo Pollmeier

* src/manage_sql.c (manage_set_setting): Add Tags Filter.

* src/omp.c (omp_xml_handle_end_element): In case CLIENT_GET_TAGS,
add support for default filter (filt_id = -2) and ensure that generation
of normal response is only run if iterator is created correctly.
2013-04-10 Hani Benhabiles

* src/manage_sql.c: Remove make_port_names prototype.
(init_manage): Don\'t check and update port_names as it is done
externally now.

* src/manage_port_names.c: Remove file as it is not needed anymore.

* CMakeLists.txt: Remove reference to manage_port_names.c

* INSTALL: Update for steps to import port names from IANA service names
list.
2013-04-10 Matthew Mundell
Add MODIFY_AUTH to OMP. This is a direct copy from OAP in Administrator
with some slight changes to fit in Manager, mostly formatting.

* src/omp.c (auth_conf_setting_t): New type.
(auth_conf_setting_from_xml): New function.
(omp_commands): Add MODIFY_AUTH.
(auth_group_t, modify_auth_data_t): New types.
(modify_auth_data_reset): New function.
(command_data_t, client_state_t): Add MODIFY_AUTH entries.
(modify_auth_data): New variable.
(omp_xml_handle_start_element, omp_xml_handle_end_element): Add
MODIFY_AUTH handling.
2013-04-10 Timo Pollmeier

* src/manage.h (tag_in_use, trash_tag_in_use, tag_writable)
(trash_tag_writable): New function prototypes.

* src/manage_sql.c (tag_in_use, trash_tag_in_use): New functions
for compatibility with SEND_GET_COMMON macro.
(tag_writable, trash_tag_writable): New functions for compatibility with
SEND_GET_COMMON macro.

* src/omp.c (omp_xml_handle_end_element): In case CLIENT_GET_TAGS,
change to use SEND_GET_COMMON macro instead of send_get_common function.
2013-04-10 Timo Pollmeier

* src/omp.c (create_tag_data_t, modify_tag_data_t): Add attach_count.
Add missing periods in comment.
(omp_xml_handle_start_element): In cases CLIENT_MODIFY_TAG,
CLIENT_CREATE_TAG add incrementation of attach_count.
(omp_xml_handle_end_element): In case CLIENT_GET_TAGS fix indentation,
change to use send_get_common for common get elements.
In case CLIENT_DELETE_TAG, fix parameters of send_find_error_to_client.
In cases CLIENT_MODIFY_TAG, CLIENT_CREATE_TAG add new checks for attach
subelement and clarify error messages.
In cases CLIENT_MODIFY_TAG_ATTACH, CLIENT_CREATE_TAG_ATTACH remove value
checks, now handled by CLIENT_MODIFY_TAG and CLIENT_CREATE_TAG.

* src/schema_formats/XML/OMP.xml, doc/omp.html, doc/omp.rnc (get_tags):
Add writable and in_use elements in response.
2013-04-10 Hani Benhabiles

* src/omp.c (omp_xml_handle_end_element): Order iteration over families
descendingly in CLIENT_GET_CONFIGS case.
2013-04-10 Timo Pollmeier

* src/manage_sql.c (create_tables, create_tables_version_4): Reformat
SQL queries so lines are 80 or less characters long.
Move tag-related queries so they fit into the alphabetical order.
2013-04-09 Matthew Mundell

* src/manage_sql.c (create_schedule): Neaten formatting.
(create_tag, modify_tag): Format overhangs of ternaries like others.
2013-04-09 Matthew Mundell

* src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_USERS free uuid
from openvas_user_uuid.
2013-04-09 Matthew Mundell

* src/manage_sql.c (openvas_admin_modify_user): Leave groups alone if
groups arg is NULL. If setting groups then clear before, otherwise the
old groups may remain.

* src/omp.c (omp_xml_handle_start_element): Init the MODIFY_USER groups
array only when a GROUPS element is given, so that the client has a way
to preserve the existing groups.
2013-04-09 Matthew Mundell

* src/omp.c (omp_xml_handle_end_element): Use CLOSE for MODIFY_USER
states.
2013-04-09 Matthew Mundell

* src/omp.c (omp_xml_handle_end_element): In CLIENT_CREATE_USER correct
log message, and add logs to all cases.
2013-04-09 Matthew Mundell

* src/manage_sql.c (openvas_admin_add_user): Add args for groups.

* src/omp.c (modify_user_data_t, client_state_t): Add groups entries.
(modify_user_data_reset): Free groups
(omp_xml_handle_start_element, omp_xml_handle_end_element): Add GROUPS
to MODIFY_USER.

* src/manage.h: Update header accordingly.
2013-04-09 Timo Pollmeier

* src/manage_sql.c (create_schedule): Clean up spacing and
braces/indentation.
2013-04-09 Timo Pollmeier

* src/manage_sql.c (create_schedule): Fix timezone default overwriting
existing value. Remove superfluous \"!= 0\" and braces.
2013-04-09 Timo Pollmeier

* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Set to 78.

* src/manage_sql.c (migrate_77_to_78): New function. Change duration
and period of schedules to 0 if they were -1.
(database_migrators): Add migrate_77_to_78.

* src/omp.c (omp_xml_handle_end_element): In cases
CLIENT_CREATE_SCHEDULE and CLIENT_MODIFY_SCHEDULE set period and
duration to 0 instead of -1 if they are not specified.
2013-04-09 Timo Pollmeier

* src/html/XML/OMP.xml, doc/omp.html, doc/omp.rnc (create_schedule): Add
timezone element. Mark all elements other than name as optional to make
consistent with actual behavior.
2013-04-09 Timo Pollmeier

* src/manage.h, src/manage_sql.c (create_schedule): Add timezone
parameter.

* src/omp.c (create_schedule_data_t, create_schedule_data_reset): Add
timezone.
(client_state_t): New state CLIENT_CREATE_SCHEDULE_TIMEZONE.
(omp_xml_handle_start_element, omp_xml_handle_end_element)
(omp_xml_handle_text): Add timezone element to create_schedule.
2013-04-08 Timo Pollmeier
Add tag management OMP commands (create_tag, delete_tag, get_tags,
modify_tag).

* src/manage.h (tag_t): New typedef.
(tag_uuid, create_tag, delete_tag, find_tag, modify_tag)
(init_tag_iterator, tag_count, tag_iterator_attach_type)
(tag_iterator_attach_id, tag_iterator_active, tag_iterator_active)
(tag_iterator_value): New function prototypes. See manage_sql.c.

* src/manage_sql.c (create_tables): Add definition of tables \"tags\" and
\"tags_trash\" as well as indexes.
(tag_uuid): New function, gets the UUID of a tag.
(manage_restore): Add restore of tags in trashcan.
(create_tag, delete_tag, find_tag, modify_tag): New functions for tag
management.
(TAG_ITERATOR_FILTER_COLUMNS, TAG_ITERATOR_COLUMNS)
(TAG_ITERATOR_TRASH_COLUMNS): New #defines for tag iterator columns.
(init_tag_iterator, tag_count, tag_iterator_attach_type)
(tag_iterator_attach_id, tag_iterator_active, tag_iterator_active)
(tag_iterator_value): New iterator functions for tags.

* src/omp.c (omp_commands): Add help text for new tag commands.
(create_tag_data_t, delete_tag_data_t, get_tags_data_t)
(modify_tag_data_t): New structs for command data of tag commands.
(create_tag_data_reset, delete_tag_data_reset, get_tags_data_reset)
(modify_tag_data_reset): New functions that reset tag command data.
(command_data_t): Add new command data types.
(create_tag_data, delete_tag_data, get_tags_data, modify_tag_data): New
variables for tag command data.
(client_state_t): Add new tag command client states.
(omp_xml_handle_start_element, omp_xml_handle_end_element)
(omp_xml_handle_text): Add handling of tag-related XML elements.

* src/schema_formats/XML/OMP.xml, doc/omp.html, doc/omp.rnc: Add
documentation of new commands (create_tag, delete_tag, get_tags,
modify_tag).
2013-04-08 Hani Benhabiles
Add script to update DB port names data from a port names xml file list.
Currently supports IANA service names official list.

* tools/openvas-portnames-update.in: New script to update

* tools/portnames_update.xsl: New template to generate SQL queries for
DB port names data creation.

* CMakeLists.txt: Install tools/portnames_update.xsl and
tools/openvas-portnames-update files.
2013-04-08 Matthew Mundell

* src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_SCHEDULES use
\"UTC\" when the timezone is NULL, else \"(null)\" ends up in the response.
2013-04-07 Jan-Oliver Wagner

* src/manage_sql.c (setup_full_config_prefs): Remove handling
of \"silent_dependencies\".
2013-04-05 Hani Benhabiles

* src/manage_config_discovery.c (make_config_discovery): Remove tcp
timestamps from default discovery config scan as it has a cvss > 0.0.
2013-04-04 Matthew Mundell

* src/manage_sql.c (set_task_observers, group_add_users): Free
openvas_user_uuid return.
2013-04-04 Matthew Mundell

* src/manage_sql.c (copy_user): Add NULL check on role for now, to keep
it working.
2013-04-04 Hani Benhabiles
Add port_names to resolve Network services names and load content from
official IANA list.

* src/manage_port_names.c: New file.

* src/CMakeLists.txt: Add manage_port_names.c.

* src/manage_sql.c: Declare make_port_names prototype.
(create_tables): Create port_names table.
(manage_port_name): Return service name value from port_names table.
(init_manage): Call make_port_names if port_names table has few entries.
2013-04-03 Matthew Mundell
Add name attribute to DELETE_USER, to be compatible with Administrator.

* src/manage_sql.c (delete_user): Add name arg. Delete by name if given
user ID is NULL.

* src/manage.h: Update header accordingly.

* src/omp.c (delete_user_data_t, delete_user_data_reset): Add name.
(omp_xml_handle_start_element): Parse DELETE_USER name attribute.
(omp_xml_handle_end_element): In CLIENT_DELETE_USER pass name to delete
function.
2013-04-03 Matthew Mundell

* src/otp.c (process_otp_scanner_input): Get the length for g_convert
with strlen, because the strip and compress functions can change the
string length. Thanks to Rodolfo Gouveia and Stefan Sperling for
spotting this.
2013-04-03 Werner Koch

* src/ompd.c (serve_omp): Check for pending TLS records before the
main select.
2013-04-03 Matthew Mundell
Add MODIFY_USER to OMP. This is a direct copy from OAP in Administrator
with some slight changes to fit in Manager, mostly formatting.

* src/manage_sql.c (openvas_admin_modify_user): New function. From
Administrator.

* src/manage.h: Add header accordingly.

* src/omp.c (omp_commands, command_data_t, client_state_t): Add
MODIFY_USER entries.
(modify_user_data_t): New type.
(modify_user_data_reset): New function.
(modify_user_data): New variable.
(omp_xml_handle_start_element, omp_xml_handle_end_element)
(omp_xml_handle_text): Handle MODIFY_USER.
2013-04-03 Hani Benhabiles

* src/otp.c (process_otp_scanner_input): In SCANNER_HOLE_NUMBER,
SCANNER_INFO_NUMBER, SCANNER_NOTE_NUMBER, SCANNER_LOG_NUMBER,
SCANNER_ERRMSG_NUMBER cases, fix port number and protocol
extraction format string to match scanner changes and use
manage_port_name function to get port number associated name.

* src/manage_sql.c (manage_port_name): New function.

* src/manage.h: Add manage_port_name header.
2013-04-03 Matthew Mundell
Add DELETE_USER. This is the same command as in Administrator, but it
takes a uuid parameter instead of a name. Name parameter will follow,
for backward compatibility.

* src/manage_sql.c (find_user): Switch to finding by UUID like other
find functions.
(find_user_by_name): New function. Body from old find_user. Update
find_user callers to use this.
(openvas_admin_remove_user): New function. From Administrator.
(delete_user): New function.

* src/manage.h: Add header accordingly.

* src/omp.c (omp_commands, client_state_t, command_data_t): Add
DELETE_USER entries.
(delete_user_data_t): New type.
(delete_user_data_reset): New function.
(delete_user_data): New variable.
(omp_xml_handle_start_element, omp_xml_handle_end_element): Handle
DELETE_USER.
2013-04-02 Matthew Mundell
Add CREATE_USER/COPY for cloning, including new user columns. Hence
increase database version to 77. Add database migration from version 76
to 77.

* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 77.

* src/manage_sql.c (user_t): Remove. Now in manage.h.
(copy_resource): Use underscore instead of space in name for users.
(create_tables): Add standard columns. Add placeholder columns for info
stored on disk.
(migrate_76_to_77): New function.
(migrators): Add migrate_76_to_77.
(copy_user, user_uuid): New functions.

* src/manage.h: Add headers accordingly.
(user_t): New type. From manage_sql.c.

* src/omp.c (create_user_data_t, client_state_t): Add copy field.
(create_user_data_reset): Free copy.
(omp_xml_handle_start_element, omp_xml_handle_end_element)
(omp_xml_handle_text): Add COPY to CREATE_USER.

* src/sql.c (sql_uniquify): Use underscore instead of space in name for
users.

* doc/db_postgres.sql (users): Add new columns.

* doc/db.png: Update from source.
2013-03-29 Hani Benhabiles

* src/manage_ranges_all_tcp_nmap_5_51_top_100.c,
src/manage_ranges_all_tcp_nmap_5_51_top_1000.c,
src/manage_ranges_iana_tcp_2012.c,
src/manage_ranges_iana_tcp_udp_2012.c,
src/manage_ranges_nmap_5_51_top_2000_top_100.c: Wrap the insertions
bulks in sql transactions.
2013-03-29 Hani Benhabiles

* src/manage_sql.c (init_manage, config_in_use): Check empty scan config
by uuid instead of by name.
2013-03-28 Matthew Mundell

* src/manage_sql.c (escalate_1): Include note and override details, else
text element is truncated.
2013-03-28 Matthew Mundell

* src/manage.c (openvas_admin_list_users): Add uuid arg. Return
matching user if uuid given, as for name.

* src/manage.h: Update header accordingly.

* src/omp.c (get_users_data_t): Add get field. Doc name.
(get_users_data_reset): Reset get.
(omp_xml_handle_start_element): Parse GET_USERS GET attributes.
(omp_xml_handle_end_element): In CLIENT_GET_USERS find user by ID if
given, and add USER/AATTid.
2013-03-28 Matthew Mundell

* src/manage_sql.c (init_manage_process): Add SQL function user_uuid.
(init_user_group_iterator): Get the user via the UUID instead of via the
name, because the name is ambiguous in the db.

* src/sql.c (sql_user_uuid): New function.

* src/sql.h: Add header accordingly.
2013-03-28 Matthew Mundell

* src/manage_sql.c (print_report_xml): Cleanup report_hosts iterator in
assets case, otherwise the db is closed with open statements.
2013-03-28 Hani Benhabiles

* src/manage_config_discovery (make_config_discovery): Add uuid function
parameter. Use it instead of the fixed \'Discovery\' name value.

* src/manage_sql.c: Adjust make_config_discovery prototype.
(init_manage, config_in_use): Check for default Discovery config with
uuid instead of name.
2013-03-28 Hani Benhabiles

* src/openvasmd.c: Include misc/proctitle.h
(main.c): Set process title when initializing.
2013-03-28 Hani Benhabiles

* src/manage_sql.c (delete_config, config_in_use): Check for \'Discovery\'
predefined scan configuration too.
2013-03-28 Hani Benhabiles
Add default \"Discovery\" scan configuration.

* src/manage_sql.c: Add make_config_discovery prototype.
(CONFIG_UUID_DISCOVERY, MANAGE_NVT_SELECTOR_DISCOVERY): New defines.
(init_manage): Create Discovery scan configuration if not found.
(nvt_selector_nvt_count): Remove static qualifier.

* src/manage.h: Add nvt_selector_family_count prototype.

* src/manage_config_discovery.c: New file. Contains function to create
Discovery Scan configuration.

* src/CMakeLists.txt: Add manage_config_discovery.c
2013-03-27 Matthew Mundell

* src/omp.c (omp_xml_handle_end_element): Use CLOSE for CREATE_USER
states.
2013-03-27 Matthew Mundell

* src/manage_sql.c (init_user_group_iterator): Order by name.
2013-03-27 Timo Pollmeier

* src/manage_sql.c (lsc_credential_iterator_rpm)
(lsc_credential_iterator_deb, lsc_credential_iterator_exe): Change
creation of packages to use login instead of name, which caused
problems, for example when the credential name contained whitespaces.
2013-03-27 Matthew Mundell
Add groups to CREATE_USER.

* src/manage_sql.c (openvas_admin_add_user): Add groups args. Add user
to given groups. Add user to database.

* src/manage.h: Update header accordingly.

* src/omp.c (client_state_t): Add CREATE_USER group states.
(create_user_data_t): Add groups
(create_user_data_reset): Free groups.
(omp_xml_handle_start_element, omp_xml_handle_end_element): Add
CREATE_USER groups.
2013-03-26 Matthew Mundell
Add CREATE_USER to OMP. This is a direct copy from OAP in Administrator
with some slight changes to fit in Manager, mostly formatting.

* src/manage.c (validate_username): New function.

* src/manage_sql.c (openvas_admin_add_user): New function.

* src/manage.h: Add header accordingly.

* src/omp.c (omp_commands, client_state_t): Add new command.
(create_user_data_t): New type.
(create_user_data_reset): New function.
(create_user_data): New variable.
(omp_xml_handle_start_element, omp_xml_handle_end_element)
(omp_xml_handle_text): Handle new command.
2013-03-26 Matthew Mundell

* src/manage_sql.c (init_user_group_iterator, user_group_iterator_uuid)
(user_group_iterator_name): New functions.

* src/manage.h: Add headers accordingly.

* src/omp.c (omp_xml_handle_end_element): In GET_USERS add GROUPS.
2013-03-26 Matthew Mundell
Add DESCRIBE_AUTH and GET_USERS to OMP. These are direct copies from
OAP in Administrator with some slight changes to fit in Manager, mostly
formatting.

* src/manage.c (strcmp_desc, openvas_admin_list_users): New functions.
(RULES_HEADER): New define.
(openvas_admin_user_access, keyfile_to_auth_conf_settings_xml): New
functions.

* src/manage.h: Add headers accordingly.

* src/omp.c (omp_commands, client_state_t): Add new commands.
(get_users_data_t): New type.
(get_users_data_reset): New function.
(get_users_data): New variable.
(omp_xml_handle_start_element, omp_xml_handle_end_element): Handle new
commands.
2013-03-25 Matthew Mundell

* src/manage_sql.c (PERMISSION_ITERATOR_FILTER_COLUMNS): Match columns
to GSA.
(PERMISSION_ITERATOR_COLUMNS): Match columns to GSA, using underscore to
shadow existing column names. Remove resource and subject until they
are actually needed. Adjust accessor functions accordingly.
2013-03-25 Matthew Mundell

* src/manage_sql.c (vector_find_filter, underscore_sql_quote): New
functions.
(filter_clause): Use vector_find_filter instead of vector_find_string.
When a keyword matched a filter column with a leading underscore, then
add the underscore in the SQL. This allows a filter column to have a
name that is used by some other column in the table.
(filter_term_value): Add underscore check.
2013-03-25 Hani Benhabiles

* src/manage_sql.c (total_info_count): Code refactor.
(ALL_INFO_UNION_COLUMNS): Use UNION ALL instead of UNION as there are no
duplicate entries to remove.
2013-03-25 Timo Pollmeier

* doc/omp.html, doc/omp.rnc, src/schema_formats/XML/OMP.xml:
Rename def_class to class, xml_file to file for OVAL definitions.

* src/manage.h (ovaldef_info_iterator_def_class): Removed, renamed to
ovaldef_info_iterator_class.
(ovaldef_info_iterator_class): New. Renamed
ovaldef_info_iterator_def_class.
(ovaldef_info_iterator_xml_file): Removed, renamed to
ovaldef_info_iterator_file.
(ovaldef_info_iterator_file): New. Renamed
ovaldef_info_iterator_xml_file.

* src/manage_sql.c (OVALDEF_INFO_ITERATOR_FILTER_COLUMNS)
(OVALDEF_INFO_ITERATOR_COLUMNS): Rename def_class to class,
xml_file to file.
(ovaldef_info_iterator_def_class): Removed. Renamed to
ovaldef_info_iterator_class.
(ovaldef_info_iterator_class): New. Renamed
ovaldef_info_iterator_def_class.
(ovaldef_info_iterator_xml_file): Removed. Renamed to
ovaldef_info_iterator_file.
(ovaldef_info_iterator_file): New. Renamed
ovaldef_info_iterator_xml_file.

* src/omp.c (xml_handle_end_element): In case CLIENT_GET_INFO,
rename element def_class to class, xml_file to file.
2013-03-23 Matthew Mundell
Add permissions trashcan.

* src/manage_sql.c (create_tables): Add permissions_trash.
(delete_permission): Add trash case.
(manage_restore): Add permission restore.
2013-03-23 Matthew Mundell

* src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_INFO format
ternary conditional like others.
2013-03-22 Matthew Mundell

* src/manage_sql.c (init_manage_process, manage_scap_loaded)
(manage_cert_loaded): Use access instead of stat to check for SCAP and
CERT databases. Just put a warning instead of aborting when the access
fails. Remove redundant manage_scap_loaded and manage_cert_loaded
calls.
2013-03-21 Timo Pollmeier

* tools/greenbone-scapdata-sync, tools/openvas-scapdata-sync.in: Make
formatting of log messages more consistent.
2013-03-21 Timo Pollmeier

* tools/greenbone-scapdata-sync (db_migrate_12, check_db_version): New
migration to SCAP database version 12.
(update_scap_db_private): Remove OVAL duplicate checks.

* tools/openvas-scapdata-sync.in (db_migrate_12, check_db_version): New
migration to SCAP database version 12.
(update_sec_db_private): Remove OVAL duplicate checks.

* tools/oval_update.xsl: Add file number suffix to uuids.
Add xml file name to table \"ovalfiles\".

* tools/scap_db_init.sql (ovaldefs, ovaldefs_idx): Remove UNIQUE
constraint for name.
(ovalfiles): New table for OVAL file names.
(ovalfiles_delete): New deletion trigger on ovalfiles.
2013-03-21 Timo Pollmeier

* src/omp.c (omp_xml_handle_end_element): In case CLIENT_GET_INFO,
output xml_file for OVALDEF even if details are not requested.

* src/schema_formats/XML/OMP.xml, doc/omp.html, doc/omp.rnc (get_info):
Move status and xml_file to reflect their real positions in OMP output.
Change xml_file to non-optional.
2013-03-21 Timo Pollmeier
Handle non-unique \"name\" and unique selection by \"info_id\" for get_info.

* src/manage.c (get_ovaldef_filename): Rename parameter from oval_id
to item_id and change comment to make clear that the OVAL ID with suffix
is to be passed as parameter.
(manage_read_info): New parameter uid (unique identifier), used to
look up files for CVE, OVALDEF, and DFN_CERT_ADV.

* src/manage.h (manage_read_info): Change prototype.
(info_name_count): New function prototype.

* src/manage_sql.c (info_name_count): New function, counts get_info
items with a given name by name.
(init_cpe_info_iterator, init_cve_info_iterator)
(init_ovaldef_info_iterator, init_dfn_cert_adv_info_iterator): Add
removal of filter if ID is supplies, as is done for name.
(get_ovaldef_short_filename): Rename parameter from oval_id
to item_id and change comment to make clear that the OVAL ID with suffix
is to be passed as parameter.

* src/omp.c (omp_xml_handle_end_element): In case CLIENT_GET_INFO,
pass ID to manage_read_info in addition to name.
Use info_count instead of assuming 1 when counting info selected by
name.
2013-03-20 Jan-Oliver Wagner

* INSTALL: Increased dependency note for gnutls to 2.8
and removed notes on openvas-adduser which is going
to be removed anyway.
2013-03-20 Matthew Mundell
Add OMP MODIFY_GROUP.

* src/manage_sql.c (group_add_users): New function. Body from
create_group.
(create_group): Call group_add_users to add users.
(modify_group): New function.

* src/manage.h: Add header accordingly.

* src/omp.c (omp_commands, command_data_t, client_state_t): Add
MODIFY_GROUP entries.
(modify_group_data_t): New type.
(modify_group_data_reset): New function.
(modify_group_data): New variable.
(omp_xml_handle_start_element, omp_xml_handle_end_element)
(omp_xml_handle_text): Add MODIFY_GROUP.
2013-03-20 Matthew Mundell

* src/manage_sql.c (valid_type, type_pretty_name, type_db_name): Add
permissions, so that creating permission filters works.
2013-03-20 Matthew Mundell
Add the copy part of OMP CREATE_PERMISSION, for cloning.

* src/manage_sql.c (copy_resource): Add make_name_unique flag arg.
Add to all callers.
(copy_permission): New function.

* src/omp.c (omp_commands): Add new command.
(create_permission_data_t): New type.
(create_permission_data_reset): New functions.
(command_data_t, client_state_t): Add new permission entries.
(create_permission_data): New variable.
(omp_xml_handle_start_element, omp_xml_handle_end_element): Add new
command.
2013-03-19 Matthew Mundell
Add OMP DELETE_PERMISSION and GET_PERMISSIONS.

* src/manage_sql.c (permission_uuid, permission_in_use)
(trash_permission_in_use, permission_writable)
(trash_permission_writable): New functions.
(PERMISSION_ITERATOR_FILTER_COLUMNS, PERMISSION_ITERATOR_COLUMNS): New
defines.
(permission_count, init_permission_iterator)
(permission_iterator_resource_type, permission_iterator_resource_uuid)
(permission_iterator_resource_name, permission_iterator_subject_type)
(permission_iterator_subject_uuid, permission_iterator_subject_name)
(find_permission_with_permission, delete_permission)
(find_permission): New

* src/manage.h: Add headers accordingly.
(permission_t): New type.

* src/omp.c (omp_commands): Add new commands.
(delete_permission_data_t, get_permissions_data_t): New types.
(delete_permission_data_reset, get_permissions_data_reset): New
functions.
(command_data_t, client_state_t): Add new permission entries.
(delete_permission_data, get_permissions_data): New variables.
(omp_xml_handle_start_element, omp_xml_handle_end_element): Add new
commands.
2013-03-19 Matthew Mundell

* src/manage_sql.c (init_task_user_iterator)
(init_task_group_iterator): Correct doc brief.
2013-03-19 Matthew Mundell

* src/manage_sql.c (set_task_observers): Delete only user permissions,
so that group permissions can be left the same.

* src/omp.c (omp_xml_handle_start_element): Move MODIFY_TASK groups init
into observers.
(omp_xml_handle_end_element): In MODIFY_TASK check groups existence
instead of length, to make it possible to remove all observer groups
from the task. Free owner after last use, instead of before.
2013-03-19 Matthew Mundell
Add observer groups to CREATE_TASK.

* src/omp.c (create_task_data_t, create_task_data_reset): Add groups.
(client_state_t): Add observer group state.
(omp_xml_handle_start_element, omp_xml_handle_end_element): Add observer
groups.
2013-03-18 Matthew Mundell

* src/manage_sql.c (user_has_access_uuid, user_may)
(init_get_iterator): Enable group permission checks.
2013-03-18 Matthew Mundell
Add observer groups to MODIFY_TASK and GET_TASKS.

* src/manage_sql.c (init_task_group_iterator, task_group_iterator_task)
(task_group_iterator_group, task_group_iterator_name)
(task_group_iterator_uuid, set_task_groups): New functions.

* src/manage.h: Update headers accordingly.

* src/omp.c (modify_task_data_t, modify_task_data_reset): Add groups.
(client_state_t): Add observer group state.
(omp_xml_handle_start_element, omp_xml_handle_end_element): Add observer
groups.
2013-03-18 Jan-Oliver Wagner

* CMakeLists.txt: Increased dependency to gnutls from 2.2 to 2.8.
2013-03-14 Hani Benhabiles
Migrate DB to version 76 for md5 checksum to feed version changes.

* src/manage_sql.c (migrate_75_to_76): New function. delete leftover
nvts_checksum value and rename nvts_md5sum to nvts_feed_version.
(migrators): Add migrate_75_to_76.

* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 76.
2013-03-14 Timo Pollmeier

* tools/greenbone-scapdata-sync, tools/openvas-scapdata-sync.in
(do_help): Add help text for --verbose option.
2013-03-14 Matthew Mundell

* src/manage_sql.c (init_group_iterator): Name variable more sensibly.
2013-03-14 Timo Pollmeier

* tools/greenbone-scapdata-sync (): Add --verbose option.
(update_scap_db): Add output of duplicate IDs in verbose mode.

* tools/openvas-scapdata-sync.in (): Add --verbose option.
(update_sec_db): Add output of duplicate IDs in verbose mode.
2013-03-14 Hani Benhabiles

* src/schema_formats/XML/OMP.xml, doc/proto_postgres.sql, doc/omp.html,
doc/omp.rnc: Update documentation for get_nvt_feed_version.
2013-03-14 Hani Benhabiles
Change Plugins MD5 Checksum to Feed version.

* src/manage.c (acknowledge_md5sum_info): Change function to
acknowledge_feed_version_info.

* src/manage.h: Update function headers accordingly.
(scanner_t): Rename plugins_md5 element to plugins_feed_version.

* src/manage_sql.c (init_manage_process): Remove unused delete
references to nvts_checksum.
(init_manage): Rename main.meta value name nvts_md5sum to
nvts_feed_version.
(nvts_md5sum, set_nvts_md5sum): Rename and update for feed version
changes.

* src/omp.c (command_t): Rename GET_NVT_FEED_CHECKSUM to
GET_NVT_FEED_VERSION.
(get_nvt_feed_checksum_data_t, get_nvt_feed_checksum_data_reset)
(get_nvt_feed_checksum_data): Remove as unused.
(client_state_t): Rename CLIENT_GET_NVT_FEED_CHECKSUM to
CLIENT_GET_NVT_FEED_VERSION.
(omp_xml_handle_start_element, omp_xml_handle_end_element): Update for
feed version changes.

* src/ompd.c (write_to_scanner, serve_omp): Update scanner init state
names.

* src/otp.c (init_otp_data, process_otp_scanner_input): Update function
and variables names and documentation accordingly.

* src/otp.h (scanner_init_state_t): Rename SCANNER_INIT_GOT_FEED_MD5SUM
to SCANNER_INIT_GOT_FEED_VERSION.
2013-03-14 Hani Benhabiles

* src/manage_sql.c (init_all_info_iterator): Clean code. Add order
clause in no filter clause case. Free allocated gchar\'s.
2013-03-13 Matthew Mundell

* src/ompd.c (serve_omp): In cache update/rebuild mode, exit if
connecting to the scanner fails.

* src/openvasmd.c (update_or_rebuild_nvt_cache): Log when connecting to
scanner fails.
2013-03-13 Matthew Mundell

* src/openvasmd.c (handle_sigabrt): Print backtrace when compiled with
debugging.
2013-03-12 Matthew Mundell

* src/manage_sql.c (init_get_iterator): Remove used_by arg. Recursive
access will be handled by explicit permissions. Update callers.
2013-03-12 Matthew Mundell

* src/manage_sql.c (migrate_74_to_75): Ensure table exists.
2013-03-12 Matthew Mundell
Add permissions table. Manage task observers via permissions instead of
via the task_users table. Hence increase database version to 75. Add
database migration from version 74 to 75.

* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 75.

* src/manage_sql.c (user_has_access_uuid): Add permission arg. If type
has permissions support (currently task and report) then do the check
using the new permissions table. Remove special case check for
lsc_credential because recursive access via task access will be removed
with the new permission system. Update callers.
(vector_find_filter, underscore_sql_quote): New functions. Helpers.
(user_may): Add #if 0 around already disabled code, for consistency.
(filter_clause): Add permissions arg. Return with array of permissions
filter terms, if arg given. Update callers.
(type_has_users): Remove.
(type_has_permissions): New function.
(init_get_iterator): Remove task_users based filtering. Add permission
based filtering, which affects only tasks and reports.
(count): Remove special case based on actions parameter. This was used
to control which tasks where visible. Now done via permissions
parameter.
(create_tables): Add permissions. Remove task_users.
(migrate_74_to_75): New function. Converts task_users to permissions.
(migrators): Add migrate_74_to_75.
(init_task_user_iterator): Remove action arg. Iterator over permissions
table instead of task_users.
(task_user_iterator_actions): Remove. Adjust name position accordingly.
(set_task_observer): Use new table.
(report_counts): Use permission version of find function.
(find_report_with_permission): New function.
2013-03-12 Matthew Mundell

* src/manage_sql.c (filter_clause): Correct SQL typo.
2013-03-12 Timo Pollmeier

* tools/oval_timestamp.xsl, tools/oval_verify.xsl: Add recognition of
OVAL root elements oval_variables, oval_system_charactersistics and
oval_results. Variables files are now considered valid.

* tools/oval_update.xsl: Add compatibility with oval_variables files.
2013-03-12 Timo Pollmeier

* src/schema_formats/XML/OMP.xml, doc/omp.html, doc/omp.rnc: Add
OVAL definitions \"status\" element to get_info documentation.
Change documentation of \"deprecated\" element in OVALDEF to boolean type.
2013-03-12 Hani Benhabiles

* src/omp.c (send_get_end): Don\'t printf filt_id when null.
2013-03-12 Hani Benhabiles

* src/schema_formats/XML/OMP.xml, doc/omp.html, doc/omp.rnc: Update
get_info documentation.
2013-03-12 Hani Benhabiles

* src/manage_sql.c (ALL_INFO_ITERATOR_FILTER_COLUMNS)
(ALL_INFO_UNION_COLUMNS, init_all_info_iterator): Add extra column
(all_info_iterator_extra): New function.

* src/omp.c (omp_xml_handle_end_element): Send allinfo extra element in
CLIENT_GET_INFO case.

* src/manage.h: Add all_info_iterator_extra header.
2013-03-11 Timo Pollmeier

* tools/greenbone-scapdata-sync (update_scap_db_private)
(update_scap_db): Fix skipping of OVAL timestamp filter for cases when
REBUILD_OVAL is set to 1. Add default value for REBUILD_OVAL.

* tools/openvas-scapdata-sync (update_sec_db_private)
(update_sec_db): Fixes analogous to Greenbone version.
2013-03-11 Timo Pollmeier

* tools/greenbone-certdata-sync (sync_certdata): Remove skipping of
rsync with previously nonexistent feed.
2013-03-11 Hani Benhabiles

* src/manage_sql.c (manage_set_setting): Add All SecInfo default filter
setting.

* src/omp.c (omp_xml_handle_end_element): Use All SecInfo as default
filter name instead of ALLINFO in CLIENT_GET_INFO case.
2013-03-11 Jan-Oliver Wagner

* CMakeLists.txt: Install greenbone-certdata-sync.
2013-03-11 Timo Pollmeier
Add \"status\" column to OVAL definitions in SCAP database.

* src/manage.h (ovaldef_info_iterator_status): New prototype.

* src/manage_sql.c (OVALDEF_INFO_ITERATOR_FILTER_COLUMNS)
(OVALDEF_INFO_ITERATOR_COLUMNS): Add \"status\" column.
(ovaldef_info_iterator_status): New function to get \"status\" from an
OVAL definition iterator.

* src/omp.c (omp_xml_handle_end_element): In ovaldef else if section,
add \"status\" to OMP output.

* tools/greenbone-scapdata-sync (db_migrate_11): New function to
migrate SCAP database to version 11.
(check_db_version): Add migration to version 11.
(update_scap_db_private, update_scap_db): Add selective rebuild of OVAL
data.

* tools/openvas-scapdata-sync.in (db_migrate_11, check_db_version): See
greenbone-scapdata-sync.
(update_sec_db_private, update_sec_db): See update_scap_db_private,
update_scap_db in greenbone-scapdata-sync.
(do_refresh_private): Set variable REFRESH_PRIVATE_ONLY to 1.

* tools/oval_update.xsl: Add insert of \"status\" data into SCAP database.

* tools/scap_db_init.sql (meta): Set version to 11.
(ovaldefs): Add column \"status\".
2013-03-11 Hani Benhabiles

* src/sql.c (cleanup_iterator): Check iterator pointer before
dereferencing it.
2013-03-11 Hani Benhabiles
Add search All SecInfo feature.

* src/manage_sql (all_info_count, total_info_count)
(init_all_info_iterator, all_info_iterator_type): New functions.
(ALL_INFO_ITERATOR_FILTER_COLUMNS, ALL_INFO_UNION_COLUMNS): New define.
(omp_xml_handle_end_element): Add allinfo handling in CLIENT_GET_INFO
case.

* src/manage.h: Add all_info_count, total_info_count,
init_all_info_iterator and all_info_iterator_type headers.
2013-03-07 Matthew Mundell
Move the observer checks for CREATE operations into the functions that
do the operations. This opens the way for controlling these permissions
via the database.

* src/manage_sql.c (user_may): New function.
(copy_resource, create_alert, copy_alert, create_report, copy_task)
(create_target, copy_target, create_config, create_config_rc)
(copy_config, create_lsc_credential, create_agent, create_note)
(create_override, create_report_format, copy_report_format, copy_group)
(create_group, create_port_list, copy_port_list, modify_port_list)
(create_port_range, create_filter): Add permission check.

* src/omp.c (omp_xml_handle_end_element): Handle permission return in
all CREATE commands.
2013-03-07 Jan-Oliver Wagner

* doc/user-scap-data-HOWTO: Slightly improved.
2013-03-06 Timo Pollmeier

* doc/user-scap-data-HOWTO: New file, documentation for user defined
SCAP data.
2013-03-06 Timo Pollmeier
Add updating of user (OVAL) data to greenbone-scapdata-sync.

* tools/greenbone-scapdata-sync (REFRESH_PRIVATE_ONLY): New variable.
(list_oval_files_sortable, list_oval_files_sorted): Change to output
only files with timestamps and use parameter for directory to search.
(do_help): Add help for new --refresh-private option.
(init_scap_db_update): New function to initialize database variables.
(update_scap_db_private): New function to update user data.
(update_scap_db): Change to support updating user data.
(): Add command line option --refresh-private.
2013-03-06 Timo Pollmeier

* tools/greenbone-scapdata-sync (sync_scapdata),
tools/greenbone-certdata-sync (sync_certdata): Add --chmod=D+x option
to rsync commands to fix problems with directories being created
without +x permissions.
2013-03-06 Hani Benhabiles

* src/schema_formats/XML/OMP.xml, doc/omp.html, doc/omp.rnc: Update
documentation for various results related commands.
2013-03-06 Hani Benhabiles

* src/manage_sql.c (update_nvt_cache): Set nvti tag.
(result_iterator_nvt_tag): New function.

* src/manage.h: Add result_iterator_nvt_tag header accordingly.

* src/omp.c (buffer_results_xml): Send nvt tags.
2013-03-05 Matthew Mundell

* src/manage_sql.c (update_all_config_caches): Use definition for
columns, so that the accessors will still work when the GET iterator
gets more columns.
2013-03-05 Timo Pollmeier
Add functions to synchronize SCAP database with user defined OVAL
repositories in private subdirectory.

* CMakeLists.txt: Add oval_verify.xsl, ovaldef_list_ids.xsl.

* tools/openvas-scapdata-sync.in (do_help): Add --refresh-private text.
(init_sec_db_update): New function, contains database checks and
variable inits from update_sec_db.
(list_oval_files_sorted, list_oval_files_sortable): Change to search
directory given as parameter instead of fixed directory and skip files
without valid OVAL timestamp.
(update_sec_db_private): New function to sync scap.db with user defined
files. Currently supports validating, adding and removing OVAL
definitions.
(update_sec_db): Remove database checks and variable inits, call
init_sec_db_update instead. Change handling of OVAL files list to new
version of list_oval_files_sorted and print warnings for file without
valid timestamps. Add call of update_sec_db_private near end.
(do_refresh_private): New function to refresh user defined data only.
(): New command line option --refresh-private.

* tools/ovaldef_list_ids.xsl: New stylesheet to get a list of all IDs
in an OVAL repository.

* tools/oval_timestamp, tools/oval_update.xsl: Fix selection of
timestamps failing when relevant elements contain extra whitespaces.

* tools/oval_verify.xsl: New stylesheet for basic verification of OVAL
repository files.
2013-03-04 Matthew Mundell
Add basic user groups.

* src/manage_sql.c (create_tables): Create groups tables.
(find_group, copy_group, create_group, delete_group, group_uuid)
(group_users, group_writable, trash_group_writable, group_in_use)
(trash_group_in_use): New functions.
(GROUP_ITERATOR_FILTER_COLUMNS, GROUP_ITERATOR_COLUMNS): New defines.
(group_count, init_group_iterator): New functions.

* src/manage.h: Add headers accordingly.
(group_t): New type.

* src/omp.c (omp_commands): Add group commands.
(create_group_data_t, delete_group_data_t, get_groups_data_t): New
types.
(create_group_data_reset, delete_group_data_reset)
(get_groups_data_reset: New functions.
(command_data_t): Add group commands.
(create_group_data, delete_group_data, get_groups_data): New variables.
(client_state_t): Add group states.
(omp_xml_handle_start_element, omp_xml_handle_end_element)
(omp_xml_handle_text_element): Handle group commands.
2013-03-04 Timo Pollmeier

* tools/greenbone-scapdata-sync (db_migrate_10): Fix sqlite3 call using
an undefined database file name parameter.
2013-03-04 Timo Pollmeier

* tools/greenbone-certdata-sync, tools/greenbone-scapdata-sync: Remove
bashisms not supported by dash like [[ ... ]] and (( ... )) and change
from #!/bin/bash to #!/bin/sh.
2013-03-01 Timo Pollmeier

* tools/greenbone-certdata-sync (RSYNC_DELETE): Remove quotes causing
exclude of private directory to be ignored.

* tools/greenbone-scapdata-sync (RSYNC_DELETE): Remove quotes causing
exclude of private directory to be ignored.
(update_scap_db): Fix recalculation of max_cvss being performed even if
no CVEs were updated.
2013-02-28 Jan-Oliver Wagner

* src/otp.c (process_otp_scanner_input): Rename OTP message
\"PLUGINS_MD5\" to \"NVT_INFO\".
Rename internal SCANNER_PLUGINS_MD5 to SCANNER_NVT_INFO.

* src/ompd.c (write_to_scanner): Update comment as MD5 does not play a
role anymore.
2013-02-28 Andre Heinecke

* report_formats/verinice-ism/gsm_verinice_ism.xsl,
report_formats/verinice-ism/generate:
Do not attach raw xml file of the report anymore
2013-02-28 Jan-Oliver Wagner
Post branch version bump.

* CMakeLists.txt: Updated version number.
2013-02-27 Jan-Oliver Wagner
Remove unused functions.

* src/manage.c (acknowledge_md5sum, acknowledge_md5sum_sums): Removed.

* src/manage.h: Removed proto accordingly.
2013-02-27 Timo Pollmeier

* src/manage.c (slave_setup, delete_slave_task): Delete slave resources
(task, config, target, credentials) instead of moving them to trashcan.
2013-02-27 Hani Benhabiles

* src/omp.c (convert_to_newlines): Rewrite conversion routine to be more
efficient with cleaner code.
2013-02-27 Timo Pollmeier
SCAP sync now updates max_cvss and most cve_refs of CPEs after updating
CVEs to reduce number of time consuming queries for updating max_cvss.

* tools/cve_update.xsl: Remove update of cve_refs and max_cvss.
Columns are now updated by recount in sync shell scripts.

* tools/greenbone-scapdata-sync (db_migrate_9): Change \"sqlite3\" to
\"$SQLITE3\".
(db_migrate_10, check_db_version): Add migration to version 10.
(update_scap_db): Add recalculation of max_cvss and cve_refs after CVEs
update.

* tools/openvas-scapdata-sync.in (db_migrate_10, check_db_version):
Add migration to version 10.
(update_scap_db): Add recalculation of max_cvss and cve_refs after CVEs
update.

* tools/scap_db_init.sql (meta): Change version to 10.
(affected_delete): Remove update of max_cvss. Replaced by recount in
sync scripts.
2013-02-27 Timo Pollmeier

* tools/greenbone-certdata-sync, tools/greenbone-scapdata-sync:
Update version number.
2013-02-27 Timo Pollmeier

* tools/greenbone-certdata-sync: New script to sync CERT data using
the Greenbone feed.
2013-02-27 Timo Pollmeier

* tools/greenbone-scapdata-sync:
Add PRIVATE_SUBDIR and private directory functionality to RSYNC_DELETE.
2013-02-27 Hani Benhabiles

* src/omp.c (omp_xml_handle_end_element): Check return value for
send_get_common() call in In CLIENT_GET_INFO case.
2013-02-25 Matthew Mundell

* src/report_formats/HTML/HTML.xsl (prognostic-description): New
template.
(result [issue]): For prognostic results, produce the description with
prognostic-description so that the browser does paragraph wrapping.
2013-02-25 Matthew Mundell

* src/omp.c (omp_xml_handle_end_element): In GET_REPORTS add checks
for -2 filt_id to the asset and prognostic cases.
2013-02-25 Andre Heinecke

* report_formats/verinice-ism/create_report_import:
Update version number to 1.1.7
2013-02-22 Michael Wiegand
Post release version bump.

* CMakeLists.txt: Updated version number to 4.0+beta6.
2013-02-22 Timo Pollmeier
Replace index on affected_products (cve, cpe) by two separate ones for
each column to speed up queries on that table slowing down updates.

* tools/greenbone-scapdata-sync (VERSION): Update.
(db_migrate_9): New database migration funcion.
(check_db_version): Migrate to version 9 from version 8.

* tools/openvas-scapdata-sync.in (db_migrate_9): New database migration
function.
(check_db_version): Migrate to version 9 from version 8.

* tools/scap_db_init.sql (afp_idx): Remove. Replaced by afp_cve_idx and
afp_cpe_idx.
(afp_cve_idx): New index on affected_products (cve).
(afp_cpe_idx): New index on affected_products (cpe).
2013-02-22 Michael Wiegand
Preparing the openvas-manager 4.0+beta5 release.

* CHANGES: Updated.

* INSTALL: Updated openvas-libraries dependency.
2013-02-21 Timo Pollmeier

* tools/greenbone-scapdata-sync, tools/openvas-scapdata-sync.in
(list_oval_files_sortable, update_sec_db): Add quotes to allow syncing
when $SCAP_DIR is the current directory.
2013-02-21 Werner Koch

* src/manage_sql.c (manage_set_setting): Re-word password
diagnostic.
2013-02-20 Werner Koch
Check password policy.

* src/openvasmd.c: Include openvas/base/pwpolicy.h.
(main): Add option --disable-password-policy.

* src/manage_sql.c: Include openvas/base/pwpolicy.h.
(manage_set_setting): Call openvas_validate_password and add new
arg R_ERRDESC.

* src/manage.h: Update prototype for this.

* src/omp.c (make_xml_error_syntax): New.
(omp_xml_handle_end_element) : Send back an
error string for an invalid password.
2013-02-20 Timo Pollmeier

* tools/openvas-certdata-sync.in: Enable rsync and add --refresh option.
(do_help): Add text for --refresh.
(do_rsync): Enable previously commented out rsync code, remove now
obsolete warning and add $RSYNC_DELETE.
(do_refresh): New function.
(): Add case for --refresh.
2013-02-20 Timo Pollmeier

* tools/openvas-scapdata-sync.in (do_refresh): Move to prevent possible
problems with shells not finding update_sec_db.
2013-02-20 Timo Pollmeier

* tools/openvas-scapdata-sync.in (): Add command line option --refresh
to update database without downloading feed data.
(do_help): Add text for new --refresh option.
(do_refresh): New function.
2013-02-20 Timo Pollmeier

* tools/openvas-scapdata-sync.in: Remove / disable http feed download.
(do_help): Remove text for --wget and --curl.
(CMD_WGET, CMD_CURL): Remove
(chk_system_tools): Remove wget and curl checks
(do_wget, do_curl): Change to exit with warning.
(do_sync): Change to only try rsync.
2013-02-20 Timo Pollmeier
Add private subdirectory functionality in OpenVAS sync scripts.

* tools/openvas-certdata-sync.in (PRIVATE_SUBDIR, RSYNC_DELETE): New.
(do_help): Add line for PRIVATE_SUBDIR as environment variable.

* tools/openvas-scapdata-sync.in (PRIVATE_SUBDIR): New.
(RSYNC_DELETE): Add --exclude for private subdirectory.
(do_help): Add line for PRIVATE_SUBDIR as environment variable.
2013-02-20 Michael Wiegand
Move \"-Werror\" flag to the \"Debug\" build type.

* CMakeLists.txt: Move \"-Werror\" from CMAKE_C_FLAGS to
CMAKE_C_FLAGS_DEBUG to keep it out of the \"Release\" build type.
2013-02-20 Matthew Mundell

* src/omp.c (omp_parser_new): Clear parser memory on allocation, so that
parent_state is 0 initially. This prevents the end handler from setting
the client state to some arbitrary number after reading over an element,
for example when importing a report.
2013-02-19 Matthew Mundell

* src/manage_sql.c (manage_empty_trashcan): Empty notes and overrides
too.
2013-02-19 Timo Pollmeier

* src/omp.c (client_state_t): Add client states for cert and cert_ref
elements in create_report.
(omp_xml_handle_start_element, omp_xml_handle_end_element): Add cert
and cert_ref elements in create_report.
2013-02-19 Hani Benhabiles

* src/manage_sql.c (manage_set_setting): Add Reports Filter setting.

* src/omp.c (omp_xml_handle_element): Check for settings default report
filter when no filter and filt_id are provided in GET_REPORTS case.
2013-02-19 Matthew Mundell

* src/omp.c (omp_xml_handle_start_element)
(omp_xml_handle_end_element): Set the importing flag around
CREATE_REPORT, to read-over new elements in reports.
2013-02-19 Andre Heinecke

* report_formats/verinice-ism/gsm_verinice_ism.xsl (control_details):
Add gsm_control_tag that is a comma seperated list of tags
based on the notes description. If a line in the description starts
with + it will be interpreted as a \"Tag\"
2013-02-19 Andre Heinecke

* report_formats/verinice-ism/gsm_verinice_ism.xsl (scenario_details):
Add cvss and fix cve and threat values
2013-02-18 Matthew Mundell

* tools/greenbone-scapdata-sync: Run sqlite3 via SQLITE3 variable, to
specify -noheader, because the user may have .headers on in .sqliterc.
(SCAP_RES_DIR): Skip /usr/ when there\'s a PREFIX.
2013-02-18 Timo Pollmeier

* src/manage.c (get_nvti_xml), src/omp.c (buffer_results_xml)
(omp_xml_handle_end_element): Add output of warning message in
CERT elements if CERT database is missing to fix errors when NVTs are
accessed in this case.

* src/schema_formats/XML/OMP.xml, doc/omp.html, doc/omp.rnc: Add
warning message elements for CERT reference elements.
2013-02-18 Timo Pollmeier

* tools/dfn_cert_update.xsl: Fix XSL select returning empty IDs for
dfn_cert_cves insert.
2013-02-18 Andre Heinecke

* report_formats/verinice-ism/gsm_verinice_ism.xsl: Add
gsm_ism_control_cpe based on result/detection value
2013-02-14 Jan-Oliver Wagner

* INSTALL: Added some more details on how to change the encryption key.
2013-02-14 Timo Pollmeier

* tools/dfn_cert_getbyname.xsl, tools/dfn_cert_update.xsl: Change to
get ID from new element instead of extracting it from
.<BR> 2013-02-14 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* doc/about-cert-feed.txt: Change text for short ID elements to<BR> consider new <dfncert:refnum> element.<BR> 2013-02-14 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* src/manage.c (DFN_CERT_ADV_FILENAME_FMT, get_dfn_cert_adv_filename):<BR> Change file name format back to DFN-CERT-YYYY-n.<BR> <BR>* src/manage_sql.c (get_dfn_cert_adv_date): Remove.<BR> <BR>* src/manage_sql.h (get_dfn_cert_adv_date): Remove.<BR> 2013-02-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (NOTE_ITERATOR_TRASH_COLUMNS)<BR> (OVERRIDE_ITERATOR_TRASH_COLUMNS): Use trash table instead of real<BR> table.<BR> 2013-02-13 Werner Koch <wkAATTgnupg.org><BR> <BR>* src/openvasmd.c (main): Add options --encrypt-all-credentials<BR> and --decrypt-all-credentials.<BR> <BR>* src/manage_sql.c (do_encrypt_all_credentials)<BR> (manage_encrypt_all_credentials): New.<BR> <BR>* src/manage.h (manage_encrypt_all_credentials): New prototype.<BR> <BR>* src/lsc_crypt.c: Remove all tracepoint debug output.<BR> 2013-02-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* TODO: Remove completed and out of date items.<BR> 2013-02-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Remove test framework.<BR> <BR>* CMakeLists.txt: Remove testing.<BR> <BR>* src/CMakeLists.txt: Remove testing comments.<BR> <BR>* src/tests/: Remove.<BR> 2013-02-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/CMakeLists.txt (C_FILES): Add lsc_crypt.c.<BR> 2013-02-13 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* doc/about-cert-feed.txt: New. Most text by Timo Pollmeier.<BR> 2013-02-11 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/otp.c (parse_scanner_plugin_list_tags): Replace \';\' with \'\<BR>\' in<BR> tags.<BR> 2013-02-08 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (slave_setup): Specify levels and apply_overrides in<BR> GET_REPORTS call instead of relying on defaults.<BR> 2013-02-07 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* tools/openvas-scapdata-sync.in (RSYNC_DELETE): New variable.<BR> (do_rsync): Add RSYNC_DELETE to rsync call: Files are now deleted<BR> locally when they are not part of the rsync feed, analogous to<BR> greenbone-scapdata-sync.<BR> 2013-02-06 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Activated RSYNC_DELETE with<BR> - -delete --exclude=scap.db so that from now on files are deleted<BR> locally when deleted on the feed server.<BR> 2013-02-06 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* doc/CMakeLists.txt: Prevent superfluous creation of \"doc/html/\"<BR> directory inside the source tree.<BR> 2013-02-06 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* doc/footer.html: Removed obsolete file.<BR> 2013-02-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (NOTE_ITERATOR_FILTER_COLUMNS): Add more filtering<BR> fields.<BR> (NOTE_ITERATOR_COLUMNS, NOTE_ITERATOR_TRASH_COLUMNS): Add task_name and<BR> task_id, for filtering.<BR> 2013-02-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (OVERRIDE_ITERATOR_FILTER_COLUMNS): Add task_id.<BR> (OVERRIDE_ITERATOR_COLUMNS, OVERRIDE_ITERATOR_TRASH_COLUMNS): Select the<BR> task ID.<BR> 2013-02-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Get host details with slave reports. This makes OS detection work with<BR> slave tasks.<BR> <BR>* src/manage.c (slave_setup): Add host details when setting host end<BR> times.<BR> <BR>* src/manage_sql.c (manage_report_host_details): New function. Body<BR> from manage_report_host_detail.<BR> (manage_report_host_detail): Call manage_report_host_details to add<BR> details.<BR> <BR>* src/manage_sql.h: Add header accordingly.<BR> 2013-02-05 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* tools/openvas-certdata-sync.in (do_sync): Fix warning message saying<BR> \"curl\" where it should be \"rsync\".<BR> 2013-02-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (slave_setup): Get the report with omp_get_report_ext<BR> in order to specify result_host_only. Set result_host_only 0 in the<BR> Done case so that all the hosts show up with their end times. Move<BR> setting the end times back to the Done case. The problem with setting<BR> the end times while the task is Running is that the GET_REPORT could<BR> happen between the last result and the host end.<BR> 2013-02-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (set_scan_host_end_time, set_scan_host_end_time_otp)<BR> (set_scan_host_start_time, set_scan_host_start_time_otp): Quote host.<BR> 2013-02-04 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (slave_setup): Set the host end times after adding<BR> results when Running and Done, instead of only when Done. This is<BR> required because the results for some hosts may only show up during the<BR> Running stage, for example when scanning many hosts.<BR> 2013-02-01 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* doc/omp.html, doc/omp.rnc, src/schema_formats/XML/OMP.xml: Add<BR> documentation for modify_agent, modify_alert, modify_port_list and<BR> modify_slave.<BR> 2013-02-01 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (modify_alert): Update alert event, method and<BR> condition and their data independently.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Allow non provided parameters<BR> to permit modifying them separately.<BR> 2013-02-01 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/lsc_crypt.c (get32): Shift the right direction.<BR> 2013-02-01 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (cleanup_manage_process): Add note on how to find<BR> open statements.<BR> 2013-02-01 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_count, report_count_filtered)<BR> (report_counts_id_filt): Also finalize the full statement.<BR> 2013-02-01 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* doc/omp.html, doc/omp.rnc, src/schema_formats/XML/OMP.xml: Update<BR> documentation for get_slaves, get_targets and get_tasks.<BR> 2013-02-01 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (send_to_sourcefire, send_to_verinice): Call<BR> cleanup_manage_process after forking.<BR> 2013-02-01 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* src/manage_sql.c (manage_cert_loaded): Fix comment saying SCAP<BR> instead of CERT.<BR> (ovaldef_info_iterator_deprecated): Fix comment typo.<BR> (get_ovaldef_short_filename): Fix wrong info in AATTreturn comment.<BR> <BR>* src/manage.c (get_ovaldef_filename): Fix comment typo.<BR> 2013-01-31 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (cleanup_manage_process): In the fork process case,<BR> skip the sqlite3_close because that could affect the same handle in the<BR> parent.<BR> (manage_report, manage_send_report): Call cleanup_manage_process after<BR> forking, and remove the \"clearing the parent state\" because the added<BR> cleanup_manage_process will clear task_db. Thanks to Hani for<BR> suggesting a change like this.<BR> 2013-01-31 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* doc/omp.html, doc/omp.rnc, src/schema_formats/XML/OMP.xml: Update<BR> documentation for get_port_lists, get_report_format and get_schedules.<BR> 2013-01-31 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* doc/omp.html, doc/omp.rnc, src/schema_formats/XML/OMP.xml: Update<BR> documentation for get_lsc_credentials, get_notes, get_overrides.<BR> 2013-01-31 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Remove duplicate login and<BR> pass tags when targets are requested in GET_LSC_CREDENTIALS case.<BR> 2013-01-31 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* doc/omp.html, doc/omp.rnc, src/schema_formats/XML/OMP.xml: Update<BR> documentation for get_agents, get_configs and get_alerts commands.<BR> 2013-01-31 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (omp_xml_handle_end_element): Remove duplicate in_use<BR> tag in GET_AGENTS.<BR> 2013-01-31 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (setting_filter): Style fix.<BR> 2013-01-30 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_filter_term): Default levels to hmlgd to match<BR> print_report_xml. This keeps GET_REPORTS backward compatible, which is<BR> important for example when getting the report from a slave.<BR> 2013-01-30 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (setting_filter): Restrict to global filters or<BR> current user\'s filters.<BR> 2013-01-29 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (OVERRIDE_ITERATOR_FILTER_COLUMNS): Add more filtering<BR> fields.<BR> (OVERRIDE_ITERATOR_COLUMNS, OVERRIDE_ITERATOR_TRASH_COLUMNS): Add<BR> task_name, for filtering.<BR> 2013-01-29 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (delete_override, manage_restore): Clear report count<BR> cache when deleting or restoring an override.<BR> 2013-01-28 Werner Koch <wkAATTgnupg.org><BR> Support encrypted credentials.<BR> <BR>* src/lsc_crypt.c, src/lsc_crypt.h: New.<BR> <BR>* src/CMakeLists.txt: Add lsc_crypt.c to library manage.<BR> <BR>* src/manage.h: Include \"lsc_crypt.h\".<BR> <BR>* src/manage_sql.c (create_lsc_credential): Support encrypted<BR> credentials.<BR> (set_lsc_credential_password): Ditto.<BR> (lsc_credential_iterator_pass_or_priv): New.<BR> (lsc_credential_iterator_password): Re-implement using the new<BR> function.<BR> (lsc_credential_iterator_private_key): Ditto.<BR> <BR>* src/sql.c (init_prepared_iterator): Clear that field.<BR> (init_iterator): Ditto.<BR> (cleanup_iterator): Release crypto context.<BR> (next): Call lsc_crypt_flush.<BR> <BR>* src/openvasmd.c (disable_encrypted_credentials): New global<BR> variable.<BR> (main): Add options --disable-encrypted-credentials and<BR> - -create-credentials-encryption-key.<BR> <BR>* doc/db_postgres.sql (lsc_credentials): Add comments.<BR> <BR>* INSTALL (Encrypted Credentials): New.<BR> <BR>* README: Update list of command line options.<BR> 2013-01-28 Werner Koch <wkAATTgnupg.org><BR> <BR>* doc/CMakeLists.txt: Make db_postgres.sql related rules work with<BR> VPATH builds.<BR> 2013-01-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (make_nvt_from_nvti): Remove time tags from tags before<BR> inserting into db.<BR> 2013-01-28 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* src/manage.c (DFN_CERT_ADV_FILENAME_FMT): Change to YYYY-MM format.<BR> (get_dfn_cert_adv_filename): Change to get filename by advisory date.<BR> <BR>* src/manage_sql.c (get_dfn_cert_adv_date): New function to get creation<BR> date of a DFN-CERT advisory.<BR> <BR>* src/manage_sql.h (get_dfn_cert_adv_date): New function.<BR> <BR>* tools/dfn_cert_getbyname, dfn_cert_update: Change URL in xmlns:dfncert<BR> from \"https:\" to \"http:\". Change clipping of entry IDs to use URL from<BR> id of the feed instead of a fixed URL.<BR> 2013-01-28 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml: Fix more typos.<BR> 2013-01-28 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml: Fix typo.<BR> 2013-01-28 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* doc/omp.rnc, doc/omp.html, src/schema_formats/XML/OMP.xml (get_info):<BR> Add OVAL and DFN-CERT items to get_info type attribute and response,<BR> including CERT references in CVEs and NVTs.<BR> 2013-01-28 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (get_info): Fix spelling mistake in<BR> summary for response element info and indentation for NVT and CVE.<BR> 2013-01-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Apply default filter when<BR> filter and filt_id are both null in GET_CLIENT cases.<BR> 2013-01-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (get_nvti_xml): Set uuid to oid.<BR> 2013-01-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/sql.c (sql_parse_time): Use the timezone in the string to adjust<BR> the time to UTC.<BR> 2013-01-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (get_nvti_xml): Add creation and modification times.<BR> 2013-01-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (get_nvti_xml): Move declarations to start of block. Add<BR> spaces between function and args. Flush trailing whitespace.<BR> <BR>* src/manage_sql.c (init_cve_dfn_cert_adv_iterator)<BR> (init_nvt_dfn_cert_adv_iterator): Indent the SQL so that the right hand<BR> side of an operation is always to the right of the operator, even when<BR> on the following line.<BR> <BR>* src/omp.c (buffer_results_xml): Flush trailing whitespace.<BR> 2013-01-25 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> Add references to CERT for NVTs in NVT details and results.<BR> <BR>* src/manage.c (get_nvti_xml): Add output of CERT references.<BR> <BR>* src/manage.h (init_nvt_dfn_cert_adv_iterator): Add new iterator for<BR> DFN-CERT advisories indirectly referenced by an NVT via CVEs.<BR> <BR>* src/manage_sql.c (init_nvt_dfn_cert_adv_iterator): Add new iterator<BR> as for manage.h.<BR> <BR>* src/omp.c (buffer_results_xml): Add output of CERT references.<BR> 2013-01-24 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Check filt_id value is equal<BR> to -2 before applying default filters in CLIENT_GET cases.<BR> 2013-01-24 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* doc/CMakeLists.txt: Remove omp.rnc from HTML installs from last<BR> commit.<BR> 2013-01-24 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* doc/CMakeLists.txt: Install OMP docs too.<BR> (doc-omp): New target.<BR> 2013-01-24 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In CLIENT_HELP add a NULL<BR> guard for help_data->type.<BR> 2013-01-23 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (setting_value_int): Indentation update.<BR> 2013-01-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Improve IPv6 address validation.<BR> <BR>* src/manage_sql.c (validate_host): Check ::\'s. Check group count.<BR> (manage_max_hosts): Fail if IPv6 contains a network address or a hyphen.<BR> 2013-01-23 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* tools/openvas-scapdata-sync.in (update_sec_db): Change counting of<BR> OVAL xml files to use find instead of ls.<BR> 2013-01-23 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (setting_value_int): Add missing parentheses in sql<BR> query which led to erroneous values.<BR> 2013-01-23 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (manage_set_setting): Adapt to use fixed uuid values<BR> for settings filters instead of names.<BR> 2013-01-23 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync (update_sec_db): Add missing update of<BR> last_update in scap.db table meta.<BR> 2013-01-22 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (manage_set_setting, setting_filter)<BR> (omp_xml_handle_end_element): Adapt to settings filters name change<BR> 2013-01-22 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> When delete of an active task is requested, ensure that the OTP stop<BR> request will be sent, so that the task can end and be deleted.<BR> <BR>* src/manage.h (TASK_STATUS_DELETE_WAITING)<BR> (TASK_STATUS_DELETE_ULTIMATE_WAITING): New states.<BR> <BR>* src/manage.c (run_status_name, run_status_name_internal, slave_setup)<BR> (stop_task): Handle new states.<BR> (manage_check_current_task): In the delete requested states, send<BR> STOP_WHOLE_TEST to the scanner, and switch to the delete waiting states.<BR> <BR>* src/manage_sql.c (task_in_use, init_manage, set_task_requested)<BR> (task_current_report): Handle new states.<BR> (request_delete_task): Request delete ultimate in the requested state,<BR> to match other case.<BR> (request_delete_task_uuid): Match delete states to ultimate flag<BR> correctly.<BR> <BR>* src/otp.c (process_otp_scanner_input): In SCANNER_TIME_SCAN_END handle<BR> new delete states and marked the task stopped otherwise it has a delete<BR> state in the trashcan.<BR> 2013-01-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* doc/db_postgres.sql: Replace tabs with spaces.<BR> 2013-01-21 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* src/manage_sql.c (DFN_CERT_ADV_INFO_ITERATOR_FILTER_COLUMNS)<BR> (DFN_CERT_ADV_INFO_ITERATOR_COLUMNS): Change cve_refs to use alias cves.<BR> 2013-01-21 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> Add DFN-CERT advisories referencing CVEs to CVE get_info details.<BR> <BR>* src/manage.h (init_cve_dfn_cert_adv_iterator): Add new iterator for<BR> DFN-CERT advisories referencing CVEs.<BR> <BR>* src/manage_sql.c (init_cve_dfn_cert_adv_iterator): Add new iterator<BR> for DFN-CERT advisories referencing CVEs.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In case CLIENT_GET_INFO,<BR> \"cve\" info type branch add output of referencing CERT advisories.<BR> <BR>* tools/cert_db_init.sql: Change version number to 3.<BR> (dfn_cert_cves, dfn_cert_cves_adv_idx, dfn_cert_cves_cve_idx): Add table<BR> drops and definition as well as indices.<BR> (dfn_cert_cert_adv_delete): Add deletion trigger on dfn_cert_adv.<BR> <BR>* tools/dfn_cert_update: Add INSERT OR REPLACEs of CVEs into<BR> dfn_cert_cves.<BR> <BR>* tools/openvas-cert-sync.in (check_db_version): Add reinit on<BR> version 2.<BR> 2013-01-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (slave_setup): Add 404 check for remaining OMP calls in<BR> poll loop.<BR> 2013-01-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add a \"stop giveup\" task state, that allow the user to set slave tasks<BR> to \"stopped\" when they have been isolated in one of the request states<BR> due loss of contact with the slave.<BR> <BR>* src/manage.c (run_status_name, run_status_name_internal): Handle \"stop<BR> giveup\" like \"stop requested\".<BR> (slave_sleep_connect): New function. Loops trying to connect to slave,<BR> as before, but also checks for \"stop giveup\".<BR> (slave_setup): Check for \"stop giveup\" in the poll loop. Call<BR> slave_sleep_connect to do the connecting.<BR> (run_slave_task): Call slave_sleep_connect to do the connecting.<BR> (stop_task): For slave tasks that are in the states that can orphan the<BR> task from the user, put the task in the new \"stop giveup\" state to tell<BR> the run_slave_task process. The run_slave_task process will giveup on<BR> the slave and set the task to \"stopped\".<BR> (manage_check_current_task): Handle \"stop giveup\" like \"stop requested\".<BR> <BR>* src/manage.h (task_status_t): Add TASK_STATUS_STOP_REQUESTED_GIVEUP.<BR> <BR>* src/manage_sql.c (task_in_use, init_manage, set_task_requested)<BR> (task_current_report, delete_report): Handle \"stop giveup\" state.<BR> 2013-01-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (slave_setup): Check if the first GET_REPORT failed<BR> before trying the second.<BR> 2013-01-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (slave_setup): Remove trace sleep. If the slave task or<BR> report is missing, or if the status is missing from the GET_TASKS<BR> response, then stop trying to contact the slave and put the task into<BR> Internal Error.<BR> 2013-01-18 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> Rename CERT-DB column num_cves to cve_refs for consistency with CPEs.<BR> Check CERT database availability for get_info<BR> <BR>* src/manage.h (dfn_cert_adv_info_iterator_num_cves): Remove, renamed to<BR> dfn_cert_adv_info_iterator_cve_refs.<BR> (dfn_cert_adv_info_iterator_cve_refs): Add, renamed from<BR> dfn_cert_adv_info_iterator_num_cves.<BR> <BR>* src/manage_sql.c (DFN_CERT_ADV_INFO_ITERATOR_FILTER_COLUMNS)<BR> (DFN_CERT_ADV_INFO_ITERATOR_COLUMNS): Rename num_cves to cve_refs.<BR> (dfn_cert_adv_info_iterator_num_cves): Remove, renamed as in manage.h.<BR> (dfn_cert_adv_info_iterator_cve_refs): New, renamed as in manage.h.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In case CLIENT_GET_INFO<BR> add test if CERT database is loaded.<BR> In \"dfn_cert_adv\" info type branch change <num_cves> to <cve_refs>.<BR> <BR>* tools/cert_db_init.sql: Change version number to 2.<BR> (dfn_cert_advs) Change num_cves to cve_refs.<BR> <BR>* tools/dfn_cert_update: Change INSERT to INSERT OR REPLACE.<BR> Change num_cves to cve_refs.<BR> <BR>* tools/openvas-cert-sync.in (check_db_version): Add reinit on<BR> version 1.<BR> 2013-01-18 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* src.omp.c (buffer_notes_xml, buffer_overrides_xml): Increase length<BR> of excerpt from 40 to 60 characters. Even overlong words will not<BR> harm the GUI considerably at the new size.<BR> 2013-01-18 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/lsc_user.c (lsc_user_keys_create, lsc_user_rpm_create)<BR> (lsc_user_deb_recreate, lsc_user_exe_recreate, lsc_user_all_create):<BR> Call openvas_file_remove_recruse instead of openvas_file_rmdir_rf.<BR> <BR>* src/manage_sql.c (migrate_21_to_22, migrate_37_to_38)<BR> (migrate_54_to_55_format, send_to_sourcefire, send_to_verinice)<BR> (update_report_format_uuid, init_manage, manage_report)<BR> (manage_send_report, create_report_format, copy_report_format)<BR> (delete_report_format, manage_schema, manage_empty_trashcan): Call<BR> openvas_file_remove_recurse instead of openvas_file_rmdir_rf.<BR> <BR>* src/omp.c (strdiff): Call openvas_file_remove_recurse instead of<BR> openvas_file_rmdir_rf.<BR> 2013-01-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (slave_setup): New function. Body is the setup part of<BR> run_slave_task.<BR> (run_slave_task): Let slave_setup do the setup on the slave. If<BR> slave_setup fail just keep trying the entire setup again from scratch<BR> until it works.<BR> 2013-01-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (GET_ITERATOR_COLUMNS_PREFIX): New define.<BR> (GET_ITERATOR_COLUMNS): Call GET_ITERATOR_COLUMNS_PREFIX.<BR> (NVT_ITERATOR_COLUMNS_NVTS): New define. NVT_ITERATOR_COLUMNS with<BR> \"nvts.\" prefix.<BR> (select_config_nvts): Use NVT_ITERATOR_COLUMNS macros instead of naming<BR> the columns explicitly. This makes the SQL compatible with the<BR> init_nvt_iterator accessors.<BR> 2013-01-17 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* ChangeLog: Fix date of last entry.<BR> 2013-01-17 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* ChangeLog: Clean up previous own entries for style consistency.<BR> 2013-01-17 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Remove duplicated functions which are now part of base libraries.<BR> <BR>* src/lsc_user.c (file_utils_rmdir_rf, file_utils_copy_file,<BR> file_utils_move_file): Remove functions.<BR> (lsc_user_keys_create, lsc_user_rpm_create, lsc_user_deb_create)<BR> (lsc_user_exe_create, lsc_user_all_create): Use openvas_file_copy,<BR> openvas_file_move, openvas_file_rmdir_rf functions from libraries<BR> instead of removed functions<BR> <BR>* src/manage_sql.c: Include openvas_file.h from base libraries.<BR> (file_utils_copy_file, file_utils_rmdir_rf): Remove duplicated functions.<BR> (migrate_21_to_22, migrate_37_to_38, migrate_54_to_55_format)<BR> (send_to_sourcefire, send_to_verinice, update_report_format_uuid)<BR> (init_manage, manage_report, manage_send_report, create_report_format)<BR> (create_report_format, copy_report_format, delete_report_format)<BR> (manage_schema): Use openvas_file functions from base libraries instead<BR> of removed duplicate functions.<BR> <BR>* src/omp.c: Include openvas_file.h from base libraries.<BR> (check_is_dir, file_utils_rmdir_rf): Remove duplicate functions.<BR> (strdiff): Use openvas_file_rmdir_rf instead.<BR> 2013-01-17 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Get specific settings filter<BR> for the info type queried.<BR> <BR>* src/manage_sql.c (manage_set_setting): Check sepecic secinfo types<BR> instead of secinfo.<BR> 2013-01-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* ChangeLog: Put last entry in order.<BR> 2013-01-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (RUN_SLAVE_TASK_SLEEP_SECONDS): New define.<BR> (slave_connect): New function.<BR> (run_slave_task): Connect to slave with slave_connect. If the<BR> connection fails, keep trying. If there\'s an error getting the slave<BR> task or report, keep trying.<BR> 2013-01-16 Werner Koch <wkAATTgnupg.org><BR> <BR>* src/manage_sql.c (DEF_ACCESS): Remove multiple identical<BR> definitions of this macro and the corresponding undefs. Prefix<BR> one set of macro uses with \"result_iterator_\" to accommodate for<BR> one slightly different version of that macro.<BR> 2013-01-16 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_INFO fix misspelled<BR> opening tag to dfn_cert_adv.<BR> 2013-01-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_INFO add missing<BR> opening tag to dfn_cert_adv case.<BR> 2013-01-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add multiple NVT support to GET_INFO. Hence increase database<BR> version to 74. Add database migration from version 73 to 74.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 74.<BR> <BR>* src/manage_sql.c (create_tables): Add standard GET columns to nvts.<BR> (migrate_73_to_74): New function. Adds GET columns, including<BR> extracting creation and modification times from tags.<BR> (database_migrators): Add migrate_73_to_74.<BR> (init_manage_process): Create parse_time and tag SQL functions.<BR> (NVT_ITERATOR_COLUMNS): Add standard GET columns.<BR> (NVT_INFO_ITERATOR_FILTER_COLUMNS): New define. Adjust accessor<BR> positions accordingly.<BR> (init_nvt_info_iterator, nvt_info_count): New function.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_INFO add iterator<BR> support for NVTs.<BR> <BR>* src/sql.c (sql_parse_time, sql_tag): New functions.<BR> <BR>* doc/db_postgres.sql (nvts): Add GET columns.<BR> <BR>* doc/db.png: Update from source.<BR> 2013-01-16 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Enforce check of<BR> user_filter size in get default filter from settings cases.<BR> <BR>* src/manage_sql.c (setting_filter): Update documentation.<BR> 2013-01-16 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (setting_filter): Return filter uuid directly instead<BR> of term. Update documentation.<BR> (manage_set_setting): Add SecInfo filter checking.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Add settings default filter<BR> support in GET INFO case. Update GET cases to also set the filt_id when<BR> setting the filter from settings filters.<BR> 2013-01-16 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> Update copyright dates and authors in heading comments of various files.<BR> <BR>* tools/dfn_cert_getbyname.xsl, tools/dfn_cert_update.xsl:<BR> Update heading comment dates, authors and fix description.<BR> <BR>* src/CMakeLists.txt, src/manage_sql.c, src/manage_sql.h, src/manage.c,<BR> src/omp.c, src/manage.h, CMakeLists.txt:<BR> Update heading comment dates and authors.<BR> 2013-01-16 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> Add basic DFN-CERT advisory support to OMP.<BR> <BR>* CMakeLists.txt: Add tools/dfn_cert_getbyname.xsl<BR> <BR>* src/CMakeLists.txt: Add \"add_definitions\" for CERT directories.<BR> <BR>* src/manage.c (DFN_CERT_ADV_FILENAME_FMT, DFN_CERT_ADV_GETBYNAME_XSL):<BR> Add #defines used by get_dfn_cert_adv_filename and manage_read_info.<BR> (get_dfn_cert_adv_filename): Add function to find file name of a<BR> DFN-CERT advisory.<BR> (manage_cert_update_time): Add function.<BR> (manage_read_info): Add else if for dfn_cert_adv.<BR> <BR>* src/manage.h (manage_read_info): Move to top of SecInfo functions.<BR> (manage_cert_loaded, manage_cert_update_time)<BR> (init_dfn_cert_adv_info_iterator, dfn_cert_adv_info_count)<BR> (dfn_cert_adv_info_title, dfn_cert_adv_info_summary)<BR> (dfn_cert_adv_info_num_cves): Add.<BR> <BR>* src/manage_sql.c (init_manage_process): Add attachment of CERT<BR> database.<BR> (DFN_CERT_ADV_INFO_ITERATOR_FILTER_COLUMNS)<BR> (DFN_CERT_ADV_INFO_ITERATOR_COLUMNS): Add #defines.<BR> (manage_cert_loaded, init_dfn_cert_adv_info_iterator)<BR> (dfn_cert_adv_info_count, dfn_cert_adv_info_title)<BR> (dfn_cert_adv_info_summary, dfn_cert_adv_info_num_cves): Add function<BR> to check if CERT database is loaded and DFN-CERT iterator functions.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In case CLIENT_GET_INFO add<BR> else if branches for dfn_cert_adv.<BR> <BR>* tools/dfn_cert_getbyname.xsl: Add new stylesheet to select DFN-CERT<BR> advisories by their ID.<BR> 2013-01-15 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/db_postgres.sql: Update to reflect added creation and modification<BR> times in various resource types in DB.<BR> <BR>* src/db.png: Update to match latest version.<BR> 2013-01-15 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (manage_set_setting): Fix comment typo. Add<BR> lsc_credentials and slaves filters. Remove reports filter.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Use resource filter from<BR> settings in case of default or empty filter when getting notes,<BR> overrides, port lists, report formats, schedules, agents, configs,<BR> alerts, filters, credentials, slaves, targets and tasks.<BR> 2013-01-15 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (setting_filter): New function to get a resource<BR> settings filter.<BR> (manage_set_setting): Handle per-resource filters settings.<BR> <BR>* src/manage.h: Add setting_filter header.<BR> 2013-01-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS remove old<BR> variable.<BR> 2013-01-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (task_threat_level): Use task_target instead of SQL.<BR> (task_trend): Return NULL for container tasks.<BR> 2013-01-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): For tasks, when the sort column is<BR> threat then collate with collate_threat.<BR> (collate_threat): Check for the empty string first, because in some<BR> SQL contexts the threat can be NULL, like for container tasks.<BR> (init_manage_process): Add collate_threat SQL collator.<BR> (task_threat_level): Return NULL for container tasks.<BR> 2013-01-14 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> Add CERT advisory database and sync with a local DFN-CERT feed data.<BR> <BR>* CMakeLists.txt: Add CERT paths and files (see added files here).<BR> <BR>* tools/cert_db_init.sql: New SQL script to create new CERT database.<BR> <BR>* tools/dfn_cert_update.xsl: New XSLT Stylesheet to import DFN-CERT<BR> advisories into database.<BR> <BR>* tools/openvas-certdata-sync: New CERT synchronization script.<BR> Creates and updates CERT database using local XML files.<BR> 2013-01-14 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* ChangeLog: Fix last entry to reflect real changes.<BR> (was an entry for changes not actually committed).<BR> 2013-01-14 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* src/manage.c (manage_read_info): Add line break (line was >80 chars).<BR> <BR>* src/manage.h: Remove argument names for SCAP iterator initialization<BR> functions to make them more consistent.<BR> 2013-01-11 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (alert_writable, trash_alert_writable): Make alerts<BR> always editable.<BR> 2013-01-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_INFO correct the type<BR> in init_info_iterator return 2.<BR> 2013-01-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_INFO append the raw<BR> data with g_string_append_printf instead of xml_string_append because<BR> the markup in the raw data is required.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* ChangeLog: Add parentheses.<BR> <BR>* src/manage_sql.c (send_to_verinice): Neaten comment. Indent properly.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Remove escaping now handled by<BR> xml_string_append.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (get_ovaldef_filename): Cleanup formatting.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_INFO indent if<BR> block by 2 instead of 3.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (copy_resource, copy_alert, copy_task, copy_target)<BR> (copy_config, copy_report_format, copy_port_list): Find the user inside<BR> the transaction, just to be safe.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/report_formats/LaTeX/latex.xsl (notes, overrides): Format dates<BR> nicely.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/report_formats/NBE/NBE.xsl (ctime): New template.<BR> (scan_start, scan_end, report): Generate times with ctime because that<BR> is the date format that the original NBE file format used.<BR> 2013-01-10 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Fixed two bugs so that<BR> complex directory structures for oval data will work.<BR> 2013-01-10 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Add support to modify Alerts data and filters.<BR> <BR>* src/manage_sql.c (modify_alert): Modify alert\'s event, condition,<BR> method and filter. Change interface and documentation accordingly.<BR> <BR>* src/manage.h: Change modify_alert accordingly.<BR> <BR>* src/omp.c (modify_alert_t): Add event, event_data, filter_id,<BR> condition, condition_data, method, method_data, part_data and part_name<BR> elements.<BR> (modify_alert_data_reset): Free filter_id, event, event_data,<BR> condition, condition_data, method and method_data.<BR> (client_state_t): Add client states for alert filter, event, condition<BR> and method elements.<BR> (omp_xml_handle_start_element): Handle alert event, condition and method<BR> data. Fix ELSE_ERROR typos.<BR> (omp_xml_handle_end_element): Adapt to modify_alert interface changes.<BR> Handle event, condition and method data.<BR> (omp_xml_handle_text_element): Append data in alert event, condition and<BR> method tags to appropriate elements.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/report_formats/TXT/TXT.xsl (scan_start): New template. Formats<BR> date nicely.<BR> (scan_end): Format date nicely.<BR> (real-report): Call date templates for start and end dates.<BR> 2013-01-10 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Added --help.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (create_agent_data_t): Align comment.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_INFO use<BR> xml_string_append in more places, because the info can contain special<BR> characters.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (OVALDEF_INFO_ITERATOR_COLUMNS): Align separator.<BR> (get_ovaldef_short_filename): Add space.<BR> <BR>* src/manage_sql.h (get_ovaldef_short_filename): Add space. Remove name.<BR> 2013-01-10 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync, tools/openvas-scapdata-sync.in:<BR> Change OVAL file listing to include subdirectories of oval directory.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* ChangeLog: Cleanup entry.<BR> 2013-01-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_cpe_info_iterator, init_cve_info_iterator)<BR> (init_ovaldef_info_iterator): Remove the filter GET arg when a name is<BR> given, because the exact entry is required and the filtering gets in the<BR> way.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_INFO update declaration<BR> accordingly.<BR> 2013-01-10 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> Renamed db_init.sql to scap_db_init.sql to avoid confusion with future<BR> Cert database. Changed SCAP database version and removed old migration<BR> scripts as re-creation of database is recommended to ensure<BR> consistency.<BR> <BR>* CMakeLists.txt: Changed db_init.sql to scap_db_init.sql.<BR> Removed migrate_db4.xsl.<BR> <BR>* tools/db_init.sql: Removed. Renamed to scap_db_init.sql.<BR> <BR>* tools/greenbone-scapdata-sync, tools/openvas-scapdata-sync.in:<BR> Changed db_init.sql to scap_db_init.sql. Changed database version to 8.<BR> Removed old migration scripts.<BR> <BR>* tools/scap_db_init.sql: Added. Renamed from db_init.sql.<BR> Change version to 8 and updated DROP TABLE ... queries.<BR> <BR>* tools/migrate_db4.xsl: Removed.<BR> 2013-01-10 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* tools/db-init.sql: Change version number to 7.<BR> <BR>* tools/openvas-scapdata-sync.in (update_sec_db): Fix queries for<BR> latest CVEs and OVAL-defs still expecting timestamps stored as strings.<BR> Change timestamp-based filtering of OVAL definitions to use new<BR> oval_timestamp.xsl and evaluate xml-file specific timestamps to a<BR> ccomodate possible added repositories with older timestamps.<BR> Sort OVAL files by timestamp date before updating so latest definitions<BR> are stored in database in case of duplicates.<BR> (list_oval_files_sorted, list_oval_files_sortable): New helper functions<BR> for sorting OVAL files.<BR> <BR>* tools/greenbone-scapdata-sync: Updated timestamp filtering.<BR> For details see: tools/openvas-scapdata-sync.in (update_sec_db,<BR> list_oval_files_sorted, list_oval_files_sortable).<BR> <BR>* tools/oval_timestamp.xsl: Remove surrounding SQL query to make more<BR> reusable.<BR> 2013-01-09 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (delete_alert, delete_target, delete_config)<BR> (delete_schedule, delete_slave): Check if any task is using the resource<BR> in the \"ultimate\" case, to catch the case where the resource is in the<BR> table and the task is in the trash.<BR> 2013-01-09 Andre Heinecke <andre.heineckeAATTgreenbone.net><BR> <BR>* src/manage_sql.c (send_to_verinice): Do not log the password in debug<BR> output.<BR> 2013-01-09 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (port_list_is_predefined): New function.<BR> (delete_port_list, port_list_in_use, port_list_writable): Use<BR> port_list_is_predefined adequately.<BR> <BR>* src/manage.h: Add port_list_is_predefined header accordingly.<BR> 2013-01-09 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (port_list_name, trash_port_list_name)<BR> (trash_port_list_uuid, port_list_ssh_lsc_credential): Remove unused<BR> functions.<BR> <BR>* src/manage.h: Remove headers accordingly.<BR> 2013-01-08 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_user_get_iterator, init_get_iterator): Wrap the<BR> filter clause in parentheses because it may have multiple subclauses.<BR> 2013-01-08 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (keyword_applies): Revert from skipping any duplicate<BR> column keywords, introduced in r14801, to skipping the special keywords<BR> on a special case basis. This is necessary because it is valid to have<BR> multiple normal column keywords, for example \"name=a or name=b\".<BR> 2013-01-08 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* ChangeLog: Cleanup two entries.<BR> 2013-01-08 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (modify_alert): New function.<BR> <BR>* src/manage.h: add modify_alert header.<BR> <BR>* src/omp.c (omp_commands): Add modify_alert omp command.<BR> (modify_alert_data_t): New data structure.<BR> (modify_alert_data_reset): New function to free modify_alert_data_t\'s<BR> data.<BR> (command_data_t): Add modify_alert command.<BR> (modify_alert_data): Add parser callback for modify_alert command.<BR> (client_state_t): Add CLIENT_MODIFY_ALERT, CLIENT_MODIFY_ALERT_NAME and<BR> CLIENT_MODIFY_ALERT_COMMENT states.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text_element): Handle modify_alert case.<BR> 2013-01-08 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): Make sorting by column case<BR> insensitive.<BR> 2013-01-07 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Fixed missing \"fi\".<BR> 2013-01-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (create_note): Allow NVT OID to be \"0\", for open<BR> ports.<BR> 2013-01-07 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (lsc_credential_writabe, trash_lsc_credential_writable):<BR> Make credentials always writable, even when in use by a target.<BR> 2013-01-07 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_element): Send nvt families when details<BR> attribute is set.<BR> 2013-01-07 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* tools/db_init.sql: Fix OVAL definition table name mistakenly reverted<BR> to old name oval_def instead of correct ovaldefs.<BR> <BR>* tools/oval_update: Fix misspelled test causing dates of individual<BR> definitions not to be recognized.<BR> 2013-01-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (slave_writable, trash_slave_writable): Always return<BR> 1. Changing the slave should have little effect on the comparability of<BR> reports.<BR> (slave_in_use): Only consider slave in use if a regular task is using<BR> the slave. This allows the user to put the slave in the trashcan when a<BR> trashcan task is using the slave.<BR> 2013-01-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (alert_iterator_filter_trash): New function.<BR> <BR>* src/manage.h: Update header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_ALERTS add missing<BR> FILTER/TRASH.<BR> 2013-01-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> In GET_ALERTS return the details of the right filter when the filter<BR> is in the trashcan.<BR> <BR>* src/manage_sql.c (ALERT_ITERATOR_COLUMNS)<BR> (ALERT_ITERATOR_TRASH_COLUMNS): Add filter location column.<BR> (alert_iterator_filter): Return filter_t instead of int.<BR> (alert_iterator_filter_uuid, alert_iterator_filter_name)<BR> (trash_filter_uuid, trash_filter_name): New functions.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_ALERTS get filter UUID<BR> and name directly from iterator.<BR> 2013-01-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (modify_filter): Use strcasecmp for type check so<BR> client can use any case.<BR> 2013-01-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (modify_filter): Check that type is valid if filter<BR> is in use.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In MODIFY_FILTER check for<BR> filter type error.<BR> 2013-01-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (create_alert): Check filter type.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In CREATE_ALERT check for<BR> filter type error.<BR> 2013-01-07 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Add support for proxy authentication.<BR> Based on patch submitted by Christian Schmidt.<BR> 2013-01-07 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Add modify port list functionality.<BR> <BR>* src/omp.c (modify_port_list_data_t): New structure.<BR> (modify_port_list_data_reset): New function.<BR> (command_data_t): Add modify_port_list element.<BR> (omp_commands): Add modify_port_list omp command.<BR> (modify_port_list_data): Add parser callback for modify_port_list<BR> command.<BR> (client_state_t): Add CLIENT_MODIFY_PORT_LIST,<BR> CLIENT_MODIFY_PORT_LIST_NAME and CLIENT_MODIFY_PORT_LIST_COMMENT states.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text_element): Handle modify_port_list case.<BR> <BR>* src/manage_sql.c (modify_port_list): New function.<BR> (modify_agent): Fix documentation.<BR> <BR>* src/manage.h: Add modify_port_list header.<BR> 2013-01-07 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> Individual OVAL definitions are now filtered out when older than the<BR> latest in the SCAP database.<BR> <BR>* tools/oval_update.xsl: Add parameter refdate and check of dates in<BR> <oval_repository> tag to filter out older definitions.<BR> <BR>* tools/greenbone-scapdata-sync: Add passing of parameter OVAL_REFDATE<BR> to xsltproc for oval_update.xsl.<BR> <BR>* tools/openvas-scapdata-sync.in: Add passing of parameter OVAL_REFDATE<BR> to xsltproc for oval_update.xsl.<BR> 2013-01-04 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> Timestamps from tag oval_repository are now used for timestamps<BR> of OVAL definitions.<BR> Improved escaping of characters in OVAL defintions to avoid XML errors<BR> caused by unescaped ampersands (&) in titles and descriptions.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In case CLIENT_GET_INFO add<BR> escaping of ampersands.<BR> Reworked indentation of OVAL code in this section.<BR> <BR>* tools/oval_update.xsl: Add template to get creation_date and<BR> modification_date from tag oval_repository if it exists.<BR> Change handling of quotes to replace them with double quotes in<BR> generated SQL queries.<BR> 2013-01-04 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (get_port_lists_data_t): Remove ranges element.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element): Don\'t use<BR> ranges element of get_port_lists_data as it duplicates functionality of<BR> details get attribute.<BR> 2013-01-04 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Add modify agent feature.<BR> <BR>* src/omp.c (modify_agent_data_t): New structure.<BR> (omp_commands): Add modify_agent omp command.<BR> (modify_agent_data_reset): New function.<BR> (command_data_t): Add modify_agent element.<BR> (modify_agent_data): Add parser callback for modify_agent command.<BR> (client_state_t): Add CLIENT_MODIFY_AGENT, CLIENT_MODIFY_AGENT_NAME and<BR> CLIENT_MODIFY_AGENT_COMMENT states.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text_element): Handle modify_agent case.<BR> <BR>* src/manage_sql.c (modify_agent): New function.<BR> <BR>* src/manage.h: add modify_agent header.<BR> 2013-01-03 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> Cleaned up some trailing whitespaces and lines longer than 80<BR> characters in OVAL sections.<BR> <BR>* ChangeLog: Remove trailing whitespaces.<BR> <BR>* src/manage.c: Remove trailing whitespaces.<BR> <BR>* src/manage.h: Remove trailing whitespaces, insert line breaks.<BR> <BR>* src/manage-sql.c: Remove trailing whitespaces, insert line breaks.<BR> <BR>* src/manage-sql.h: Remove trailing whitespaces.<BR> <BR>* tools/greenbone-scapdata-sync: Remove trailing whitespaces.<BR> <BR>* tools/openvas-scapdata-sync.in: Remove trailing whitespaces.<BR> 2013-01-03 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Fix non-unique names when cloning global resources. Remove some extra<BR> sql.<BR> <BR>* src/manage_sql.c: Add find_user static header.<BR> (copy_resource, copy_task, copy_target, copy_config, copy_alert)<BR> (copy_report_format, copy_port_list): uniquify based on user cloning the<BR> object rather than the object\'s owner.<BR> (copy_alert, copy_report_format, copy_port_list): Style update.<BR> (copy_report_format): Use owner value instead of subquery for user id.<BR> 2013-01-03 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (copy_report_format): Remove extra sql rollback.<BR> 2013-01-03 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Add clone ability to Report Formats.<BR> <BR>* src/manage_sql.c (copy_report_format): New function to copy a Report<BR> Format in the DB and on disk.<BR> (file_utils_copy_file): New function. Duplicate from lsc_users.<BR> <BR>* src/manage.h: Add copy_report_format header accordingly.<BR> <BR>* src/omp.c (create_report_format_data_t): Add copy element.<BR> (create_report_format_data_reset): Free copy element.<BR> (client_state_t): Add CLIENT_CREATE_REPORT_FORMAT_COPY.<BR> (omp_xml_handle_text): Copy Report Format uuid from copy element into<BR> create data copy element.<BR> (omp_xml_handle_start_element): Add Report Format copy client state.<BR> (omp_xml_handle_end_element): Handle Report Format copy case.<BR> 2013-01-02 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> Add output of raw data for OVAL definitions.<BR> Change SCAP database format to include source file of OVAL definitions.<BR> Change namespaces and schemas in OVAL XSL files to use OVAL ones<BR> instead of ones left from CPE/CVE.<BR> <BR>* CMakeLists.txt: Add ovaldef_getbyname.xsl<BR> <BR>* src/manage.c: Add raw data extraction for OVALDEF.<BR> (OVALDEF_GETBYNAME_XSL): Add constant for OVAL selection stylesheet.<BR> (get_ovaldef_filename): Add function to get full source filename.<BR> (manage_read_info): Add else if branch for OVALDEF.<BR> <BR>* src/manage.h: Add declaration of ovaldef_info_iterator_xml_file<BR> <BR>* src/manage_sql.c (get_ovaldef_short_filename): Add new function<BR> to get short xml filenames (as stored in SCAP database) of OVALDEFs.<BR> Change OVALDEF_INFO_ITERATOR_FILTER_COLUMNS and<BR> OVALDEF_INFO_ITERATOR_COLUMNS to include \"xml_file\"<BR> (ovaldef_info_iterator_xml_file): Add function to read xml_file of<BR> OVALDEFs.<BR> <BR>* src/manage_sql.h: Add declaration of get_ovaldef_short_filename.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In case CLIENT_GET_INFO add<BR> output of \"xml_file\" to OVALDEF.<BR> <BR>* tools/db_init.sql: Add column \"xml_file\" to table \"ovaldefs\"<BR> <BR>* tools/greenbone-scapdata-sync: Add migration to database version 7,<BR> Remove obsolete migration scripts.<BR> Update xsltproc call to pass xml file name as parameter.<BR> <BR>* tools/migrate_db5to6: Remove file as OVAL data has to be re-imported<BR> for new database version.<BR> <BR>* tools/openvas-scapdata-sync.in: Analogous to greenbone-scapdata-sync.<BR> <BR>* tools/ovaldef_getbyname.xsl: New stylesheet to select an OVAL<BR> definition with a given identifier.<BR> <BR>* tools/oval_timestamp: Remove unused namespaces,<BR> Update schemaLocation to OVAL schemas.<BR> <BR>* tools/oval_update.xsl: Remove unused namespaces,<BR> Update schemaLocation to OVAL schemas.<BR> Add xml_file to SQL query.<BR> 2013-01-02 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Add clone ability to Port Lists.<BR> <BR>* src/manage_sql.c (copy_port_list): New function for Port List cloning.<BR> <BR>* src/manage.h: Add copy_port_list header.<BR> <BR>* src/omp.c (create_port_list_data_t): Add copy element.<BR> (create_port_list_data_reset): Free copy element.<BR> (client_state_t): Add CLIENT_CREATE_PORT_LIST_COPY.<BR> (omp_xml_handle_end_element): Handle Port List copy case.<BR> (omp_xml_handle_start_element): Add Port List copy client state.<BR> (omp_xml_handle_text): Append port list id from copy tag into<BR> create_lsc_credential_data copy element.<BR> 2013-01-02 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (copy_alert): Return 2 when alert to copy is not<BR> found. Use sql_string to check for alert. Fix SQL query style.<BR> 2013-01-01 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (copy_alert): New function to clone an alert.<BR> <BR>* src/manage.h: Add copy_alert header.<BR> <BR>* src/omp.c (create_alert_data_t): Add copy element.<BR> (create_alert_data_reset): Free copy element.<BR> (client_state_t): Add CLIENT_CREATE_ALERT_COPY.<BR> (omp_xml_handle_start_element): Handle alert copying case.<BR> (omp_xml_handle_end_element): Handle case when create_alert_data copy<BR> element is set. Close copy tag.<BR> (omp_xml_handle_text_element): Append content of copy tag to<BR> create_alert_data copy element.<BR> 2013-01-01 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (copy_resource): Free quoted_uuid before returning.<BR> (copy_schedule): Style fix.<BR> 2012-12-31 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (copy_config): Check if config name exists already<BR> when provided name is not null or empty. Create unique name and copy<BR> comment for clone case when no name is provided.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Check copy element also when<BR> checking name too to permit blank name sent in clone case.<BR> 2012-12-31 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (init_user_lsc_credential_iterator): Use<BR> LSC_CREDENTIAL_ITERATOR_COLUMNS to follow the same order of columns used<BR> by init_lsc_credential_iterator as functions to access columns\' values<BR> are shared.<BR> 2012-12-31 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (client_state_t): Add CLIENT_CREATE_LSC_CREDENTIAL_COPY.<BR> (create_lsc_credential_data_t): Add copy element.<BR> (omp_xml_handle_text): Add uuid from copy tag to<BR> create_lsc_credential_data copy element.<BR> (omp_xml_handle_end_element): Handle LSC Credential copy case.<BR> (omp_xml_handle_start_element): Add LSC Credential copy client state.<BR> (create_agent_data_reset, create_lsc_credential_data_reset)<BR> (create_schedule_data_reset, create_slave_data_reset)<BR> (create_target_data_reset): Free copy element.<BR> <BR>* src/manage_sql.c (copy_lsc_credential): New function<BR> match other resources copy functions style.<BR> <BR>* src/manage.h: Add copy_lsc_credential header.<BR> 2012-12-28 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (copy_agent): New function<BR> (agent_uuid): Change interface to take one agent_t as a parameter and<BR> match other resources copy functions style.<BR> <BR>* src/manage.h: Change agent_uuid and add copy_agent header.<BR> <BR>* src/omp.c (create_agent_data_t): Add copy char pointer.<BR> (client_state_t): Add CLIENT_CREATE_AGENT_COPY.<BR> (omp_xml_handle_start_element): Add agent copy state check.<BR> (omp_xml_handle_end_element): Handle agent copy for CLIENT_CREATE_AGENT<BR> case. Adapt agent_uuid call to interface change. Add log entry for Agent<BR> creation.<BR> (omp_xml_handle_text): Add content of copy tag to create_agent_data copy<BR> element.<BR> 2012-12-28 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (update_all_config_caches, update_config_cache):<BR> Initialize iterator with needed columns only instead of using<BR> CONFIG_ITERATOR_COLUMNS.<BR> 2012-12-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (CONFIG_ITERATOR_FILTER_COLUMNS)<BR> (CONFIG_ITERATOR_COLUMNS, CONFIG_ITERATOR_TRASH_COLUMNS): Rename<BR> family_count, nvt_count, families_growing and nvts_growing columns to<BR> families_total, nvts_total, families_trend and nvts_trend.<BR> 2012-12-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_user_config_iterator)<BR> (update_all_configs_caches, manage_complete_nvts_cache_update): Use<BR> CONFIG_ITERATOR_COLUMNS instead of CONFIG_ITERATOR_FIELDS.<BR> (CONFIG_ITERATOR_FIELDS): Remove unused define.<BR> 2012-12-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_config_iterator): Change interface. Take two<BR> parameters: iterator_t and get_data_t.<BR> (config_iterator_comment): Define with DEF_ACCESS.<BR> (config_iterator_nvt_selector, config_iterator_families_growing)<BR> (config_iterator_nvts_growing): Adjust column number.<BR> (config_iterator_family_count, config_iterator_nvt_count): New<BR> functions.<BR> <BR>* src/manage.h: Add config_iterator_nvt_count and<BR> config_iterator_family_count headers. Modify init_config_iterator<BR> header.<BR> <BR>* src/omp.c (get_configs_data_t): Change data strucutre to contain four<BR> elements: families, prefernces, get and tasks.<BR> (get_configs_data_reset): Use get_data_reset.<BR> (omp_xml_handle_start_element): Use get_data_parse_attributes in<BR> GET_CONFIGS case. Check tasks attribute.<BR> (omp_xml_handle_end_element): Adapt to new init_configs_iterator<BR> interface. Use SEND_GET_START, SEND_GET_COMMON and SEND_GET_END macros.<BR> Check details and tasks attributes.<BR> 2012-12-27 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_ovaldef_info_iterator): Fix use of wrong filter<BR> columns for OVAL definitions.<BR> 2012-12-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Migrate database to version 73, add creation and modification times<BR> to scan configs.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Set to 73.<BR> <BR>* src/manage_sql.c (create_tables): Add creation_time and<BR> modification_time columns to configs and configs_trash tables.<BR> (migrate_72_to_73): New function.<BR> (database_migrators): Add migrate_72_to_73.<BR> (init_manage, create_config, create_config_rc, delete_config)<BR> (manage_restore): Insert into creation_time and modification_time<BR> columns current time value.<BR> (insert_rc_into_config, manage_set_config_comment)<BR> (manage_set_config_name, manage_set_config_name_comment)<BR> (manage_set_config_nvts, manage_set_config_families): Update<BR> modification_time column to current time value.<BR> <BR>* doc/db.png: Update to version 73.<BR> 2012-12-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (config_count): New function.<BR> (CONFIG_ITERATOR_FILTER_COLUMNS, CONFIG_ITERATOR_COLUMNS)<BR> (CONFIG_ITERATOR_TRASH_COLUMNS): Add defines.<BR> <BR>* src/manage.h: Add config_count header.<BR> 2012-12-27 Timo Pollmeier <timo.pollmeierAATTgreenbone.net><BR> <BR>* CMakeLists.txt: Add SCAP.db migration script migrate_db5to6.sql<BR> <BR>* src/manage.h (init_ovaldef_info_iterator)<BR> (ovaldef_info_count, ovaldef_info_iterator_version)<BR> (ovaldef_info_iterator_deprecated, ovaldef_info_iterator_def_class)<BR> (ovaldef_info_iterator_title, ovaldef_info_iterator_description):<BR> Add iterator function declarations for OVAL definition data (ovaldef).<BR> <BR>* src/manage_sql.c: Add implementations of new iterator functions<BR> declared in src/manage.h<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In case CLIENT_GET_INFO<BR> Add XML output of basic ovaldef data.<BR> <BR>* tools/db_init.sql: Change database columns to include attributes<BR> uuid, name, comment, creation_time, modification_time. Change DB<BR> version to 6.<BR> <BR>* tools/greenbone-scapdata-sync: Add migration to new database format.<BR> <BR>* migrate_db5to6.sql: Add new SQL file to migrate data from SCAP DB<BR> version 5 to 6.<BR> <BR>* tools/openvas-scapdata-sync.in: Add migration to new database format<BR> <BR>* tools/oval_update.xsl: Change SQL queries to match new database format<BR> 2012-12-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Upgrade FIX to TODO.<BR> 2012-12-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (create_report_format): Make the name unique instead<BR> of failing, when a report format with the name exists already. This<BR> matches the other importers.<BR> 2012-12-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (omp_xml_handle_start_element): In CLIENT_C_C_GCR set<BR> the import flag again, because the reset clears it.<BR> 2012-12-21 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (delete_report_format): Fix column name.<BR> 2012-12-21 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (trash_config_writable): New function.<BR> (config_writable): Base results on config_in_use.<BR> <BR>* src/manage.h: Add header accordingly.<BR> 2012-12-21 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (GET_ITERATOR_FILTER_COLUMNS)<BR> (PORT_LIST_ITERATOR_COLUMNS,PORT_LIST_ITERATOR_TRASH_COLUMNS): Use<BR> total, tcp and udp as names for count columns.<BR> 2012-12-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (create_port_list_lock): Always give the port ranges<BR> new UUIDs.<BR> 2012-12-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Read over bogus elements when importing.<BR> <BR>* src/omp.c (omp_parser_t): Add importing and parent_state.<BR> (ELSE_ERROR): When importing go into \"read-over mode\".<BR> (omp_xml_handle_start_element): Set importing flag on omp_parser for<BR> import commands.<BR> (omp_xml_handle_end_element): In read-over mode when the parent_state is<BR> set then switch to that state instead of leaving it to a specific case.<BR> Move setting the import_config_data import flag to<BR> omp_xml_handle_start_element to match other commands.<BR> 2012-12-21 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_config_iterator): Correct configs table name.<BR> 2012-12-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_get_iterator): Add a 1 to single resource case<BR> of owned_and_used_by_clause because used_by_clause starts with OR.<BR> 2012-12-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_task_alert_iterator): Specify event as integer<BR> because it\'s an enum.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In CREATE_TASK add a fail flag<BR> to the alert while, because now that it\'s a while the breaks will break<BR> out of the while instead of the case.<BR> 2012-12-20 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* src/otp.c (parse_scanner_plugin_list_tags): Don\'t set the risk factor<BR> for the nvti anymore. Will be computed from the cvss automatically.<BR> <BR>* src/manage_sql.c (update_nvti_cache): Don\'t set the risk factor<BR> anymore.<BR> (make_nvt_from_nvti): Simplified risk factor retrieval because<BR> always a sensible string is return.<BR> 2012-12-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.h (get_data_t): Add type and subtype.<BR> <BR>* src/manage_sql.c (type_owned): New function.<BR> (resource_count): Pass the subtype if there is one, and check whether<BR> the type is owned. This gets the get_info cases working.<BR> <BR>* src/omp.c (get_data_reset): Free type and subtype.<BR> (get_data_parse_attributes): Set type.<BR> (omp_xml_handle_end_element): Set subtype.<BR> 2012-12-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (get_alerts_data_t, get_overrides_data_t): Align comment.<BR> (omp_xml_handle_end_element): Neaten formatting.<BR> 2012-12-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add back the full count in GET_TASKS, adding to all other new-style GET<BR> ops at the same time.<BR> <BR>* src/manage_sql.c (vector_find_string): Add vector NULL check.<BR> (resource_count): New function.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> <BR>* src/omp.c (send_get_end): Add full count arg.<BR> (SEND_GET_END): Pass full count to send_get_end.<BR> (omp_xml_handle_end_element): Remove old code that added full count in<BR> GET_TASKS.<BR> 2012-12-20 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (PORT_LIST_ITERATOR_FILTER_COLUMNS): Add count_all,<BR> count_tcp and count_udp columns.<BR> (PORT_LIST_ITERATOR_TRASH_COLUMNS): Add count ports, tcp ports and udp<BR> ports SQL statements.<BR> 2012-12-20 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (port_list_iterator_count): Rename function to<BR> port_list_iterator_count_all.<BR> (PORT_LIST_ITERATOR_COLUMNS): Add SQL statements to count all ports, tcp<BR> ports and udp ports of the port_list.<BR> (port_list_iterator_count_all, port_list_iterator_count_tcp)<BR> (port_list_iterator_count_udp): Use sqlite3_column_int and<BR> GET_ITERATOR_COLUMN_COUNT.<BR> <BR>* src/manage.h: Rename port_list_iterator_count header.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Call<BR> port_list_iterator_count_all in CLIENT_GET_PORT_LSITS case.<BR> 2012-12-20 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (get_lsc_credentials_data_t): Add targets boolean.<BR> (omp_xml_handle_start_element): Check targets attribute value.<BR> (omp_xml_handle_end_element): Refactor sending of login and type<BR> elements and repeated lsc_credential_iterator_public_key function call.<BR> Check targets boolean as a condition to send targets using the LSC<BR> Credential.<BR> 2012-12-19 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_lsc_credential_iterator): Change interface to<BR> use iterator_t and a get_data_t as arguments. Use init_get_iterator.<BR> (lsc_credential_iterator_comment): Define with DEF_ACCESS.<BR> (lsc_credential_iterator_login, lsc_credential_iterator_password)<BR> (lsc_credential_iterator_public_key)<BR> (lsc_credential_iterator_private_key): Adjust column.<BR> (lsc_credential_iterator_rpm, lsc_credential_iterator_deb): Use<BR> lsc_credential_iterator_name and lsc_credential_iterator_public_key<BR> instead of querying fields in the iterator.<BR> (lsc_credential_iterator_in_use): Remove inused function.<BR> <BR>* src/manage.h: Change init_lsc_credential_iterator header accordingly.<BR> Remove lsc_credential_iterator_in_use header.<BR> <BR>* src/omp.c (get_lsc_credentials_data_t): Add get_data_t element. Remove<BR> sort_field, sort_order, trash, lsc_credential_id and actions.<BR> (get_lsc_credentials_data_reset): Use get_data_reset.<BR> (omp_xml_handle_start_element): Adapt GET_LSC_CREDENTIALS case to new<BR> format. Use get_data_parse_attributes.<BR> (omp_xml_handle_end_element): Adapt to new init_lsc_credential_iterator<BR> interface. Use SEND_GET_START, SEND_GET_COMMON and SEND_GET_END macros.<BR> 2012-12-19 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (lsc_credential_count): New function.<BR> (LSC_CREDENTIAL_FILTER_COLUMNS, LSC_CREDENTIAL_ITERATOR_COLUMNS)<BR> (LSC_CREDENTIAL_ITERATOR_TRASH_COLUMNS): New defines.<BR> <BR>* src/manage.h: Add lsc_credential_count header.<BR> 2012-12-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (task_writable, trash_task_writable): Check if the<BR> user has write access too.<BR> 2012-12-19 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Migrate database to version 72, add creation and modification time<BR> to LSC Credentials.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 72.<BR> <BR>* src/manage_sql.c (create_tables): Add creation_time and<BR> modification_time columns in lsc_credentials.<BR> (migrate_71_to_72): New function.<BR> (database_migrators): Add migrate_71_to_72.<BR> (create_lsc_credential, delete_lsc_credential, set_lsc_credential_name)<BR> (set_lsc_credential_login, set_lsc_credential_comment)<BR> (set_lsc_credential_password, manage_restore): Insert into and update<BR> creation_time and modification_time lsc_credentials table columns<BR> accordingly.<BR> <BR>* doc/db.png: Update to version 72.<BR> 2012-12-19 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Add parameter --refresh to<BR> run only the database update, but no downloads.<BR> 2012-12-19 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> Patch developed by: Timo Pollmeier<BR> <BR>* tools/greenbone-scapdata-sync: Add sync of OVAL data, database<BR> migration to version 5 and checks if xml files for CVE and<BR> OVAL exist in SCAP directory.<BR> 2012-12-19 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_in_use, trash_filter_in_use, target_in_use)<BR> (trash_target_in_use, alert_in_use, trash_alert_in_use, schedule_in_use)<BR> (trash_schedule_in_use, report_format_in_use)<BR> (trash_report_format_in_use, slave_in_use, trash_slave_in_use)<BR> (trash_port_list_in_use, lsc_credential_in_use)<BR> (trash_lsc_credential_in_use): Style update.<BR> 2012-12-18 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> Patch developed by: Timo Pollmeier<BR> <BR>* tools/openvas-scapdata-sync.in: Add checks if xml files for CVE and<BR> OVAL exist in SCAP directory.<BR> 2012-12-18 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> Patch developed by: Timo Pollmeier<BR> <BR>* CMakeLists.txt: Add the two new OVAL XSLT stylesheets to be<BR> installed in ${OPENVAS_SCAP_RES_DIR}<BR> <BR>* tools/dbinit.sql: Add creation of table \"oval_def\" for OVAL<BR> definitions. Change database version to 5.<BR> <BR>* tools/openvas-scapdata-sync.in: Add sync of OVAL data and database<BR> migration to version 5.<BR> <BR>* tools/oval_timestamp.xsl: New XSLT stylesheet for getting generator<BR> timestamps from OVAL XML files.<BR> <BR>* tools/oval_update.xsl: New XSLT stylesheet for creating SQL inserts<BR> to add definition data from OVAL XML files.<BR> 2012-12-18 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_in_use, trash_filter_in_use, target_in_use)<BR> (trash_target_in_use, alert_in_use, trash_alert_in_use, schedule_in_use)<BR> (trash_schedule_in_use, report_format_in_use, trash_report_format_in_use)<BR> (slave_in_use, trash_slave_in_use, trash_port_list_in_use): Comply with<BR> function\'s description and return 1 for \"in use\" case.<BR> (trash_port_list_in_use): Remove inused code between \"#if 0 #endif\".<BR> 2012-12-18 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (lsc_credential_in_use, trash_lsc_credential_in_use)<BR> (lsc_credential_writable, trash_lsc_credential_writable): New functions.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> 2012-12-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_note_iterator, init_override_iterator): Remove<BR> the used_by arg, because the user only ever sees his own notes and<BR> overrides.<BR> 2012-12-18 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Fix alert counts for<BR> CLIENT_GET_ALERTS case.<BR> 2012-12-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (print_report_xml): For the assets report add an<BR> scap_loaded flag attribute.<BR> 2012-12-17 Andre Heinecke <andre.heineckeAATTgreenbone.net><BR> <BR>* report_formats/verinice-itg/gsm_verinice_itg.xsl: Remove redundant<BR> gsm_itg_result_ip as requested by verinice developers.<BR> 2012-12-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Check SCAP availability every time instead of on startup.<BR> <BR>* src/manage_sql.c (scap_loaded): Remove.<BR> (init_manage_process, print_report_xml): Use manage_scap_loaded to check<BR> SCAP availability.<BR> (manage_scap_loaded): Do the actual check instead of checking<BR> scap_loaded.<BR> 2012-12-17 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Remove get.details check for<BR> CLIENT_GET_ALERTS case.<BR> 2012-12-17 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Remove superfluous in_use tags<BR> in CLIENT_GET_AGENTS case.<BR> <BR>* src/manage_sql.c (agent_writable, trash_agent_writable): Use<BR> agent_in_use and trash_agent_in_use functions.<BR> (schedule_writable, trash_schedule_writable): Style fix.<BR> 2012-12-17 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_target_iterator): Set to NULL used_by parameter<BR> which was causing sql syntax error when requesting a single target with<BR> target_id and actions parameters set.<BR> 2012-12-14 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Move Alerts to use new GET style.<BR> <BR>* src/manage_sql.c (init_alert_iterator): Change interface to take an<BR> iterator and a get_data_t as parameters.<BR> (alert_iterator_filter): New function<BR> (alert_iterator_in_use, alert_iterator_filter_id)<BR> (alert_iterator_filter_name, alert_iterator_filter_trash): Remove unused<BR> function.<BR> (alert_iterator_uuid, alert_iterator_name)<BR> (alert_iterator_comment): Define with DEF_ACCESS.<BR> (alert_iterator_event, alert_iterator_condition)<BR> (alert_iterator_method): Adjust column position.<BR> <BR>* src/manage.h: Add, change and remove headers accordingly.<BR> <BR>* src/omp.c (get_alerts_data_t): Remove alert_id, sort_field, sort_order<BR> and trash. Add get and tasks.<BR> (get_alerts_data_reset): Use get_data_reset.<BR> (omp_xml_handle_start_element): Adapt GET_ALERTS to get data interfce<BR> changes.<BR> (omp_xml_handle_end_element): Use new init_alert_iterator interface in<BR> CLIENT_GET_ALERTS case. Check details get element when sending alert<BR> data. Adjust to follow same style with new get based style.<BR> 2012-12-14 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_name): New function.<BR> (task_alert_name, task_alert_uuid, task_alert, task_alert_in_trash):<BR> Remove unused functions.<BR> <BR>* src/manage.h: Add and remove headers accordingly.<BR> 2012-12-14 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_task_alert_iterator, task_alert_iterator_alert)<BR> (task_alert_iterator_uuid, task_alert_iterator_name): New functions.<BR> (event): Use init_task_alert_iterator instead of init_alert_iterator.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Use init_task_alert_iterator<BR> in GET_TASKS case instead of init_alert_iterator.<BR> 2012-12-14 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (alert_uuid): Change interface to match the same<BR> style of other objects.<BR> <BR>* src/manage.h: Change alert_uuid header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Change alert_uuid call in<BR> CLIENT_CREATE_ALERT.<BR> 2012-12-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Follow overrides flag in task iterator.<BR> <BR>* src/manage_sql.c (TASK_ITERATOR_COLUMNS)<BR> (TASK_ITERATOR_TRASH_COLUMNS): Add overrides arg.<BR> (init_user_task_iterator): Pass 0 to columns macros, because<BR> get->overrides is always 0.<BR> (init_task_iterator, task_count): Pass the overrides value from the<BR> filter into the columns macros, so that the threat and trend match the<BR> overrides flag.<BR> (init_manage_process): Add extra arg to task_threat_level.<BR> (task_threat_level): Add overrides arg. Update callers.<BR> <BR>* src/manage.h: Update header accordingly.<BR> <BR>* src/sql.c (sql_threat_level): Add overrides arg.<BR> 2012-12-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_get_iterator): Drop the owner clause when<BR> getting a single resource, because the find_resource_for_actions does<BR> the owner check. This makes the iterator work again for single<BR> observed tasks.<BR> 2012-12-13 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Migrate database to version 71, add creation and modification time<BR> support to alerts.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 71.<BR> <BR>* src/manage_sql.c (create_tables): Add creation_time and<BR> modification_time to alerts.<BR> (migrate_70_to_71): New function.<BR> (database_migrators): Add migrate_70_to_71.<BR> (create_alert, delete_alert, manage_restore): Set creation_time and<BR> modification_time columns adequately.<BR> <BR>* doc/db.png: Update to version 71.<BR> 2012-12-13 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (alert_count, alert_in_use, trash_alert_in_use)<BR> (alert_writable, trash_alert_writable): New functions.<BR> (schedule_in_use, trash_schedule_in_use): Style fix.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> 2012-12-12 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (count): Get the case working where actions are<BR> given.<BR> 2012-12-12 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Support apply_overrides in GET_TASKS filter.<BR> <BR>* src/manage_sql.c (keyword_applies): Instead of checking only first and<BR> max, skip over all duplicate keyword columns. This allows GSA to<BR> prepend apply_overrides for the task page.<BR> (filter_term_value): Compare with the actual given arg instead of<BR> \"task_id\".<BR> <BR>* src/omp.c (get_tasks_data_t): Remove apply_overrides.<BR> (omp_xml_handle_end_element): For GET_TASKS send APPLY_OVERRIDES,<BR> getting the value from the filter.<BR> 2012-12-12 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage.h, src/manage_sql.c (port_list_iterator_writable)<BR> (port_list_iterator_in_use, schedule_iterator_in_use): Remove unused<BR> functions.<BR> 2012-12-12 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Add Alerts for GET_REPORT_FORMATS. Remove unneeded export checks.<BR> <BR>* src/manage_sql.c (init_report_format_alert_iterator)<BR> (report_format_alert_iterator_name)<BR> (report_format_alert_iterator_uuid): New functions.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> <BR>* src/omp.c (get_report_formats_data_t): Add alerts boolean. Remove<BR> export boolean.<BR> (omp_xml_handle_start_element): Add alerts attribute handling. Remove<BR> export attribute handling.<BR> (omp_xml_handle_end_element): Add alerts response for<BR> CLIENT_GET_REPORT_FORMATS case. Remove export attribute checking.<BR> 2012-12-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (TASK_ITERATOR_COLUMNS)<BR> (TASK_ITERATOR_TRASH_COLUMNS): Add last report date as \"last\", to<BR> replace report id as \"last\".<BR> 2012-12-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (TASK_ITERATOR_COLUMNS)<BR> (TASK_ITERATOR_TRASH_COLUMNS): Add run status name as status so that<BR> status filtering is by name instead of number.<BR> (init_manage_process): Create SQL function run_status_name.<BR> <BR>* src/sql.c (sql_run_status_name): New function.<BR> <BR>* src/sql.h: Add header accordingly.<BR> 2012-12-11 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Move Port Lists to the new GET object management style.<BR> <BR>* src/manage_sql.c (init_port_list_iterator): Change interface to use<BR> an iterator and a get_data_t parameters. Use init_get_iterator.<BR> (trash_port_list_in_use, port_list_writable)<BR> (trash_port_list_writable): New functions.<BR> <BR>* src/omp.c (get_port_lists_data_t): Change structure to contain ranges<BR> and targets booleans and get get_data_t element.<BR> (get_port_lists_data_reset): Adapt to change in get_port_lists_data_t.<BR> (omp_xml_handle_start_element): Add ranges and targets attributes. Use<BR> get_data_parse_attributes.<BR> (omp_xml_handle_end_element): Adapt to changes in<BR> init_port_list_iterator and use SEND_GET_START, SEND_GET_COMMON and<BR> SEND_GET_END macros.<BR> <BR>* src/manage.h: Add and modify headers accrodingly.<BR> 2012-12-11 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (REPORT_FORMAT_ITERATOR_FILTER_COLUMNS): Rename flags<BR> into active.<BR> (REPORT_FORMAT_ITERATOR_COLUMNS): Extract active flag value only from<BR> flags and rename it into active.<BR> 2012-12-11 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (REPORT_FORMAT_ITERATOR_FILTER_COLUMNS): Add trust,<BR> trust_time and flags columns.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Fixed counter variables for<BR> CLIENT_GET_REPORT_FORMATS and CLIENT_GET_SLAVES cases. Fixed typo in<BR> get_next parameter in CLIENT_GET_REPORT_FORMATS case.<BR> 2012-12-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (sql_task_trend, sql_threat_level): When passed a 0<BR> task just return \"\", because this happens for count queries when the<BR> result set is empty.<BR> 2012-12-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_get_iterator): When current_credentials.uuid is<BR> NULL and the resource is owned, then always grant access. This allows the<BR> GET iterators to be used by the main process, and before processing the<BR> client OMP.<BR> (PORT_LIST_ITERATOR_FILTER_COLUMNS)<BR> (PORT_LIST_ITERATOR_TRASH_COLUMNS): Flush trailing whitespace.<BR> 2012-12-10 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (port_list_count): New function.<BR> (PORT_LIST_ITERATOR_FILTER_COLUMNS, PORT_LIST_ITERATOR_COLUMNS)<BR> (PORT_LIST_ITERATOR_TRASH_COLUMNS): New defines.<BR> <BR>* src/manage.h (port_list_iterator_exclude): Correct typo. Rename into<BR> port_range_iterator_exclude.<BR> 2012-12-10 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Migrate Database to version 70, add creation and modification time<BR> support to Port Lists.<BR> <BR>* src/manage_sql.c (migrate_69_to_70): New function.<BR> (database_migrators): Add migrate_69_to_70.<BR> (create_tables): Add creation_time and modification_time to port_lists<BR> and port_lists_trash tables.<BR> (ensure_predefined_port_lists_exist, create_port_list_lock,<BR> create_port_list, delete_port_list, manage_restore): Insert current time<BR> value into creation_time and modification_time.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 70.<BR> 2012-12-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (manage_db_version, set_db_version)<BR> (init_manage_process, manage_update_nvti_cache, init_manage)<BR> (nvts_md5sum, set_nvts_md5sum, manage_nvt_preferences_enable): Specify<BR> the database for the meta table because there is a meta table in the<BR> SCAP db too. In particular, this is required before the database is<BR> created, otherwise the meta in the SCAP makes it look like the tasks<BR> database has already been created.<BR> 2012-12-09 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* src/report_formats/HTML/HTML.xsl: Reduced all occurences of<BR> xsl:with-param where inly a value-of operation was inside to direct<BR> \"select\" inside with-param.<BR> Also reduced all /xsl:param closing tags where content was empty<BR> anyway. The gain was minimal. This report is fast anyway compared<BR> to the other report format plugins.<BR> 2012-12-09 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* src/report_formats/LaTeX/latex.xsl: Reduced all occurences of<BR> xsl:with-param where inly a value-of operation was inside to direct<BR> \"select\" inside with-param.<BR> This gained clearly less than 1% performance improvement.<BR> 2012-12-09 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* src/report_formats/TXT/TXT.xsl: Reduced all occurences of<BR> xsl:with-param where inly a value-of operation was inside to direct<BR> \"select\" inside with-param.<BR> Also reduced all /xsl:param closing tags where content was empty<BR> anyway. This made the report plugin 4 times faster, measured<BR> for a very big report (2 hours instead of 8 hours, timed twice<BR> because I couldn\'t believe that this little change brings so<BR> much improvement). Most effect comes from \"wrap-line\" that<BR> dropped from #0 to #7 in profiling analysis.<BR> 2012-12-08 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (manage_report, manage_send_report): Use a fresh \"get\"<BR> arg to get the required report format, instead of passing in the \"get\"<BR> args from the report iterator.<BR> 2012-12-08 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Get sorting of task columns via filter working.<BR> <BR>* src/manage_sql.c (TASK_ITERATOR_FILTER_COLUMNS)<BR> (TASK_ITERATOR_COLUMNS, TASK_ITERATOR_TRASH_COLUMNS): Add all columns.<BR> (init_manage_process): Init new SQL functions task_trend and<BR> task_threat_level.<BR> (task_last_report): Make global, so SQL function can use.<BR> (task_threat_level): Just return NULL if current_credentials is NULL,<BR> because this could happen now that the function is used via SQL in the<BR> task iterator.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> <BR>* src/sql.c (sql_task_trend, sql_threat_level): New functions.<BR> <BR>* src/sql.h: Update headers accordingly.<BR> 2012-12-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (count): Move up in file.<BR> (task_count): Add get arg. Use count function to return filtered<BR> count instead of total count.<BR> (report_format_count, report_format_iterator_trust_time): Flush trailing<BR> whitespace.<BR> <BR>* src/manage.h: Update header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Disable old TASK_COUNT for now.<BR> 2012-12-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS use<BR> SEND_GET_START and SEND_GET_END.<BR> 2012-12-06 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Moved closing tag for<BR> CLIENT_GET_CONFIGS within the appropriate else statement, which was<BR> causing error responses to append an extra get_configs_response tag.<BR> 2012-12-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS move sending the<BR> alerts from the detailed case to the common area. This brings multiple<BR> alerts to the brief case, which was previously only showing one alert.<BR> 2012-12-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS share the<BR> creation of PREFERENCES between the brief and detailed cases. Hence<BR> remove the brief case, which is now empty.<BR> 2012-12-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS share the bulk of<BR> the response between the brief and detailed cases. This removes ALERT<BR> from the brief case, as there are multiple alerts now. This also brings<BR> TRASH to CONFIG, TARGET, SLAVE and SCHEDULE in the detailed case.<BR> 2012-12-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS remove variable<BR> tsk_uuid, which is out of use.<BR> 2012-12-06 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> Reduce amount of time spent in wrap_row to 0.15% of what<BR> was spent before. This lets wrap_row drop from #1 to #15<BR> in profiling analysis (measureing total time spent in function).<BR> The overall performance gain measured for a very big report was 15%.<BR> Main reason is that template parameter are expensive, especially<BR> when used in recursion.<BR> <BR>* src/report_formats/LaTeX/latex.xsl (wrap-row): Drop parameter \"color\"<BR> and use white.<BR> (wrap-row-color): A copy of the old wrap-row with parameter \"color\".<BR> (break-into-rows-indented, break-into-rows-indented-color): Dito.<BR> (break-into-rows, break-into-rows-color): Dito.<BR> (text-to-escaped-row, text-to-escaped-row-color): Dito.<BR> All over the code: Were other colors than white were used,<BR> replace the old call by the -color call.<BR> 2012-12-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS share the<BR> SEND_GET_COMMON and some variable inits between the brief and<BR> detailed cases. This corrects the detailed version when the target,<BR> slave or schedule is in the trashcan.<BR> 2012-12-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS share the<BR> creation of SECOND_LAST_REPORT and LAST_REPORT between the brief and<BR> detailed cases. This brings the report count optimisation from the<BR> brief case to the detailed case.<BR> 2012-12-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS for the big if<BR> share the creation of FIRST_REPORT.<BR> 2012-12-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS add comments<BR> about result counting.<BR> 2012-12-06 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* src/manage_sql.c (send_to_verinice, send_to_sourcefire): Ensure<BR> files have the correct permissions when dropping privileges.<BR> 2012-12-06 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* src/report_formats/LaTeX/latex.xsl (escape_verb_env): Replaced<BR> this template by a single call of str:replace and therefore removed<BR> the template and replaced 3-line calls by single line direct execution.<BR> This improves performance by a few percent.<BR> 2012-12-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS for the big if<BR> share the creation of RCFILE.<BR> 2012-12-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS for the big if<BR> share the progress calculation.<BR> 2012-12-05 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Port Report Formats to new GET style.<BR> <BR>* src/manage_sql.c (init_report_format_iterator): Follow the new GET<BR> style.<BR> (manage_report, manage_send_report, verify_report_format): Adapt to the<BR> new init_report_format_iterator.<BR> (verify_report_format): Use report_format_global instead of<BR> report_format_iterator_global<BR> (report_format_writable, trash_report_format_writable): Base result on<BR> return value of report_format_global, too.<BR> (report_format_iterator_extension, report_format_iterator_content_type)<BR> (report_format_iterator_summary, report_format_iterator_description)<BR> (report_format_iterator_signature, report_format_iterator_trust)<BR> (report_format_iterator_trust_time, report_format_iterator_active): Use<BR> GET_ITERATOR_COLUMN_COUNT as base value.<BR> (report_format_iterator_global): Remove unused function.<BR> <BR>* src/manage.h: Change and remove headers accordingly.<BR> <BR>* src/omp.c (get_report_formats_data_t): Add get_data_t element. Remove<BR> sort_field, sort_order, report_format_id and trash.<BR> (get_report_formats_data_reset): Adapt to new get_report_formats_data_t.<BR> (omp_xml_handle_start_element): Follow new style for GET_REPORT_FORMATS.<BR> (omp_xml_handle_end_element): Adapt GET_REPORT_FORMATS case for new<BR> init_report_format_iterator. Send params and file element when details<BR> attribute is set.<BR> 2012-12-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS for the big if<BR> share common variables.<BR> 2012-12-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS wrap the big if<BR> in a block so that common cases can be shared.<BR> 2012-12-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS check the return<BR> from init_task_iterator.<BR> 2012-12-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS remove the block<BR> that was used for the initial param check else case, indenting the<BR> contents in the parent block.<BR> 2012-12-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS give the initial<BR> param check its own return, to remove the need for the else block.<BR> 2012-12-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS remove the task<BR> find, because the iterator init does that now.<BR> 2012-12-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS rename variable<BR> \"task\" to \"index\" in the detailed case, to match the brief case.<BR> 2012-12-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS move iterator<BR> init up and check get.id instead of task.<BR> 2012-12-05 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* src/report_formats/create_signatures: Add quoting in case the RFP<BR> name contains a space.<BR> 2012-12-04 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_manage): Reset 65536 in port ranges to 65535.<BR> 2012-12-04 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Update modification_time value for Report Formats accordingly.<BR> <BR>* src/manage_sql.c (update_report_format_uuid, set_report_format_name)<BR> (set_report_format_active, set_report_format_summary): Update<BR> modification_time column to current time.<BR> 2012-12-04 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Add Report Format in_use, writable and count functions and other<BR> defines.<BR> <BR>* src/manage_sql.c (trash_report_format_in_use, report_format_in_use)<BR> (report_format_writable, report_format_count)<BR> (trash_report_format_writable): New Functions.<BR> (REPORT_FORMAT_ITERATOR_FILTER_COLUMNS, REPORT_FORMAT_ITERATOR_COLUMNS)<BR> (REPORT_FORMAT_ITERATOR_TRASH_COLUMNS): New defines.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> 2012-12-04 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (make_task_complete): New function.<BR> <BR>* src/manage_sql.h: Add header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Call make_task_complete on<BR> success so that any alert runs for the status change to New.<BR> 2012-12-04 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (modify_schedule): Also use the duration string in<BR> the SQL when the duration is 0.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In CREATE_SCHEDULE and<BR> MODIFY_SCHEDULE adjust the period/duration error checks to be less than<BR> - 1 because -1 indicates that the period/duration was NULL.<BR> 2012-12-04 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (modify_filter): Lowercase the type so that it is<BR> always lowercase in the db and in GET_FILTERS.<BR> 2012-12-04 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (type_db_name): Remove stray semicolon that was<BR> causing SecInfo to be the default.<BR> 2012-12-04 Andre Heinecke <andre.heineckeAATTgreenbone.net><BR> <BR>* report_formats/verinice-ism/classification.xsl: Classify<BR> cpe:/o:microsoft:windows as gsm_system_windows_unknown<BR> 2012-12-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_SCHEDULES when trying<BR> to convert to the simple intervals, drop the assumption that the number<BR> of units is smaller than the size of the next higher unit. This caters<BR> for values like 36 hours, now that the GSA allows this to be input.<BR> 2012-12-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (interval_from_strings): Ensure that value fits in an<BR> integer.<BR> (omp_xml_handle_end_element): In CREATE_SCHEDULE and EDIT_SCHEDULE add<BR> checks for new interval out-of-range returns.<BR> 2012-12-02 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (create_tables): Added missing creation and<BR> modification columns.<BR> 2012-12-02 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Migrate Database to version 69, adding creation and modification time to<BR> Report formats.<BR> <BR>* src/manage_sql.c (migrate_68_to_69): New function.<BR> (database_migrators): Add migrate_68_to_69.<BR> (init_manage, create_format_report, delete_format_report)<BR> (manage_resotre): Insert and update creation and modification times in<BR> report_format and report_formats_trash accordingly.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 69.<BR> 2012-11-30 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (run_status_name_internal): New function.<BR> <BR>* src/manage_sql.h: Add header accordingly.<BR> <BR>* src/manage_sql.c (event): Compare with unique run status name, else<BR> the waiting states are considered as events.<BR> 2012-11-29 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Also send trust state and<BR> trust time with installer for get agents case.<BR> 2012-11-29 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): for CLIENT_GET_AGENTS case,<BR> agent installer is returned too when details attribute is set. Also<BR> repeated call to SEND_GET_COMMON in all switch cases has been<BR> refactored.<BR> 2012-11-29 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_schedule_task_iterator)<BR> (init_slave_task_iterator): Reverted prior change so that the name of<BR> tasks using them are returned ordered by name. Also added check for user<BR> credentials.<BR> 2012-11-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (cleanup_manage_process): Add a warning on close<BR> failure.<BR> 2012-11-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (type_pretty_name): Make the default \"\" instead of<BR> NULL because caller prints it directly.<BR> 2012-11-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (type_pretty_name): Remove stray semicolon that was<BR> causing SecInfo to be the default.<BR> 2012-11-28 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c, src/manage.h (slave_in_use): Now checks for tasks<BR> using the slave independently of their location.<BR> 2012-11-28 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Migrate Slave object to the new GET style object management.<BR> <BR>* src/manage_sql.c, src/manage.h (slave_count, slave_writable)<BR> (trash_slave_writable): New functions.<BR> (init_slave_iterator): Interface changed to take two parameters instead<BR> of Three. Code refactored to take advantage of new defines.<BR> (init_slave_task_iterator): Interface changed to take Two parameters<BR> instead of Five. Code refactored to use new defines.<BR> <BR>* src/manage_sql.c (SLAVE_ITERATOR_FILTER_COLUMNS)<BR> (SLAVE_ITERATOR_COLUMNS, SLAVE_ITERATOR_TRASH_COLUMNS): new defines.<BR> (slave_task_iterator_name): Column number value changed to Two.<BR> (slave_iterator_host,slave_iterator_port,slave_iterator_login)<BR> (slae_iterator_password): Now use GET_ITERATOR_COLUMN_COUNT accordingly.<BR> <BR>* src/omp.c (get_slaves_data_t): Now has two elements. get and task.<BR> (get_slaves_data_reset): Adapted to the modified get_slaves_data_t.<BR> (omp_xml_handle_start_element): Refactored CLIENT_GET_SLAVES case to use<BR> new GET style and refactored slave iterator. Added count and filter<BR> support.<BR> 2012-11-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (modify_filter, modify_slave): Consistently<BR> sql_quote() for quoted variables.<BR> 2012-11-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Adding support for slave cloning.<BR> <BR>* src/omp.c (create_slave_data_t): Added copy member.<BR> (client_state_t): Added CLINET_CREATE_SLAVE_COPY state.<BR> (omp_xml_handle_start_element): Added slave copy case handling.<BR> (omp_xml_handle_end_element): Added handling for slave copying in slave<BR> creation case.<BR> (omp_xml_handle_text): Added CLIENT_CREATE_SLAVE_COPY value handling.<BR> 2012-11-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Adding support for editing a slave.<BR> <BR>* src/omp.c (omp_command): Added MODIFY_SLAVE command.<BR> (modify_slave_data_t): New data structure.<BR> (modify_slave_data_reset): New function.<BR> (command_data_t): Added modify_slave.<BR> (client_state_t): Added states for modify slave.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text): Added slave modification handling.<BR> 2012-11-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage.h, src/manage_sql.c (modify_slave): New function.<BR> 2012-11-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (create_slave, delete_slave): creation_time and<BR> modification_time are modified appropriately.<BR> 2012-11-27 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Migrate Database to version 68 to add modification_time and<BR> creation_time to slaves.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 68.<BR> <BR>* src/manage_sql.c (migrate_67_to_68): New function.<BR> (migrators): Add migrate_67_to_68.<BR> (manage_restore): Add slave creation_time and modification_time columns.<BR> 2012-11-26 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (find_target, find_schedule, find_slave): Code<BR> refactored to use find_resource function.<BR> 2012-11-26 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (copy_slave): New function.<BR> (copy_schedule): Fixed documentation.<BR> 2012-11-24 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (task_schedule_next_time_tz): Clear the get structure,<BR> to ensure that all fields are initialised, especially filt_id, which is<BR> used in init_get_iterator via init_schedule_iterator.<BR> 2012-11-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (type_db_name): Add NULL check, else filter ops<BR> segfault when type is --.<BR> 2012-11-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (CVE_INFO_ITERATOR_FILTER_COLUMNS)<BR> (CVE_INFO_ITERATOR_COLUMNS, CPE_INFO_ITERATOR_FILTER_COLUMNS)<BR> (CPE_INFO_ITERATOR_COLUMNS): Move onto SCAP page.<BR> 2012-11-23 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* ChangeLog: Detailed previous commit.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Moved variables declarations to<BR> be consistent with the coding style.<BR> 2012-11-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_get_iterator): Make the current_credentials<BR> assertion more accurate.<BR> (init_task_iterator): Use init_get_iterator in both cases, so that the<BR> same columns are used.<BR> 2012-11-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (task_iterator_task, task_iterator_uuid): Remove,<BR> there are GET iterator accessors to do this now.<BR> (task_iterator_run_status): Adjust column for GET change.<BR> (init_manage, delete_trash_tasks): Use generic accessors for task<BR> iterator.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_TASKS use<BR> generic accessors for task iterator.<BR> 2012-11-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_task_iterator): Ensure that hidden tasks are<BR> hidden but that it is possible to select the Example Task.<BR> 2012-11-22 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Get tasks trash working with new style changes.<BR> <BR>* src/manage_sql.c (type_trash_in_table): New function.<BR> (init_user_get_iterator, init_get_iterator): Use the main tasks table<BR> for the trash cases too. In the all trash iterator, include the extra<BR> WHERE clauses if given.<BR> (init_user_task_iterator): Move below column defines. Use GET iterator.<BR> Reduce number of args. Adjust caller.<BR> (schedule_iterator_first_time, schedule_iterator_period)<BR> (schedule_iterator_period_months): Flush trailing whitespace.<BR> 2012-11-22 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Switching Schedules to the New Object Management.<BR> <BR>* src/manage.h, src/manage_sql.c (init_schedule_iterator): Code<BR> refactored. Now takes two parameters (iterator and get) instead of five.<BR> Also returns an integer value to reflect the success of the operation.<BR> Updated to use init_get_iterator.<BR> <BR>* src/manage_sql.c (task_schedule_next_by_tz): Updated to use the new<BR> init_schedule_iterator.<BR> (schedule_iterator_first_time, schedule_iterator_next_time)<BR> (schedule_iterator_period, schedule_iterator_period_months)<BR> (schedule_iterator_duration, schedule_iterator_timezone)<BR> (schedule_iterator_initial_offset): Updated to use<BR> GET_ITERATOR_COLUMN_COUNT.<BR> (schedule_iterator_next_time): Removed repetitive<BR> schedule_iterator_first_time calls. The check for period\'s value is now<BR> applied after the comparaison between the first and current time\'s<BR> values.<BR> (modify_schedule): Added check for when period_months equals zero.<BR> <BR>* src/omp.c (create_schedule_data_t): Added copy element for cloning.<BR> (get_schedules_data_t): Now has two elements: get_data_t get and int<BR> tasks.<BR> (get_schedules_data_reset): Updated for the get_schedules_data_t<BR> change.<BR> (client_state_t): Added CLIENT_CREATE_SCHEDULE_COPY.<BR> (omp_xml_handle_start_element): Updated GET_SCHEDULES and<BR> CLIENT_CREATE_SCHEDULE.<BR> (buffer_schedules_xml): Function removed.<BR> (omp_xml_handle_end_element): Updated CLIENT_GET_SCHEDULES to reflect<BR> schedules management changes and new schedule cloning feature.<BR> 2012-11-22 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Switch much of GET_TASKS to the new GET style. As a requirement move<BR> many functions in manage_sql.c to better sections.<BR> <BR>* src/manage_sql.c (vector_find_string): Move up to General Helpers.<BR> (keyword_type_t, keyword_relation_t, struct keyword, keyword_t)<BR> (keyword_free, parse_keyword, keyword_applies, filter_free)<BR> (split_filter, manage_filter_controls, filter_control_int)<BR> (filter_control_str, manage_report_filter_controls, append_relation)<BR> (manage_clean_filter, get_join, filter_clause): Move up to new page<BR> Filter Utilities.<BR> (ANON_GET_ITERATOR_FILTER_COLUMNS, GET_ITERATOR_FILTER_COLUMNS)<BR> (ANON_GET_ITERATOR_COLUMNS, GET_ITERATOR_COLUMNS)<BR> (GET_ITERATOR_COLUMN_COUNT): Move up to Resources.<BR> (type_has_users): New function.<BR> (init_user_get_iterator, init_get_iterator): Move up to Resources.<BR> (TASK_ITERATOR_FILTER_COLUMNS, TASK_ITERATOR_COLUMNS)<BR> (TASK_ITERATOR_TRASH_COLUMNS): New defines.<BR> (init_task_iterator): Switch to GET arg and use init_get_iterator.<BR> (task_in_use, trash_task_in_use, task_writable)<BR> (trash_task_writable): New functions.<BR> (init_manage): Pass init_task_iterator args via GET struct.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/omp.c (get_tasks_data_t, get_tasks_data_reset): Switch to GET<BR> field.<BR> (omp_xml_handle_start_element): Parse GET_TASKS GET field.<BR> (omp_xml_handle_end_element): IN CLIENT_GET_TASKS use the GET field and<BR> SEND_GET_COMMON.<BR> 2012-11-22 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add creation and modification times to tasks. Hence increase database<BR> version to 67. Add database migration from version 66 to 67.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 67.<BR> <BR>* src/manage_sql.c (create_tables): Add time fields to task.<BR> (migrate_66_to_67): New function.<BR> (migrators): Add migrate_66_to_67.<BR> (append_to_task_string, init_manage, task_config_in_trash, task_target)<BR> (task_slave, set_task_description, task_start_time, set_task_start_time)<BR> (set_task_schedule, set_task_parameter, set_task_parameter): Update task<BR> modification time.<BR> (make_task): Set task modification time.<BR> (copy_task): Enable time code.<BR> (manage_task_update_file, manage_task_remove_file)<BR> (set_task_preferences): Update task preferences.<BR> <BR>* doc/db.png: Update for version changes.<BR> 2012-11-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add COPY to OMP CREATE_TASK, for cloning.<BR> <BR>* src/manage_sql.c (copy_task): New function.<BR> <BR>* src/manage.h: Update header accordingly.<BR> <BR>* src/manage_sql.c (create_task_data_t, create_task_data_reset)<BR> (client_state_t): Add CREATE_TASK copy.<BR> (send_get_end): Remove the task in the create_task case, because it is<BR> created early.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text): Add CREATE_TASK/COPY.<BR> 2012-11-21 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c (manage_restore): Restore creation_time and<BR> modification_time too.<BR> 2012-11-21 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> Add modification_time and creation_time to schedules. Fixed indentation<BR> from previous commit.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 66, for<BR> adding creation_time and modification_time columns to schedules and<BR> schedules_trash tables.<BR> <BR>* src/manage_sql.c (modify_schedule): modification_time is updated too.<BR> (create_schedule): creation_time and modification_time are inserted and<BR> deleted too.<BR> (delete_schedule): creation_time and modification_time are inserted too<BR> when moving the schedule to the trash.<BR> (schedule_writable, schedule_in_use, SCHEDULE_ITERATOR_FILTER_COLUMNS)<BR> (SCHEDULE_ITERATOR_TRASH_COLUMNS): Fixed indentation.<BR> 2012-11-21 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* src/manage_sql.c src/manage.h (schedule_copy, schedule_count)<BR> (schedule_writable, schedule_in_use, trash_schedule_writable)<BR> (trash_schedule_in_use): New functions.<BR> 2012-11-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (modify_filter): Ensure type name is db style.<BR> 2012-11-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (type_pretty_name, type_db_name): New functions.<BR> (create_filter): Ensure type name is db style.<BR> (filter_iterator_type): Return pretty version of type name.<BR> 2012-11-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (valid_type): Add report_format.<BR> 2012-11-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (client_state_t): Add NVT FAMILY.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element): Parse<BR> FAMILY in CREATE_REPORT RESULT/NVT.<BR> 2012-11-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): Compare text with = instead of IS in<BR> SQL, because Sqlite3 only accepts text as rvalue of IS from 3.6.19.<BR> 2012-11-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* doc/db.png: Update for version change.<BR> 2012-11-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Set the report on the result when adding a result to a report. Add a<BR> migrator to set the report in all existing results. Hence increase<BR> database version to 65.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 65.<BR> <BR>* src/manage_sql.c (migrate_64_to_65): New function.<BR> (migrators): Add migrate_64_to_65.<BR> (init_manage, create_report): Use report_add_result to add result.<BR> (report_add_result): Set report on result.<BR> 2012-11-15 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (manage_run_wizard): Allocate empty string because it<BR> will be freed.<BR> 2012-11-15 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/ompd.c (CLIENT_TIMEOUT): Remove.<BR> (serve_omp): Remove client timeout, because the current implementation<BR> causes the client to timeout right at the end of very long operations,<BR> like getting big reports.<BR> 2012-11-15 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (print_report_xml): Remove prefix arg. Update<BR> callers.<BR> (manage_send_report): Send the prefix by hand instead of passing it<BR> to print_report_xml. This is required because the prefix is part of<BR> the XML that wraps the formatted report, which may be base64 encoded.<BR> 2012-11-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Mimic the new powerfilter \"match entire column\" term in the report filter.<BR> <BR>* src/manage_sql.c (where_search_phrase): Add exact arg.<BR> (init_result_iterator, report_scan_result_count, report_counts_match)<BR> (report_count_filtered, report_counts_id_filt): Add search_phrase_exact<BR> arg. Update callers.<BR> (report_filter_term): Quote phrase. Prepend = if exact. Add 1 to<BR> first_result for 1 indexing.<BR> (print_report_xml): Add search_phrase_exact handling.<BR> (split_filter): For quotes, check for the exact case too.<BR> (manage_report_filter_controls): Add search_phrase_exact arg. Switch<BR> first to 0 indexing. Default max to 100 instead of all.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/omp.c (buffer_notes_xml, omp_xml_handle_end_element): Update<BR> init_result_iterator call.<BR> 2012-11-14 Andre Heinecke <andre.heineckeAATTgreenbone.net><BR> <BR>* report_formats/verinice-ism/classification_generator.sh: Allow semicolon<BR> seperated files.<BR> <BR>* report_formats/verinice-ism/classification.xsl: Use more generic tags<BR> <BR>* report_formats/verinice-ism/create_report_import: Increase Version<BR> number and fix broken filename.<BR> 2012-11-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> In a powerfilter if a term begins with =, then match term entirely<BR> instead of as a substring.<BR> <BR>* src/manage_sql.c (struct keyword): Add equal flag.<BR> (split_filter): Flag keywords that have leading =.<BR> (manage_clean_filter): Add leading equal if flag set.<BR> (filter_clause): Add case for exact term match.<BR> 2012-11-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (task_threat_level, task_previous_threat_level)<BR> (init_result_iterator, init_asset_iterator, report_scan_result_count)<BR> (filtered_host_count): Use coalesce instead of CASE, if only to make the<BR> resulting SQL more readable.<BR> 2012-11-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (where_levels): Use IN instead of multiple<BR> comparisons. It\'s neater, and apparently allows for an index to be<BR> used.<BR> 2012-11-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/openvasmd.c (mainpage): Remove ref to test code.<BR> 2012-11-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c, src/omp.c, src/sql.c: Clean up doc AATTparams.<BR> 2012-11-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (parse_keyword): Add actual months instead of fixed<BR> approximations.<BR> 2012-11-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (parse_keyword): Add relative dates, like -7d for 7<BR> days ago.<BR> 2012-11-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/sql.c (sqlv): Retry a few times before giving up, to prevent the<BR> function from giving up every time.<BR> 2012-11-13 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* tools/openvas-scapdata-sync.in, tools/greenbone-scapdata-sync:<BR> Consistently use variable name SCAP_RES_DIR.<BR> 2012-11-13 Andre Heinecke <aheineckeAATTintevation.de><BR> Add SCAP DB Migration for new CVE info<BR> <BR>* tools/openvas-scapdata-sync.in, tools/greenbone-scapdata-sync<BR> (check_db_version): Migrate to 4 instead of reinitializing.<BR> (migrate_3): Readded.<BR> (migrate_4): New. Migrate to database version 4<BR> <BR>* tools/migrate_db4.xsl: New. Add new CVSS information to CVE table<BR> <BR>* CMakeLists.txt: Install migrate_db4.xsl<BR> 2012-11-13 Andre Heinecke <andre.heineckeAATTgreenbone.net><BR> Add iterable and filterable get_info for CVE<BR> <BR>* src/manage_sql.c (CVE_INFO_ITERATOR_FILTER_COLUMNS)<BR> (CVE_INFO_ITERATOR_COLUMNS): New Defines.<BR> (cve_info_count): New. Count cve_info elements.<BR> (init_cve_info_iterator): New. Initialize cve_info iterator.<BR> (cve_info_iterator_vector, cve_info_iterator_complexity)<BR> (cve_info_iterator_authentication)<BR> (cve_info_iterator_confidentiality_impact)<BR> (cve_info_iterator_integrity_impact)<BR> (cve_info_iterator_availability_impact)<BR> (cve_info_iterator_products, cve_info_iterator_cvss)<BR> (cve_info_iterator_description): New. Accessors to cve_info columns.<BR> Updated header accordingly.<BR> <BR>* src/manage.c (CPE_GETBYNAME_XSL, CPE_DICT_FILENAME): Readded defines for<BR> direct CPE access.<BR> (get_cpe_filename): Readded.<BR> (manage_read_info): Add support for cpe again. Reduce result to only<BR> untampered raw data for CVE and CPE.<BR> <BR>* src/manage.h (manage_scap_update_time): Add prototype to header<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Iterator based support for CVE.<BR> Add raw_data to get_info_result if details are requested. Add update_time<BR> elment to get_info responses.<BR> <BR>* src/schema_formats/XML/OMP.xml: Update documentation of get_info<BR> <BR>* tools/cve_update.xsl (cve:entry): Add more information to the database.<BR> <BR>* tools/db_init.sql (meta): Increase scap database version to 4<BR> (cves): Add vector, complexity, authentication, confidentiality_impact,<BR> integrity_impact, availability_impact and products column<BR> <BR>* tools/openvas-scapdata-sync.in, tools/greenbone-scapdata-sync<BR> (check_db_version): Reinitialize versions older then 4.<BR> (migrate_3): Removed.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-11-12 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (cache_report_counts): New function. Body from<BR> report_counts_id_filt. Use sql_giveup to run the SQL because it seems<BR> that demanding a lock for the UPDATE can deadlock if another process<BR> does a write.<BR> (report_counts_id_filt): Call cache_report_counts to cache the counts.<BR> <BR>* src/sql.c (sqlv): New function. Body from sql.<BR> (sql): Call through to sqlv.<BR> (sql_giveup): New function. Like sql but gives up if database locked<BR> or busy.<BR> <BR>* src/sql.h: Add header accordingly.<BR> 2012-11-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (override_count, init_override_iterator): Rework the<BR> SQL of the task case to take advantage of the new results.report column<BR> and to select within the statement instead of joining. This greatly<BR> improves the performance of GET_OVERRIDES with a task_id when the<BR> database is large.<BR> 2012-11-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (note_count, init_note_iterator): Rework the SQL of<BR> the task case to take advantage of the new results.report column and to<BR> select within the statement instead of joining. This greatly improves<BR> the performance of GET_NOTES with a task_id when the database is large.<BR> 2012-11-09 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Account for nvt and task in GET_OVERRIDES count, and handle the GET_OVERRIDES<BR> task_id filter term correctly.<BR> <BR>* src/manage_sql.c (OVERRIDE_ITERATOR_FILTER_COLUMNS): Remove task_id<BR> because it is now handled specially.<BR> (override_count): Add nvt, result and task args so that the count takes<BR> these into account, just like init_override_iterator. Add special handling<BR> of task_id in the filter because it\'s more complex than just a column<BR> match.<BR> (init_override_iterator): Add special handling of task_id in the filter<BR> because it\'s more complex than just a column match.<BR> <BR>* src/manage.h: Update header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Add nvt and task args to<BR> override_count in GET_OVERRIDES.<BR> 2012-11-09 Andre Heinecke <aheineckeAATTintevation.de><BR> Version 1.1.5 of verinice ISM export<BR> <BR>* report_formats/verinice-ism/classification-helpers.xsl,<BR> report_formats/verinice-itg/classification-helpers.xsl: Moved<BR> classification helpers file into itg.<BR> <BR>* report_formats/verinice-itg/create_report_import: Update Path of<BR> classification-helpers.xsl file<BR> <BR>* report_formats/verinice-ism/classification_generator.sh: Remove check<BR> for detail name. Fix syntax errors.<BR> <BR>* report_formats/verinice-ism/gsm_verinice_ism.xsl: Include generated<BR> classifcation.xsl<BR> (extract_organization): New. Copied from classification-helpers<BR> (report/host_start): Only generate tags based on best_os_cpe, set<BR> gsm_ism_asset_type<BR> (syncMapping): Add gsm_ism_asset_type, change from samt_topic to control<BR> (create_links): Change releation from samt_topic_incident_scenario to<BR> rel_control_incsen<BR> <BR>* report_formats/verinice-ism/classification.xsl: New. generated from<BR> classification.csv<BR> <BR>* report_formats/verinice-ism/create_report_import.xsl: Update Version<BR> number, include classification.xsl<BR> 2012-11-08 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Account for nvt and task in GET_NOTES count, and handle the GET_NOTES<BR> task_id filter term correctly.<BR> <BR>* src/manage_sql.c (count): Add args to give caller more control of SQL,<BR> as in init_get_iterator. Update callers.<BR> (NOTE_ITERATOR_FILTER_COLUMNS): Remove task_id because it is now handled<BR> specially.<BR> (note_count): Add nvt, result and task args so that the count takes<BR> these into account, just like init_note_iterator. Add special handling<BR> of task_id in the filter because it\'s more complex than just a column<BR> match.<BR> (init_note_iterator): Add special handling of task_id in the filter<BR> because it\'s more complex than just a column match.<BR> (filter_term_value): New function.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Add nvt and task args to<BR> note_count in GET_NOTES.<BR> 2012-11-08 Andre Heinecke <andre.heineckeAATTgreenbone.net><BR> <BR>* report_formats/verinice-ism/classification_generator.sh: New.<BR> Generator to create XSL helper template for verinice system tags from<BR> a csv file.<BR> <BR>* report_formats/verinice-ism/classification.csv: New. CSV File<BR> containting CPE\'s and tags for verinice ism<BR> 2012-11-07 Hani Benhabiles <hani.benhabilesAATTgreenbone.net><BR> <BR>* tools/openvas-scapdata-sync: Added command-line options --describe and<BR> - -feedversion as well as needed variables.<BR> 2012-11-07 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Add command line option --selftest<BR> and moved command lin eparsing to bottom.<BR> 2012-11-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (create_override, create_target): Add<BR> COPY.<BR> (delete_note, delete_override): Add attribute ultimate.<BR> (get_notes, get_overrides): Add new-style filter attributes and response<BR> elements.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-11-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* doc/db_postgres.sql (results): Add report.<BR> (overrides_trash): New table.<BR> <BR>* doc/db.png: Update from source.<BR> 2012-11-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): Add name special case for overrides<BR> as for notes.<BR> 2012-11-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add trashcan feature to overrides.<BR> <BR>* src/omp.c (delete_override_data_reset): Add ultimate.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element): Add ultimate<BR> flag to DELETE_OVERRIDE.<BR> <BR>* src/manage_sql.c (create_tables): Add overrides_trash.<BR> (delete_override): Add ultimate arg and trashcan handling.<BR> (OVERRIDE_ITERATOR_TRASH_COLUMNS): Explicitly specify columns.<BR> (manage_restore): Add overrides.<BR> <BR>* src/manage.h: Update header accordingly.<BR> 2012-11-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add COPY to CREATE_OVERRIDE for cloning.<BR> <BR>* src/manage_sql.c (copy_override): New function.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (create_override_data_t, create_override_data_reset): Add<BR> copy.<BR> (client_state_t): Add CLIENT_CREATE_OVERRIDE_COPY.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text): Add COPY to CREATE_OVERRIDE.<BR> 2012-11-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add filtering to GET_OVERRIDES.<BR> <BR>* src/manage_sql.c (OVERRIDE_COLUMNS): Remove.<BR> (OVERRIDE_ITERATOR_FILTER_COLUMNS, OVERRIDE_ITERATOR_COLUMNS)<BR> (OVERRIDE_ITERATOR_TRASH_COLUMNS): New defines.<BR> (override_count): New function.<BR> (init_override_iterator): Update to new GET style with filter, leaving<BR> certain override-specific \"filtering\" params. Adjust all accessors<BR> accordingly.<BR> (override_iterator_creation_time)<BR> (override_iterator_modification_time): Remove<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/omp.c (get_overrides_data_t): Switch to generic GET arg.<BR> (omp_xml_handle_start_element): Parse generic GET data in GET_OVERRIDES.<BR> (buffer_overrides_xml): Add standard GET elements. Add count return.<BR> (buffer_result_overrides_xml, omp_xml_handle_end_element): Pass generic GET<BR> arg to iterator.<BR> 2012-11-05 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> Post release version bump.<BR> <BR>* CMakeLists.txt: Updated version number to 4.0+beta5.<BR> 2012-11-05 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> Preparing the openvas-manager 4.0+beta4 release.<BR> <BR>* CHANGES: Updated.<BR> <BR>* doc/CMakeLists.txt: Update forgotten command to work with<BR> out-of-source builds.<BR> 2012-11-04 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Added command line options<BR> - -identify, --describe and --feedversion.<BR> 2012-11-02 Andre Heinecke <andre.heineckeAATTgreenbone.net><BR> <BR>* src/manage_sql.c (send_to_verinice, send_to_sourcefire): Do proper<BR> quoting.<BR> 2012-11-02 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* src/manage_sql.c (send_to_verinice): Correct parameter count in command.<BR> 2012-11-02 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* src/manage_sql.c (escalate_2): Create verinice archive with verinice-ism<BR> and send it with send_to_verinice.<BR> (send_to_verinice): Change parameters to be an url and an archive file<BR> instead of ip port and report. Fix call of the connector.<BR> 2012-11-02 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* src/manage_sql.c (manage_report): Initialize get structure<BR> 2012-11-02 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* src/manage_sql.c (send_to_verinice, send_to_sourcefire): Sanitize<BR> parameters before they reach the shell.<BR> 2012-11-02 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (buffer_notes_xml): Make in_use 0 so that notes can be moved<BR> to the trashcan.<BR> 2012-11-02 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* src/manage_sql.c (send_to_verinice, send_to_sourcefire): Add quotes<BR> to preserve space where appropriate.<BR> 2012-11-02 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* src/manage_sql.c (send_to_verinice, send_to_sourcefire): Drop<BR> privileges when run as root.<BR> 2012-11-02 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (append_relation, manage_clean_filter): Preserve<BR> quotation of keywords.<BR> 2012-11-02 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_asset_iterator, filtered_host_count): In the<BR> \"Text phrase\" case, move the phrase filtering out to happen after the<BR> host selection, as in the old slower SQL.<BR> 2012-11-02 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_asset_iterator, filtered_host_count): Rework<BR> SQL of \"Text phrase\" case, to take advantage of the new results report<BR> column and index. For the count add report status check and in_assets<BR> check.<BR> 2012-11-02 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Improve performance of the simple case of the Assets report. Hence<BR> increase database version to 64. Add database migration from version 63<BR> to 64.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 64.<BR> <BR>* src/manage_sql.c (create_tables): Add report to results. Add index<BR> results_by_report_host.<BR> (migrate_63_to_64): New function.<BR> (migrators): Add migrate_63_to_64.<BR> (init_asset_iterator, filtered_host_count): Rework SQL of most common<BR> case, to take advantage of the new results report column and index. For<BR> the count add report status check and in_assets check.<BR> 2012-11-02 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): Let empty keywords match NULL.<BR> This patch was developed by Matthew Mundell.<BR> 2012-11-01 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* CHANGES: Updated.<BR> 2012-11-01 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* INSTALL: Update for out-of-source builds, update openvas-libraries<BR> dependency, mention verinice .PRO connector, replace \"escalator\" with<BR> \"alert\".<BR> 2012-11-01 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> Update targets for out-of-source builds.<BR> <BR>* doc/CMakeLists.txt: Update commands and targets to work with<BR> out-of-source builds.<BR> <BR>* doc/Doxyfile.in: Updated to work with out-of-source builds,<BR> harmonized with other modules.<BR> <BR>* doc/Doxyfile_full.in: Harmonized with Doxyfile.in.<BR> <BR>* src/CMakeLists.txt: Ensure that the target \"splint\", \"rats\",<BR> \"flawfinder\", \"etags\" and \"ctags\" work with out-of-source builds.<BR> 2012-11-01 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (modify_schedule): When intervals are -1 retain the<BR> existing value, instead of when intervals are 0. This allows setting<BR> the value to 0.<BR> <BR>* src/omp.c (time_from_strings): Return -1 if value was NULL and -2 on<BR> error. Adjust callers.<BR> 2012-11-01 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> Add support for sending alerts to a verinice .PRO server.<BR> <BR>* src/manage.h: Introduce ALERT_METHOD_VERINICE.<BR> <BR>* src/manage.c (alert_method_name, alert_method_from_name): Add<BR> support for ALERT_METHOD_VERINICE.<BR> <BR>* src/manage_sql.c (send_to_verinice): New function.<BR> (escalate_2): Add new case for ALERT_METHOD_VERINICE.<BR> <BR>* src/alert_methods/verinice/alert: New.<BR> <BR>* CMakeLists.txt: Ensure alert script is installed.<BR> 2012-10-31 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (modify_schedule): Update task next time too.<BR> 2012-10-31 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (slave_system_report): Request duration too, by using<BR> omp_get_system_reports_ext.<BR> 2012-10-31 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (modify_schedule): New command.<BR> (get_schedules): Add SIMPLE_PERIOD and SIMPLE_DURATION.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-10-30 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add OMP MODIFY_SCHEDULE.<BR> <BR>* src/manage_sql.c (modify_schedule): New function.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (time_from_strings): Add timezone arg. Update caller.<BR> (omp_commands, command_data_t): Add modify_schedule.<BR> (modify_schedule_data_t): New type.<BR> (modify_schedule_data_reset): New function.<BR> (modify_schedule_data): New variable.<BR> (client_state_t): Add MODIFY_SCHEDULE states.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text): Add MODIFY_SCHEDULE.<BR> (buffer_schedules_xml): Add SIMPLE_DURATION and SIMPLE_PERIOD to SCHEDULE<BR> to make it easier for basic clients to figure out the values and units.<BR> 2012-10-29 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* CMakeLists.txt: Increase dependency of openvas-libraries from 5.0.0<BR> to 6.0.0.<BR> <BR>* INSTALL: Drop Debian 5, updated pre-requisites.<BR> 2012-10-29 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* CHANGES: Prepared for the next beta release.<BR> 2012-10-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (get_schedule): Add TIMEZONE.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-10-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (buffer_schedules_xml): Skip the timezone adjustment when<BR> the schedule is over.<BR> 2012-10-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (buffer_schedules_xml): Use time_offset instead of<BR> current_offset for first_time because first_time may be the other side<BR> of a DST changeover.<BR> (omp_xml_handle_end_element): For GET_TASKS get schdule next_time with<BR> task_schedule_next_time_tz so that it follows the schedule\'s timezone.<BR> <BR>* src/manage_sql.c (task_schedule_next_time): Remove.<BR> (task_schedule_next_time_tz): New function.<BR> (task_schedule_iterator_stop_due): Account for schedule\'s timezone.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> 2012-10-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (iso_time_tz, time_offset): New functions.<BR> (init_schedule_iterator): Add timezone and initial_offset.<BR> (schedule_iterator_timezone, schedule_iterator_initial_offset): New<BR> functions.<BR> (schedule_iterator_in_use): Adjust column number accordingly.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> <BR>* src/omp.c (buffer_schedules_xml): Add TIMEZONE to SCHEDULE. Adjust<BR> next time for daylight saving.<BR> 2012-10-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Handle daylight saving in schedules. Hence increase database version to<BR> 63. Add database migration from version 62 to 63.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 63.<BR> <BR>* src/manage_sql.c (current_offset): New function.<BR> (create_tables): Add timezone and offset columns to schedules.<BR> (migrate_62_to_63): New function.<BR> (migrators): Add migrate_62_to_63.<BR> (init_manage_process): Init current_offset.<BR> (create_schedule): Init timezone and offset according to user\'s current<BR> timezone.<BR> (delete_schedule, manage_restore): Add new schedule columns.<BR> (init_task_schedule_iterator): Add owner and new schedule columns.<BR> (task_schedule_iterator_owner, task_schedule_iterator_timezone)<BR> (task_schedule_iterator_initial_offset): New functions.<BR> (task_schedule_iterator_start_due): Account for daylight saving.<BR> <BR>* src/manage.c (manage_schedule): Adjust times for daylight saving.<BR> <BR>* src/sql.c (sql_current_offset): New function.<BR> <BR>* src/manage.h, src/sql.h, src/manage_sql.h: Add headers accordingly.<BR> <BR>* doc/db_postgres.sql (schedules): Add fields.<BR> <BR>* doc/db.png: Update from source.<BR> 2012-10-25 Andre Heinecke <aheineckeAATTintevation.de><BR> Use Epoch date instead of ISO date in scap.db<BR> <BR>* tools/openvas-scapdata-sync.in, tools/greenbone-scapdata-sync<BR> (migrate_3): New.<BR> (migrate_to_2, reinit): Renamed migrate_to_2 to reinit.<BR> (check_db_version): Migrate from 2 to 3.<BR> <BR>* tools/db_init.sql: Bump Version number to 3<BR> <BR>* tools/cve_update.xsl (cve:entry): Call strftime to insert times in epoch<BR> format. Consistently use single single quotes in sql statements.<BR> <BR>* tools/cpe_update.xsl (cpe:cpe-item): Use strftime to insert times in<BR> epoch format.<BR> <BR>* src/manage_sql.c (CPE_INFO_ITERATOR_COLUMNS): Use generic<BR> GET_ITERATOR_COLUMNS together with the specific columns.<BR> 2012-10-25 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Check for manage_scap_loaded and<BR> send an error similiar to the one from prognostic reports otherwise.<BR> Reset get_info_data and break correctly when errors are detected.<BR> 2012-10-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (run_slave_task): Create target with<BR> omp_create_target_ext in order to specify port list.<BR> 2012-10-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (print_report_xml): Add prefix arg. Print it just<BR> before first part of report. Change filter_term error to 2. Update<BR> callers.<BR> (manage_send_report): Pass prefix to print_report_xml and check for 2<BR> return.<BR> <BR>* src/manage.h: Update header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_REPORTS for the<BR> standard scan report when there is a single report let<BR> manage_send_report handle the report heading. This allows detection of<BR> the filter_term error before anything is sent to the client, and so<BR> the connection can stay open when this error occurs.<BR> 2012-10-22 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (print_report_xml): Allocate levels in fallback case,<BR> as it is now allocated in the filter cases.<BR> 2012-10-22 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Correct command name in<BR> GET_AGENTS error response.<BR> 2012-10-22 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): Add trash arg. Use notes_trash<BR> table if set. Update callers.<BR> 2012-10-19 Andre Heinecke <aheineckeAATTintevation.de><BR> Readd description to the CVE table<BR> <BR>* src/manage_sql.c (prognosis_where_search_phrase),<BR> (init_host_prognosis_iterator): Uncomment cves.description again.<BR> <BR>* tools/openvas-scapdata-sync.in, tools/greenbone-scapdata-sync<BR> (check_db_version): Handle Version 1. Correct column name of<BR> database_version.<BR> (migrate_to_2): New. Just reinitializes the database.<BR> (migrate_0_to_1): Removed.<BR> (update_sec_db): Do not delete database if refdate is empty.<BR> <BR>* tools/greenbone-scapdata-sync: Update script Version.<BR> <BR>* tools/db_init.sql: Change DB version to 2.<BR> (cves): Add description column.<BR> <BR>* tools/cve_update.xsl (cve:entry): Insert description.<BR> 2012-10-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.h (iterator_t): Add prepared flag.<BR> <BR>* src/sql.c (sql_double, sql_prepare, init_prepared_iterator): New<BR> functions.<BR> (init_iterator): Clear prepared flag.<BR> (cleanup_iterator): Skip finalize if prepared.<BR> <BR>* src/sql.h: Add headers accordingly.<BR> <BR>* src/manage_sql.c (cpe_highest_cvss): New function.<BR> (init_prognosis_iterator): Prepare the iterator statement once per<BR> process instead of every time.<BR> (prognosis_where_search_phrase, init_host_prognosis_iterator): Comment<BR> out cves.description for now.<BR> (print_report_xml): Only print the CVEs of the App when the details flag<BR> is given. Get the highest CVSS of a CVE from the SCAP db instead of<BR> computing it. These two combine to make the GSA Host Assets Table much<BR> faster. Print the host prognosis once instead of for every detail.<BR> 2012-10-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* tools/openvas-scapdata-sync (SQLITE): New variable. Replace all calls<BR> to sqlite3 with this, to override the users header config.<BR> (update_sec_db): Quotes variables in condition for empty string test.<BR> Replace log_write with echo, log_write is for greenbone-scapdata-sync.<BR> 2012-10-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add simple report count caching. Hence increase database version to 62.<BR> Add database migration from version 61 to 62.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 62.<BR> <BR>* src/manage_sql.c (create_tables): Add cache columns to reports.<BR> (migrate_61_to_62): New function.<BR> (migrators): Add migrate_61_to_62.<BR> (init_manage, make_report): Init report cache columns.<BR> (reports_clear_count_cache, report_cache_counts): New functions.<BR> (set_scan_end_time_otp): Cache report counts.<BR> (report_counts_id_filt): In the \"all\" case try to read the counts from<BR> the cache, and store counts in cache after counting.<BR> (create_override, modify_override): Clear cached override counts in<BR> report.<BR> <BR>* doc/db_postgres.sql (reports): Add cache fields.<BR> <BR>* doc/db.png: Update from source.<BR> 2012-10-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In the brief GET_TASKS case<BR> take into account that the count for the older report will be reused<BR> when there are only one or two reports, and correct the name of the<BR> task variable passed to task_trend_counts.<BR> 2012-10-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (task_trend_calc, task_trend_counts): New functions.<BR> (task_trend): Call task_trend_calc.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): For the brief GET_TASKS<BR> version call task_trend_counts to get the trend, in order to save<BR> some counting.<BR> 2012-10-15 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Fixed a wrong path.<BR> 2012-10-15 Andre Heinecke <aheineckeAATTintevation.de><BR> Expand get_info for multiple info elements and implement iteratable CPE info<BR> <BR>* src/manage_sql.c (count, get_target_iterator): Add owned parameter<BR> to allow handling types without owner. Update callers.<BR> (cpe_info_count): New. Count info elements of type cpe<BR> (init_cpe_info_iterator): New. Initialize a get iterator for info of type<BR> cpe<BR> (cpe_info_iterator_title, cpe_info_iterator_status)<BR> (cpe_info_iterator_deprecated_by, cpe_info_iterator_max_cvss)<BR> (cpe_info_iterator_cve_refs): New functions to access iterator.<BR> (CPE_INFO_ITERATOR_FILTER_COLUMNS, CPE_INFO_ITERATOR_COLUMNS): New<BR> defines.<BR> (init_cpe_cve_iterator): Update column name for \"cve name\".<BR> (cpe_info_count): New function to count cpe info.<BR> (valid_type): Add info type<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/manage.c (get_cpe_filename): Removed.<BR> (manage_read_info): Remove old handling of CPEs.<BR> (CPE_GETBYNAME_XSL, CPE_DICT_FILENAME): Removed define.<BR> <BR>* src/omp.c (get_info_data_t): Add generic GET arg and add details value.<BR> (get_info_data_reset): Also reset the generic get_data<BR> (send_get_start, send_get_end): Do not send plural form of info<BR> (send_get_start): Send empty elements instead of (null) when an element is<BR> null.<BR> (omp_xml_handle_start_element): Parse generic GET data and details in GET_INFO<BR> (omp_xml_handle_end_element): Add iterator based handling for CPEs<BR> <BR>* src/schema_formats/XML/OMP.xml: Update get_info documentation<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-10-15 Andre Heinecke <aheineckeAATTintevation.de><BR> Allow more generic handling of SCAP Data and expand CPE/CVE info<BR> <BR>* tools/db_init.sql (meta): Add meta table for version information.<BR> (cves): Remove description but add generic data fields<BR> (cpes): Add generic data fields and additional columns<BR> (cves_delete): New. Trigger for cve deletion to correctly adopt<BR> affected_products.<BR> (affected_delete): New. Trigger to keep cached information about related<BR> cves accurate in the cpe table.<BR> <BR>* tools/greenbone-scapdata-sync, tools/openvas-scapdata-sync<BR> (migrate_0_to_1, check_db_version): New. support a versioned Database.<BR> <BR>* tools/greenbone-scapdata-sync (update_scap_db),<BR> tools/openvas-scapdata-sync (update_sec_db): Handle database version<BR> and last_updated from database.<BR> <BR>* tools/cve_update.xsl: Add statements to calculate cpe max_cvss and<BR> cve_refs values. Use new columns.<BR> <BR>* tools/cpe_update.xsl: Use new columns. Escape names and titles.<BR> 2012-10-12 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (manage_read_info): Append XML with xml_string_append,<BR> in case it contains special chars.<BR> 2012-10-12 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* doc/db_postgres.sql (notes_trash): New table.<BR> <BR>* doc/db.png: Update from source.<BR> 2012-10-12 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (create_note): Add COPY.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-10-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (note_count): Remove comment. Extra SQL only<BR> needed when a subset of the notes is required (like notes on a task).<BR> 2012-10-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (buffer_notes_xml): Add count arg. Update callers. Match<BR> XML to send_get_common.<BR> (buffer_result_notes_xml): Add sorting.<BR> (omp_xml_handle_end_element): Remove targets reference code.<BR> 2012-10-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Add missing return case for<BR> copy_filter, copy_note and copy_target.<BR> 2012-10-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_manage_process): Add database to SCAP check<BR> otherwise it always fails.<BR> 2012-10-08 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_manage_process): Check for the cves table when<BR> setting scap_loaded, to ensure that the db schema has been created.<BR> 2012-10-08 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (nvt_selector_plugins): Always add all settings NVTs onto<BR> plugins preference.<BR> <BR>* src/manage_sql.c (init_nvt_iterator): Add category case. Update<BR> callers.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Update init_nvt_iterator call.<BR> 2012-10-08 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (split_filter): If there is a filter, make the<BR> max_return default to Rows Per Page.<BR> (filter_clause): Init max_return for safety. Add a special sorting<BR> case for notes to get the rows sorted by text as a second field.<BR> (NOTE_ITERATOR_FILTER_COLUMNS, NOTE_ITERATOR_COLUMNS): Add name so<BR> there is something to sort by in the default case.<BR> 2012-10-08 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* report_formats/verinice-itg/gsm_verinice_itg.xsl (get-details):<BR> Look for detail named MAC instead of mac_address<BR> 2012-10-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (create_note): Check that NVT exists.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Handle new create_note return.<BR> 2012-10-05 Andre Heinecke <aheineckeAATTintevation.de><BR> Only include application Tags in itg report.<BR> <BR>* report_formats/verinice-ism/classification-helpers.xsl (detail):<BR> Rename to generate-tags add parameter to include apps<BR> <BR>* report_formats/verinice-itg/gsm_verinice_itg.xsl (/):<BR> Use extract Organization instead of the task name as general id.<BR> (report/host_start): Call generate-tags instead of matching<BR> <BR>* report_formats/verinice-ism/gsm_verinice_ism.xsl (report/host_start):<BR> Call generate-tags without parameter instead of matching the template<BR> 2012-10-05 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Improve handling of present, but<BR> empty DB files.<BR> 2012-10-04 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add trashcan feature to notes.<BR> <BR>* src/omp.c (delete_lsc_credential_data_reset): Add ultimate.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element): Add ultimate<BR> flag to DELETE_NOTE.<BR> <BR>* src/manage_sql.c (create_tables): Add notes_trash.<BR> (delete_note): Add ultimate arg and trashcan handling.<BR> (NOTE_ITERATOR_TRASH_COLUMNS): Explicitly specify columns.<BR> (manage_restore): Add notes.<BR> <BR>* src/manage.h: Add header accordingly.<BR> 2012-10-04 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (NOTE_ITERATOR_COLUMNS): Add missing table to column.<BR> 2012-10-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (NOTE_ITERATOR_COLUMNS): Remove duplicates. Update<BR> accessors accordingly.<BR> <BR>* src/omp.c (buffer_notes_xml): Switch to generic accessors for common<BR> GET fields.<BR> 2012-10-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (NOTE_ITERATOR_COLUMNS): Add fake task_id column so<BR> that when the general filter clause is used there is a column to lookup.<BR> 2012-10-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): Exclude nvt_id from the _id<BR> handling.<BR> (ANON_GET_ITERATOR_FILTER_COLUMNS): Add nvt_id.<BR> (NOTE_ITERATOR_COLUMNS): Add special column for nvt_id.<BR> 2012-10-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): For an equal relation, when the<BR> column ends in \"_id\" then add a clause that does a UUID comparison<BR> across tables.<BR> (NOTE_ITERATOR_FILTER_COLUMNS): Add task_id to possible filter columns.<BR> 2012-10-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add COPY to CREATE_NOTE for cloning.<BR> <BR>* src/manage_sql.c (type_named): New function.<BR> (copy_resource): Check if type has name and comment.<BR> (copy_note): New function.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (create_note_data_t, create_note_data_reset): Add copy.<BR> (client_state_t): Add CLIENT_CREATE_NOTE_COPY.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text): Add COPY to CREATE_NOTE.<BR> 2012-10-02 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (target_writable, trash_target_writable): Invert<BR> test.<BR> 2012-10-02 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* tools/openvas-scapdata-sync.in (update_sec_db):<BR> Correct variable name used in the CPEBASE stat call<BR> 2012-10-02 Andre Heinecke <aheineckeAATTintevation.de><BR> Improve performance of latex text escaping<BR> <BR>* src/report_formats/LaTeX/latex.xsl (escape_text): Avoid<BR> uneccessary copy of the string to escape.<BR> (escape_special_chars): New. Use str:replace instead of<BR> latex-prepend-backslash<BR> (latex-prepend-backslash): Removed<BR> 2012-10-01 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add filtering to GET_NOTES.<BR> <BR>* src/manage_sql.c (ANON_GET_ITERATOR_FILTER_COLUMNS)<BR> (ANON_GET_ITERATOR_COLUMNS): New defines.<BR> (init_user_get_iterator, init_get_iterator): Give caller more SQL<BR> flexibility. Update callers.<BR> (NOTE_ITERATOR_FILTER_COLUMNS, NOTE_ITERATOR_COLUMNS)<BR> (NOTE_ITERATOR_TRASH_COLUMNS): New defines.<BR> (note_count): New function.<BR> (init_note_iterator): Update to new GET style with filter, leaving<BR> certain note-specific \"filtering\" params. Adjust all accessors<BR> accordingly.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> (get_data_t): Add details.<BR> <BR>* src/omp.c (get_data_parse_attributes): Add details.<BR> (get_notes_data_t): Switch to generic GET arg.<BR> (omp_xml_handle_start_element): Parse generic GET data in GET_NOTES.<BR> (buffer_result_notes_xml, omp_xml_handle_end_element): Pass generic GET<BR> arg to iterator. Use correct command in CLIENT_GET_TARGETS error.<BR> 2012-10-01 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* tools/openvas-scapdata-sync.in: Do not use the timestamp of $SEC_DB<BR> to decide which CPEs/CVEs to add/update. Use the timestamp of the last<BR> modified CVE in the DB instead.<BR> 2012-09-28 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* report_formats/verinice-ism/create_report_import: Bump version<BR> number.<BR> 2012-09-28 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* report_formats/verinice-ism/gsm_verinice_ism.xsl (create_links):<BR> Correct relationId\'s<BR> <BR>* report_formats/verinice-ism/gsm_verinice_ism.xsl (get-details):<BR> Only use the hostname for the asset if available instead of hostname - ip<BR> 2012-09-27 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* report_formats/verinice-ism/generate: Use _ instead of - as the<BR> separator between Scan Name and Date for file attachment names.<BR> 2012-09-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (config_writable): Add location and hidden check as<BR> in config_in_use.<BR> (manage_set_config_preference, manage_set_config_nvts)<BR> (manage_set_config_families): Add hidden clause to \"config in use\"<BR> check. Thanks to Sebastien Aucouturier for pointing this out.<BR> 2012-09-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (client_state_t, omp_xml_handle_end_element): Remove<BR> spurious state. Correct command name in error message.<BR> <BR>* src/schema_formats/XML/OMP.xml: Add modify_target.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-09-25 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* report_formats/verinice-ism/create_report_import: Bump version<BR> number.<BR> 2012-09-25 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* report_formats/verinice-ism/gsm_verinice_ism.xsl: Remove scan name from<BR> group names.<BR> 2012-09-25 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* report_formats/verinice-ism/gsm_verinice_ism.xsl: Use filename as ID.<BR> <BR>* report_formats/verinice-ism/generate: Include task name and current<BR> date in filenames for attachments.<BR> 2012-09-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_start_element): Move CREATE_AGENT and<BR> CREATE_TARGET name init to name element, to match filters.<BR> (omp_xml_handle_end_element): Check that NAME exists in CREATE_AGENT<BR> and CREATE_TARGET, as in CREATE_FILTER.<BR> 2012-09-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (modify_target): Add assertions.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In MODIFY_TARGET check for<BR> target_id and port_list_id, and add missing return case.<BR> 2012-09-21 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* report_formats/verinice-ism/create_report_import: Bump version<BR> number.<BR> 2012-09-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Serve OMP even when the scanner is down.<BR> <BR>* src/manage.c (scanner_up): New variable.<BR> (run_task, start_task, stop_task, pause_task, resume_paused_task): Check<BR> that scanner is up.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Handle new \"scanner down\"<BR> returns from task commands.<BR> (scanner_is_up): New function.<BR> <BR>* src/omp.h: Add header accordingly.<BR> <BR>* src/omp.c (serve_omp): Only interact with the scanner when it is up.<BR> If the scanner init fails then set the scanner down. Loop while the<BR> initial write is interrupted, in order to tell if the connection<BR> succeeds.<BR> 2012-09-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_manage): Add WHERE to SQL that ensures that the<BR> the Localhost target has the right port list, otherwise all targets are<BR> set the Default port list on startup.<BR> 2012-09-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (range_compare): Treat args correctly, as pointers to<BR> array pointers. Order start ascending instead of descending.<BR> 2012-09-20 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* report_formats/verinice-ism/classification-helpers.xsl<BR> (extract_organization): Fix xpath expressions for looking up the<BR> organization name from comments.<BR> 2012-09-20 Andre Heinecke <aheineckeAATTintevation.de><BR> <BR>* report_formats/verinice-ism/gsm_verinice_ism.xsl: Add gsm_ip_address<BR> field to allow easier parsing of the address in verinice<BR> 2012-09-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (create_target_data_reset): Free make_name_unique.<BR> 2012-09-19 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Do not use the timestamp of $SCAP_DB<BR> to decide which CPEs/CVEs to add/update. Use the timestamp of the last<BR> modified CVE in the DB instead.<BR> 2012-09-19 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Re-add copyright year lost in last<BR> commit, spotted by Felix Wolfsteller.<BR> 2012-09-19 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Fix script name in log entries.<BR> 2012-09-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (report): Add new filters.<BR> (create_filter, delete_filter, get_filters, modify_filter): New commands.<BR> (create_alerts, get_alerts, get_agents, get_reports): Add new filters.<BR> (get_targets): Add new filters. In examples add missing elements and<BR> make UUIDs match.<BR> (help): Add new commands.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-09-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* doc/db_postgres.sql (agents, agents_trash, targets, targets_trash): Add<BR> times.<BR> (alerts, alerts_trash): Add filters.<BR> (filters, filters_trash, settings): New tables.<BR> <BR>* doc/db.png: Update from source.<BR> 2012-09-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (escalate_2): Use associated filter in Sourcefire<BR> method.<BR> 2012-09-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_filter_term, print_report_xml)<BR> (manage_report_filter_controls): Remove apply_overrides from filtering<BR> to match the GSA report behaviour.<BR> <BR>* src/manage.h: Update header accordingly.<BR> 2012-09-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (print_report_xml): Pass the filter instead of the<BR> NULL term to manage_report_filter_controls when the filter is given as<BR> a string in the GET params.<BR> (manage_report_filter_controls): Add default values, to prevent memory<BR> errors in the caller.<BR> 2012-09-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_filter_term): Add delta_states.<BR> (print_report_xml): Pass delta states to filter functions.<BR> (manage_report_filter_controls): Add delta_states parsing.<BR> <BR>* src/manage.h: Update header accordingly.<BR> 2012-09-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (delete_alert): Neaten doc.<BR> (alert_filter_id): New function.<BR> (escalate_2): Get filter from new location in database.<BR> (print_report_xml): Set the filter parameters from the filter term<BR> if a filter is given. Was previously done in callers.<BR> (manage_report): Let print_report_xml do the filter choice, and pass the<BR> filter into print_report_xml so that it appears in the report.<BR> (manage_send_report): Let print_report_xml do the filter choice.<BR> 2012-09-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (escalate_2): Check manage_report return.<BR> 2012-09-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (manage_report, manage_send_report): Free filter<BR> strings.<BR> 2012-09-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add ALERTS to GET_FILTERS response, governed by \"alerts\" attribute.<BR> <BR>* src/manage_sql.c (init_filter_alert_iterator)<BR> (filter_alert_iterator_name, filter_alert_iterator_uuid): New functions.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> <BR>* src/omp.c (get_filters_data_t): Rename tasks to alerts.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element): Send Alerts<BR> in GET_FILTERS if requested.<BR> 2012-09-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Handle Alert filters explicitly, both at OMP and database level. In the<BR> process manage the trashcan dependency between Alert and Filter<BR> properly. This makes Alerts more consistent with other resource types.<BR> Hence increase database version to 61. Add database migration from<BR> version 60 to 61.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 61.<BR> <BR>* src/manage_sql.c (create_tables): Add filter columns to alerts and<BR> alerts_trash.<BR> (migrate_60_to_61): New function.<BR> (migrators): Add migrate_60_to_61.<BR> (create_alert): Add filter_id param.<BR> (delete_alert): Insert alert filter into trashcan.<BR> (init_alert_iterator): Add columns for filter ID, name and trash state.<BR> (alert_iterator_filter_id, alert_iterator_filter_name)<BR> (alert_iterator_filter_trash, agent_in_use, trash_agent_in_use): New<BR> functions.<BR> (delete_filter): Add in use checks. Update filter location when moving<BR> to trash.<BR> (filter_in_use, trash_filter_in_use): New functions.<BR> (manage_restore): Add in use check, and restore alert filter info.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/omp.c (create_alert_data_t, create_alert_data_reset): Add<BR> filter_id.<BR> (send_get_common, SEND_GET_COMMON): Add in_use arg.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element): Add FILTER<BR> to OMP CREATE_ALERT. Improve restore error message. Add FILTER to ALERT<BR> in OMP GET_ALERTS. Remove IN_USE from CLIENT_GET_TARGETS case because<BR> it\'s now generic in send_get_common.<BR> <BR>* doc/db.png: Update for version change.<BR> 2012-09-11 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* CMakeLists.txt: Fix installation of renamed alert.<BR> 2012-09-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (send_to_sourcefire): Change script name \"escalator\"<BR> to \"alert\".<BR> <BR>* src/escalator_methods, src/escalator_methods/Sourcefire,<BR> src/escalator_methods/Sourcefire/escalate: Remove. Now name with alert.<BR> <BR>* src/alert_methods, src/alert_methods/Sourcefire,<BR> src/alert_methods/Sourcefire/alert: New. Escalator rename.<BR> 2012-09-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (get_filters_data_t, get_filters_data_reset)<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element): Remove<BR> beginnings of implementation of type attribute for GET_FILTERS. The<BR> client can control the type via the \"filter\" attribute.<BR> 2012-09-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add report filtering to email alerts.<BR> <BR>* src/manage_sql.c (escalate_2): Pass filt_id to manage_report in email<BR> case.<BR> (print_report_xml): Add NULL checks on \"get\".<BR> (manage_report): Add filt_id arg. Set filter controls according to this<BR> filter if given. Add NULL checks on \"get\".<BR> (count, init_user_get_iterator, init_get_iterator): Add asserts.<BR> <BR>* src/manage.h: Update header accordingly.<BR> 2012-09-07 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> Adding new report format plugin that produces XML output<BR> for the Open Source ISMS Tool Verinice, specifically handling<BR> content of a IT-Grundschutz Scan using the GSHB NVTs.<BR> The plugin was implemented by Andre Heinecke and Michael Wiegand.<BR> <BR>* report_formats/verinice-itg,<BR> report_formats/verinice-itg/gsm_verinice_itg.xsl,<BR> report_formats/verinice-itg/create_report_import,<BR> report_formats/verinice-itg/generate,<BR> report_formats/verinice-itg/README.txt: New.<BR> 2012-09-06 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> Adding new report format plugin that produces XML output<BR> for the Open Source ISMS Tool Verinice.<BR> The plugin was implemented by Andre Heinecke and Michael Wiegand.<BR> <BR>* report_formats/verinice-ism,<BR> report_formats/verinice-ism/classification-helpers.xsl,<BR> report_formats/verinice-ism/gsm_verinice_ism.xsl,<BR> report_formats/verinice-ism/create_report_import,<BR> report_formats/verinice-ism/generate,<BR> report_formats/verinice-ism/README.txt: New.<BR> 2012-09-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add new-style filtering to the existing GET_REPORTS filtering.<BR> <BR>* src/manage_sql.c (report_filter_term): New function.<BR> (print_report_xml): Add GET op data arg. Set new-style filter from GET<BR> args if given, otherwise generate the new-style filter term from the<BR> old-style args.<BR> (manage_send_report): Add GET op data arg. Generate old-style args from<BR> new-style filter if given.<BR> (filter_control_int, filter_control_str)<BR> (manage_report_filter_controls): New functions.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/omp.c (get_reports_data_t, get_reports_data_reset): Add generic<BR> GET arg.<BR> (omp_xml_handle_start_element): Parse GET arg for GET_REPORTS and pass<BR> on to manage_send_report.<BR> 2012-09-04 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (valid_type): Add filter.<BR> (filter_clause): Allow the keyword string to be empty if there\'s a<BR> column specifier, like comment=\"\".<BR> (count): Take the GET info as a single param. Use filter from ID if<BR> there is one.<BR> (target_count, agent_count, filter_count): Pass GET info as single<BR> param.<BR> (init_user_get_iterator): Use filter given by ID if there is one.<BR> (init_get_iterator): Adjust for filter ID returns. Use filter given by<BR> ID if there is one. Add used_by param so caller can control what type<BR> the resource is used by.<BR> (init_user_target_iterator): Clear get so filt_id is NULL.<BR> (init_target_iterator, init_agent_iterator, init_filter_iterator): Add<BR> used_by to calls.<BR> (filter_term): New function.<BR> (create_filter, modify_filter): Let type be \"\" instead of NULL to<BR> indicate any type.<BR> (filter_iterator_type): Return \"\" if NULL.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> (get_data_t): Add filt_id.<BR> <BR>* src/omp.c (get_data_reset, get_data_parse_attributes): Add filt_id.<BR> (send_get_end): Remove max which was replaced by filters. Get filter<BR> from ID if one was given. Add filter ID to XML.<BR> (omp_xml_handle_start_element): Init MODIFY_FILTER type in case it\'s<BR> empty. Handle new returns from GET iterators. Adjust GET op count<BR> calls.<BR> 2012-08-29 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add filters, including OMP GET_FILTERS, CREATE_FILTER, DELETE_FILTER and<BR> MODIFY_FILTER.<BR> <BR>* src/manage_sql.c (resource_t): Remove. Now in manage.h<BR> (find_resource_for_actions): Move to Resources page.<BR> (valid_type, find_resource, find_resource_for_actions)<BR> (copy_resource, agent_writable, trash_agent_writable, find_filter)<BR> (find_filter_for_actions, filter_uuid, create_filter, copy_filter)<BR> (delete_filter, filter_writable, trash_filter_writable): New functions.<BR> (create_tables): Add filters and filters_trash.<BR> (FILTER_ITERATOR_FILTER_COLUMNS, FILTER_ITERATOR_COLUMNS)<BR> (FILTER_ITERATOR_TRASH_COLUMNS): New defines.<BR> (filter_count, init_filter_iterator, filter_iterator_type)<BR> (filter_iterator_term, modify_filter): New functions.<BR> (manage_restore, manage_empty_trashcan): Add filters.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> (filter_t): New type.<BR> (resource_t): New type. From manage_sql.h.<BR> <BR>* src/omp.c (omp_commands, command_data_t, client_state_t)<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text): Add filter commands.<BR> (create_filter_data_t, delete_filter_data_t, get_filters_data_t)<BR> (modify_filter_data_t): New types.<BR> (create_filter_data_reset, delete_filter_data_reset)<BR> (get_filters_data_reset, modify_filter_data_reset): New functions.<BR> (create_filter_data, delete_filter_data, get_filters_data)<BR> (modify_filter_data): New variables.<BR> (send_get_common): Add writable arg.<BR> (SEND_GET_COMMON): Pass writable in generic way. Convert type arg to<BR> token. Update callers.<BR> <BR>* src/sql.c (sql_nquote, sql_quote): Assert string exists.<BR> 2012-08-27 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (omp_xml_handle_end_element): In CLIENT_MODIFY_TASK<BR> correct the direction of the alerts comparison and add the missing<BR> comment check.<BR> 2012-08-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (task_schedule_iterator_stop_due): Consider duration<BR> even for once-off tasks, in case people want this.<BR> 2012-08-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (validate_host): Skip leading whitespace too.<BR> 2012-08-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (end_char): Remove.<BR> (contains_alpha): New function.<BR> (manage_max_hosts): Check entire part for alphanumeric chars when<BR> checking for a hostname.<BR> 2012-08-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (manage_set_config_name)<BR> (manage_set_config_name_comment): Add missing owner clause.<BR> 2012-08-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add a flag to OMP CREATE_TARGET which indicates that the Manager must<BR> make the target name unique.<BR> <BR>* src/manage_sql.c (create_target): Add make_name_unique argument.<BR> Update all callers.<BR> <BR>* src/manage: Update header accordingly.<BR> <BR>* src/omp.c (create_target_data_t, client_state_t)<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text): Add MAKE_UNIQUE to TARGET/NAME.<BR> <BR>* src/schema_formats/XML/OMP.xml (create_target): Add MAKE_UNIQUE to<BR> TARGET/NAME.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> <BR>* src/wizards/quick_first_scan.xml: Add MAKE_UNIQUE to CREATE_TARGET<BR> command.<BR> 2012-08-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add family to NVT in results. Based on patch by Sebastien Aucouturier.<BR> <BR>* src/manage_sql.c (result_iterator_nvt_family): New function.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (buffer_results_xml): Add NVT family to response.<BR> <BR>* src/schema_formats/XML/OMP.xml (result): Add NVT family.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-08-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml: Add RUN_WIZARD.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-08-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Move the RUN_WIZARD implementation out of the parser.<BR> <BR>* src/manage.c (manage_run_wizard): New function. Body from<BR> omp_xml_handle_end_element RUN_WIZARD in omp.c<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Move RUN_WIZARD implementation<BR> to manage_run_wizard.<BR> (process_omp_write): Add a trace message similar to ompd_send_to_client.<BR> (name_value_t): Remove. Now in manage.h.<BR> <BR>* src/manage.h: Add header accordingly.<BR> (name_value_t): New type. From manage_sql.c.<BR> <BR>* src/manage_sql.c (name_value_t): Remove. Now in manage.h.<BR> 2012-08-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In RUN_WIZARD remove<BR> temp files after use.<BR> 2012-08-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/wizards/quick_first_scan.xml: Remove TODO now that params are<BR> escaped.<BR> 2012-08-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Escape RUN_WIZARD params<BR> for XML file.<BR> 2012-08-15 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add setting Wizard Rows.<BR> <BR>* src/manage_sql.c (init_manage): Ensure setting exists.<BR> 2012-08-15 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In RUN_WIZARD add name check<BR> and correct command in error message.<BR> 2012-08-15 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In RUN_WIZARD adjust the fail<BR> cases because they break out of the while now, free \'entity\' after<BR> last use instead of inside the loop, close xml_file, remove testing<BR> elements from responses and use a dedicated entity when checking the<BR> response.<BR> 2012-08-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In RUN_WIZARD free entity<BR> properly and exit if the command for any step fails.<BR> 2012-08-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add new OMP command RUN_WIZARD. Add first wizard quick_first_scan.<BR> <BR>* src/manage.c (xsl_transform): Export.<BR> <BR>* src/manage_sql.c (manage_send_report): Add new arg to param types<BR> of send function.<BR> <BR>* src/omp.c (omp_commands, command_data_t, client_state_t): Add<BR> RUN_WIZARD.<BR> (omp_parser_t, omp_parser_new, send_element_error_to_client)<BR> (send_find_error_to_client, send_get_start, send_get_common)<BR> (send_get_end, send_requirement, send_dependency, send_nvt)<BR> (send_reports, init_omp_process): Add new arg to type of send function.<BR> (run_wizard_data_t): New type.<BR> (run_wizard_data_reset): New function.<BR> (run_wizard_data): New variable.<BR> (send_to_client): Simply call through to the send function provided by<BR> the caller, which now does all the work. This allows process_omp to<BR> use its own send function and have full control of what it does.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element): Add new arg<BR> to type of send function. Handle RUN_WIZARD.<BR> (omp_xml_handle_text): Handle RUN_WIZARD.<BR> (process_omp_write, process_omp): New functions. For processing an OMP<BR> command during the processing of an OMP command.<BR> <BR>* src/manage.h, src/omp.h: Update headers accordingly.<BR> <BR>* src/ompd.c (ompd_send_to_client): New function. Body from<BR> omp.c send_to_client.<BR> (serve_omp): Add new arg to type of send function. Pass<BR> ompd_send_to_client as this send function.<BR> <BR>* src/wizards, src/wizards/quick_first_scan.xml: New files.<BR> <BR>* CMakeLists.txt: Install wizard.<BR> 2012-08-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (MAX_CHECKS_DEFAULT, MAX_HOSTS_DEFAULT): New defines.<BR> (send_task_preferences): Use new defines.<BR> (run_slave_task): Create task with max_checks and max_hosts preferences.<BR> 2012-08-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_asset_iterator, filtered_host_count): Quote<BR> search phrase for SQL.<BR> 2012-08-01 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Make the ARF report format predefined.<BR> <BR>* CMakeLists.txt: Install predefined ARF.<BR> <BR>* src/manage_sql.c (init_manage): Ensure predefined ARF exists.<BR> (report_format_predefined): Add predefined ARF.<BR> <BR>* src/report_formats/ARF/, src/report_formats/ARF/ARF.xsl,<BR> src/report_formats/ARF/generate: New directory and files.<BR> <BR>* report_formats/arf: Remove.<BR> 2012-07-30 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Expose the already implemented multiple alert feature in OMP.<BR> <BR>* src/omp.c (create_task_data_t, create_task_data_reset)<BR> (modify_task_data_t, modify_task_data_reset): Replace alert with array<BR> of alerts.<BR> (omp_xml_handle_start_element, omp_xml_handle_end): In CREATE_TASK,<BR> GET_TASKS and MODIFY_TASK handle multiple ALERTs instead of just one.<BR> <BR>* src/manage_sql.c (init_alert_iterator): Add separate case for when<BR> event is 0.<BR> (set_task_alert): Remove. Now set_task_alerts.<BR> (set_task_alerts): New function.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/schema_formats/XML/OMP.xml (create_task): Add multiple alerts.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-07-29 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_report_iterator): When getting all reports, get<BR> only the visible reports for the current user.<BR> 2012-07-27 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (omp_xml_handle_start_element): Clear preference data<BR> in case there are multiple preferences.<BR> 2012-07-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_otp_pref_iterator): Include the special<BR> timeout.OID preferences, so that these user-defined NVT timeouts<BR> are sent to the scanner.<BR> 2012-07-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (type_name): Use xsd:Name.<BR> <BR>* doc/omp.html, doc/omp.rnc: Update from source.<BR> 2012-07-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (modify_config): Note that value must be<BR> base64. Add example of modifying scanner preference.<BR> <BR>* doc/omp.html: Update from source.<BR> 2012-07-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (print_report_xml): Add COMMENT to TASK.<BR> 2012-07-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add task preference \"in_assets\" which controls whether the task is<BR> considered by the asset management. Hence increase database version to<BR> 60. Add database migration from version 59 to 60.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 60.<BR> <BR>* src/manage_sql.c (migrate_59_to_60): New function. Ensures each task<BR> has an in_assets preference.<BR> (migrators): Add migrate_59_to_60.<BR> (init_asset_iterator, host_nthlast_report_host): Add the condition that<BR> the task\'s in_assets preference must be \"yes\", to the SQL.<BR> (make_task): Add in_assets task preference for the task.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Send in_assets preference with<BR> task preferences.<BR> <BR>* doc/db.png: Update for version change.<BR> 2012-07-24 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_REPORTS cleanup<BR> the iterator early when a particular report was requested. This allows<BR> the main manager process to lock the database for task scheduling during<BR> generation of large reports. Also remove two stray cleanup_iterator<BR> calls.<BR> 2012-07-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/ompd.c (serve_omp): Correct comment typo.<BR> 2012-07-23 Werner Koch <wkAATTgnupg.org><BR> Documentation update.<BR> <BR>* src/ompd.c (serve_omp): s/fds/fd_info/. Add a few comments.<BR> 2012-07-23 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Import host details when importing reports.<BR> <BR>* src/manage_sql.c (host_detail_free): New function.<BR> (create_report): Add details arg.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> (host_detail_t): New type.<BR> <BR>* src/omp.c (create_report_data_t, create_report_data_reset)<BR> (client_state_t): Add host details.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text): Parse and store host details for CREATE_REPORT,<BR> and hand over to create_report function.<BR> 2012-07-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (split_filter, manage_filter_controls): When<BR> \"rows\" is left out, include all rows instead of including \"Rows<BR> Per Page\" rows. This keeps OMP backwards compatibility.<BR> (append_relation): New function.<BR> (manage_clean_filter): Append with append_relation, which converts the<BR> \"rows\" value to \"Rows Per Page\" if \"rows\" is -2. This is convenient for<BR> client because they can request Rows Per Page and still get the actual<BR> value back in the filter. Previous they just left out \"rows\" and this<BR> would happen.<BR> 2012-07-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add OTP 1.1 handling.<BR> <BR>* src/ompd.c (write_to_scanner): Send OTP/1.1 for normal mode, OTP/1.0 for<BR> NVT cache mode. In normal mode go to DONE state after sending password.<BR> <BR>* src/otp.c (process_otp_scanner_input): Also check for OTP/1.1.<BR> <BR>* src/oxpd.c (OTP_INIT_STRING_2): New define.<BR> (read_protocol): Also compare OTP 1.1 string.<BR> 2012-07-09 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* src/manage.c (manage_read_info): Replace g_strcasecmp with<BR> g_ascii_strcasecmp. The g_strcasecmp function has been deprecated<BR> since glib 2.2 and is no longer available in recent glib versions.<BR> 2012-07-09 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* src/manage_sql.c (print_report_xml, manage_filter_controls): Remove<BR> assigned but unused variables to address compiler warnings.<BR> 2012-07-06 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* src/tests/CMakeLists.txt: Ensure that linking with modern gccs works<BR> by moving linker flags from LINK_FLAGS to target_link_libraries.<BR> 2012-06-27 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (manage_filter_controls): Correct doc brief.<BR> 2012-06-27 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> When the GET filter defines an empty set and \"first\" is above 1, then<BR> respond with \"first\" equal 1. This prevents the user from jumping into<BR> blank space after the rows.<BR> <BR>* src/omp.c (send_get_start): Just send start tag.<BR> (send_get_end): Move fields from send_get_start into here so that they\'re<BR> sent after the iteration.<BR> (get_next): New function. Does next check for GET operation iteration,<BR> resetting the iteration to the beginning with first=1 in the filter if the<BR> result set is empty.<BR> (omp_xml_handle_end_element): Use get_next to do next check while sending<BR> rows.<BR> 2012-06-27 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_manage_process): Create common_cve.<BR> (where_autofp, init_result_iterator, column_auto_type)<BR> (report_counts_autofp_match): Use common_cve to check for the partial CVE<BR> match, because both CVEs could be lists and a pattern match fails if they<BR> are.<BR> <BR>* src/sql.c (sql_common_cve): New function.<BR> <BR>* src/sql.h: Add header accordingly.<BR> 2012-06-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_free): New function.<BR> (manage_filter_controls, manage_clean_filter, filter_clause): Free split<BR> filter with filter_free.<BR> 2012-06-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/otp.c (blank_control_chars): Skip newlines.<BR> (process_otp_scanner_input): g_strcompress the field from the scanner<BR> before converting it to UTF8, because since r13022 the scanner<BR> g_strescapes messages instead of doing simple escaping.<BR> 2012-06-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (get_data_parse_attributes): Remove first and max as they are<BR> in the filter now.<BR> 2012-06-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Move GET_TARGETS rows and max into the filter, and make it easier for the<BR> client to handle the sorting being in the filter.<BR> <BR>* src/manage_sql.c (keyword_applies, split_filter): Add first and rows.<BR> (manage_filter_controls): New function.<BR> (filter_clause): Add first and max args. As a result reindent entire<BR> function. Update callers.<BR> (init_get_iterator, init_user_get_iterator): Get first and max from first=<BR> and max= in filter, instead of from params. Update caller.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (send_get_start): Get the \"filter controls\" from the filter<BR> instead of from params. Add SORT to response.<BR> 2012-06-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (split_filter): Silence compiler warning suddenly<BR> appearing with this patch.<BR> (manage_clean_filter): New function.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (send_get_start): Send cleaned filter, with redundant terms<BR> removed.<BR> 2012-06-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (keyword_applies): New function.<BR> (split_filter): Check if keyword applies before adding. This skips all<BR> sort= keywords after the first.<BR> 2012-06-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): Add column checks to the operator<BR> checks, otherwise \"column=and\" is treated as plain \"and\".<BR> 2012-06-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): Clear last_was_not if the column is<BR> not found for the equal relation, to match the other relations.<BR> 2012-06-20 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): Rename asc and desc to sort and<BR> sort-reverse.<BR> 2012-06-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Move GET_TARGETS sorting into filter.<BR> <BR>* src/manage.c (run_slave_task): Update init_user_target_iterator call.<BR> <BR>* src/manage_sql.c (filter_clause): Add order return arg. Update callers.<BR> (init_user_get_iterator, init_get_iterator): Get order clause from<BR> filter_clause instead of sort params.<BR> (init_target_task_iterator): Remove ascending arg.<BR> (verify_agent): Move sorting to filter.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> (get_data_t): Remove sort fields.<BR> <BR>* src/omp.c (get_data_reset, get_data_parse_attributes): Remove<BR> sort_field.<BR> (omp_xml_handle_end_element): Update init_target_task_iterator call.<BR> 2012-06-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (init_task_schedule_iterator): Skip trashcan tasks and<BR> example task.<BR> 2012-06-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (send_user_rules_empty): New function.<BR> (send_user_rules): Skip over empty lines. Also send the rules when the<BR> file contained only newlines and/or empty lines.<BR> 2012-06-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (modify_setting): Correct description.<BR> <BR>* doc/omp.html: Update from source.<BR> 2012-06-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (commands): Add GET_SETTINGS. Correct<BR> MODIFY_SETTING.<BR> (get_settings): New command.<BR> (help): Add GET_SETTINGS.<BR> (modify_settings): Add UUID param.<BR> <BR>* doc/omp.rnc, doc/omp.html: Update from source.<BR> 2012-06-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In CLIENT_DELETE_PORT_LIST<BR> add g_log to case 3.<BR> 2012-06-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (report): Add REPORT_FORMAT.<BR> <BR>* doc/omp.rnc, doc/omp.html: Update from source.<BR> 2012-06-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (print_report_xml): Init some vars to prevent warnings<BR> from older compilers.<BR> 2012-06-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_manage): Update report format UUIDs before<BR> predefined check.<BR> 2012-06-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_manage, report_format_predefined): Update LaTeX<BR> report format UUID everywhere.<BR> 2012-06-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (result_notes, result_overrides): New<BR> elements.<BR> (result): Add NOTES and OVERRIDES to RESULT and DELTA.<BR> (get_results): Move notes and overrides to new element.<BR> <BR>* doc/omp.rnc, doc/omp.html: Update from source.<BR> 2012-06-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (result): Add ORIGINAL_THREAT and DELTA.<BR> Add missing NVT elements.<BR> <BR>* doc/omp.rnc, doc/omp.html: Update from source.<BR> 2012-06-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* CMakeLists.txt: Update LaTeX based report format UUIDs for 2012-06-01<BR> date format commit.<BR> <BR>* src/manage_sql.c: Update LaTeX based report format UUIDs in database.<BR> 2012-06-12 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (update_report_format_uuid)<BR> (update_report_format_uuids): New functions. Mechanism for updating the<BR> report format UUIDs on startup. This first version does that same work as<BR> migrate_58_to_59.<BR> (init_manage): Call update_report_format_uuids.<BR> 2012-06-12 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_count): Access column by hand to get position<BR> right.<BR> (report_count_filtered, report_counts_id_filt): Skip the autofp test for<BR> Logs and False Positives.<BR> 2012-06-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_manage): Set port list when creating predefined<BR> target. Ensure that list is correct if target exists already.<BR> 2012-06-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_counts_autofp_match): Remove extra SQL paren.<BR> 2012-06-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (report, get_reports): Add GET_REPORTS<BR> autofp and show_closed_cves.<BR> <BR>* doc/omp.rnc, doc/omp.html: Update from source.<BR> 2012-06-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/report_formats/TXT/TXT.xsl (real-report): Note whether vendor<BR> updates are trusted. Add Closed CVEs table.<BR> 2012-06-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/report_formats/LaTeX/latex.xsl (results-overview): Note whether<BR> vendor updates are trusted.<BR> (results-per-host-single-host-closed-cves): New template.<BR> (results-per-host-single-host): Add Closed CVEs table.<BR> 2012-06-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/report_formats/HTML/HTML.xsl (real-report): Note whether vendor<BR> updates are trusted. Add Closed CVEs table.<BR> 2012-06-05 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add show_closed_cves attribute to GET_REPORTS to control the presence<BR> of the Closed CVEs host detail.<BR> <BR>* src/manage_sql.c (escalate_2): Add show_closed_cves arg.<BR> (escalate_1): Pass 0 for show_closed_cves.<BR> (print_report_xml): Add show_closed_cves arg. Add value to filters.<BR> Pass to alert. Only include Closed CVEs host detail when true.<BR> (manage_report, manage_send_report): Add show_closed_cves arg. Pass<BR> through to print_report_xml.<BR> <BR>* src/manage.h: Update header accordingly.<BR> <BR>* src/omp.c (get_reports_data_t): Add show_closed_cves.<BR> (omp_xml_handle_start_element): Parse show_closed_cves.<BR> (omp_xml_handle_end_element): Pass show_closed_cves to report functions.<BR> 2012-06-01 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Make the date formats of the LaTeX based reports nicer.<BR> <BR>* src/report_formats/LaTeX/latex.xsl (scan_start, scan_end): New<BR> templates.<BR> (abstract, results-per-host-single-host): Call new templates for dates.<BR> 2012-05-31 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (buffer_cve): New function.<BR> (print_report_xml): Add the \"Closed CVEs\" host detail for the case when<BR> result_hosts_only is false.<BR> 2012-05-31 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (print_report_xml): Report extra loop left in earlier<BR> today.<BR> 2012-05-31 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (task_debugs_size, task_false_positive_size)<BR> (task_holes_size, task_infos_size, task_logs_size)<BR> (task_warnings_size): Remove. Old functions.<BR> 2012-05-31 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Use 1 instead of \'False Positive\' to mark autofp false positives in the<BR> auto_type column, to work around some SQL complications with using a<BR> string.<BR> <BR>* src/manage_sql.c (where_levels_auto, result_iterator_type): Test<BR> auto_type for 1 instead of a string.<BR> (init_result_iterator, column_auto_type): Set auto_type to 1 for false<BR> positives.<BR> 2012-05-31 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (array_find_string): Move up in file.<BR> (compare_strings): New functions.<BR> (print_report_xml): Add a \"Closed CVEs\" host details listing all closed<BR> CVEs.<BR> 2012-05-31 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_report_host_details_iterator): Add the NVT name<BR> as the description of the Closed CVE details.<BR> 2012-05-31 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_result_iterator): Shorten long lines.<BR> 2012-05-30 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (column_auto_type): New function.<BR> (report_count_filtered, report_scan_result_count): Use column_auto_type.<BR> 2012-05-30 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_count_filtered): Fold host case into other<BR> cases.<BR> (report_counts_id): Doc typo.<BR> 2012-05-30 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Migrate alert method data to reflect report format UUID changes in<BR> database version 55. Hence increase database version to 59.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 59.<BR> <BR>* src/manage_sql.c (migrate_58_to_59): New function.<BR> (migrators): Add migrate_58_to_59.<BR> (escalate_2): Align args. Update TXT UUID.<BR> <BR>* doc/db.png: Update for version change.<BR> 2012-05-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_scan_result_count): Generate the autofp SQL<BR> always, whatever the value of override is.<BR> 2012-05-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_scan_result_count)<BR> (report_counts_autofp_match, report_count_filtered): Clean up SQL<BR> alignment.<BR> 2012-05-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (get_results_data_t, omp_xml_handle_start_element)<BR> (omp_xml_handle_end_element): Add autofp arg to GET_RESULTS.<BR> <BR>* src/manage_sql.c (init_result_iterator): Add autofp result case.<BR> 2012-05-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_start_element): Correct variable name in<BR> GET_REPORTS attribute parsing.<BR> 2012-05-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_result_iterator): Remove host case, as host is<BR> always NULL. Update callers.<BR> <BR>* src/manage.h: Update header accordingly.<BR> <BR>* src/omp.c: Update init_result_iterator callers.<BR> 2012-05-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_counts_id_filt): Set filtered_debugs if given.<BR> 2012-05-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_scan_result_count): Add missing SQL to<BR> auto_type default case.<BR> 2012-05-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (where_autofp, init_result_iterator)<BR> (report_scan_result_count, report_counts_autofp_match)<BR> (report_count_filtered): In the SQL for the partial case put the CVE<BR> clause inside the inner NVT SELECT and use an EXISTS, instead of doing a<BR> LIKE between a multi-row select and a single value.<BR> 2012-05-24 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Convert the results closed by autofp into false positives, instead of just<BR> excluding them.<BR> <BR>* src/manage_sql.c (where_levels_auto): New function.<BR> (where_autofp): Correct SQL.<BR> (init_result_iterator): Treat closed results as false positives by adding<BR> an auto_type column to the query<BR> (original_type): Doc typo.<BR> (result_iterator_type): Take new auto_type column into account.<BR> (result_iterator_descr, result_iterator_nvt_cvss_base_double): Increment<BR> for new column.<BR> (report_scan_result_count): Add auto_type to query, as above.<BR> (report_counts_autofp_match): Add special case for open ports. Correct<BR> SQL.<BR> (report_count_filtered): Add a False Positive special case for autofp.<BR> 2012-05-24 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (validate_host): Only do the length check when the last<BR> octet is a number, because hostnames can have any number of parts.<BR> 2012-05-22 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (init_report_host_details_iterator): Add closed CVEs.<BR> 2012-05-21 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In GET_TASKS brief case use the<BR> correct variable to get the task preferences.<BR> 2012-05-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (where_autofp, report_counts_autofp_match): Take the<BR> NOCVE case into account.<BR> 2012-05-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (report_counts_id_filt): Add missing column to query.<BR> 2012-05-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (where_autofp, report_counts_autofp_match): If autofp<BR> is 2 then do partial CVE matching.<BR> (report_counts_match): Pass autofp to report_counts_autofp_match.<BR> (print_report_xml): Respond with actual value of autofp instead of 1 or 0.<BR> 2012-05-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add autofp filtering to the counts too.<BR> <BR>* src/manage_sql.c (create_table): Add indexes<BR> report_host_details_by_report_host_and_name_and_value and<BR> report_hosts_by_host.<BR> (report_scan_result_count, report_counts_match)<BR> (report_count_filtered, report_counts, report_counts_id_filt)<BR> (report_counts_id): Add autofp arg. Update callers.<BR> (report_counts_autofp_match): New function.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/omp.c: Add autofp for updated manage_sql.c functions.<BR> 2012-05-15 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add creation and modification times to the powerfilter.<BR> <BR>* src/manage_sql.c (parse_keyword): Add date format with hour and minute.<BR> (GET_ITERATOR_FILTER_COLUMNS, GET_ITERATOR_COLUMNS): Add created and<BR> modified.<BR> (GET_ITERATOR_COLUMN_COUNT): Increase.<BR> 2012-05-14 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add autofp attribute to OMP GET_RESULTS. When given filter out results<BR> which have an EXIT_CODE host detail with value EXIT_NOTVULN. Slight<BR> modification of patch from Henri Doreau.<BR> <BR>* src/manage_sql.c (escalate_2): Add autofp arg. Update caller.<BR> (LSC_FAMILY_LIST): New define.<BR> (where_autofp): New function.<BR> (init_result_iterator): Add autofp arg. If given add autofp WHERE<BR> clause to SQL. Update callers in omp.c.<BR> (print_report_xml): Add autofp arg. Print in XML, pass to iterator.<BR> (manage_report_report): Add autofp arg. Pass to printer or escalator.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/omp.c (get_reports_data_t, omp_xml_handle_start_element)<BR> (omp_xml_handle_end_element): Add autofp attribute to GET_RESULTS.<BR> 2012-05-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage.c (run_task): Set the report run status explicitly, because<BR> set_task_run_status only does this when current_scanner_task is set and<BR> current_scanner_task is set at the end of the function.<BR> 2012-05-10 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (client_state_t, omp_xml_handle_start_element)<BR> (omp_xml_handle_end_element): Add DETECTION and NVT/XREF to RESULT<BR> in report import.<BR> 2012-05-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Implement the filtered count for GET_AGENTS.<BR> <BR>* src/manage_sql.c (TARGET_ITERATOR_COLUMNS)<BR> (TARGET_ITERATOR_TRASH_COLUMNS): Move up in file.<BR> (count): New function. Body adapted from target_count.<BR> (target_count): Call through to count.<BR> (agent_count): New function.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_AGENTS enable<BR> filtered count.<BR> 2012-05-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In MODIFY_TARGET require NAME<BR> and HOSTS or TARGET_LOCATOR, instead of asserting this.<BR> 2012-05-07 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml: Replace ctime with iso_time everywhere.<BR> (iso_time): New type.<BR> <BR>* doc/omp.rnc, doc/omp.html: Update from source.<BR> 2012-05-04 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> Post release version bump.<BR> <BR>* CMakeLists.txt: Updated version number to 4.0+beta4.<BR> 2012-05-04 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> Preparing the openvas-manager 4.0+beta3 release.<BR> <BR>* CHANGES: Updated.<BR> 2012-05-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML-brief, src/schema_formats/XML-brief/OMP.xml,<BR> src/schema_formats/XML-brief/generate: New files. For --disabled-cmds<BR> commit.<BR> 2012-05-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Remove extra arg from<BR> manage_schema call, leftover from experiment.<BR> 2012-05-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add --disabled-cmds to disable a list of OMP commands. Adjust HELP<BR> to skip disabled commands.<BR> <BR>* CMakeLists.txt: Install new schema format.<BR> <BR>* src/omp.c (command_t): New type.<BR> (help_text): Remove.<BR> (omp_commands): New variable.<BR> (STATUS_SERVICE_UNAVAILABLE, STATUS_SERVICE_UNAVAILABLE_TEXT): New<BR> definitions.<BR> (omp_parser_t, omp_parser_free): Add disabled_commands.<BR> (omp_parser_new): Add disable arg.<BR> (command_disabled): New function.<BR> (help_data_t, help_data_reset): Add type.<BR> (XML_ERROR_UNAVAILABLE): New macro.<BR> (omp_xml_handle_start_element): In the authentic states check if the<BR> given command is enabled. In the simple HELP case only print those<BR> commands that are enabled. Add a HELP flage \"type\", and print a<BR> simple response when the type is \"brief\".<BR> (init_omp_process): Add disable arg.<BR> <BR>* src/manage.h, src/ompd.h: Update headers accordingly.<BR> <BR>* src/ompd.c (init_ompd_process, serve_omp): Add disable arg.<BR> <BR>* src/openvasmd.c (disabled_commands): New variable.<BR> (serve_client, fork_connection_for_schedular): Pass disabled_commands to<BR> omp handlers.<BR> (cleanup): Free disabled_commands too.<BR> (update_or_rebuild_nvt_cache): Add dummay serve_omp arg.<BR> (main): Add --disable-cmds.<BR> 2012-04-30 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add creation and modification times to agents and targets. Hence increase<BR> database version to 58. Add database migration from version 57 to 58.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 58.<BR> <BR>* src/manage_sql.c (create_tables): Add time columns.<BR> (migrate_35_to_36_duplicate_target): New function. Was duplicate_target.<BR> (migrate_35_to_36): Adjust call for rename.<BR> (migrate_57_to_58): New function. Agent and target time migrator.<BR> (database_migrators): Add migrate_57_to_58.<BR> (init_manage): Add times.<BR> (duplicate_target): Remove for rename. Superceded by copy_target, and<BR> migrator functions must be specific to the migrator.<BR> (create_target, copy_target, delete_target, modify_target, create_agent)<BR> (delete_agent): Handle time columns too.<BR> (GET_ITERATOR_COLUMNS): Add time columns.<BR> (GET_ITERATOR_COLUMN_COUNT): New define. Adjust all target and agent<BR> iterator access function offsets to be relative to this.<BR> (set_target_hosts): Set modification time too.<BR> (get_iterator_creation_time, get_iterator_modification_time): New<BR> functions.<BR> (manage_restore): Handle agent and target time columns.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> <BR>* src/omp.c (send_get_common): Add times.<BR> <BR>* src/schema_formats/XML/OMP.xml (get_agents, get_targets): Add times to<BR> response.<BR> <BR>* doc/db.png, doc/omp.rnc, doc/omp.html: Update from source.<BR> 2012-04-26 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_manage_process, duplicate_target): Add arg to<BR> uniquify.<BR> (copy_target): Append \" Clone\" to new target name, before unique number.<BR> <BR>* src/sql.c (sql_uniquify): Take a fourth arg as suffix before unique part<BR> of name.<BR> 2012-04-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (copy_target): New function.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (create_target_data_t, client_state_t)<BR> (omp_xml_handle_end_element, omp_xml_handle_text): Add CREATE_TARGET/COPY.<BR> 2012-04-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Setup an OMP GET response style where the common part of the response<BR> to a GET command is done by support code instead of being done in each<BR> command. Convert GET_TARGETS and GET_AGENTS to this style.<BR> <BR>* src/manage_sql.c (GET_ITERATOR_FILTER_COLUMNS)<BR> (GET_ITERATOR_COLUMNS): New defines. Increment agent iterator<BR> access functions to match.<BR> (TARGET_ITERATOR_COLUMNS, TARGET_ITERATOR_TRASH_COLUMNS)<BR> (TARGET_ITERATOR_FILTER_COLUMNS, AGENT_ITERATOR_FILTER_COLUMNS)<BR> (AGENT_ITERATOR_COLUMNS): Use GET column definitions.<BR> (target_iterator_hosts, target_iterator_comment): Match to positions in<BR> GET columns.<BR> (get_iterator_resource, get_iterator_uuid, get_iterator_name)<BR> (get_iterator_comment): New functions.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> <BR>* src/omp.c (send_get_start, send_get_common, send_get_end): New<BR> functions.<BR> (SEND_GET_START, SEND_GET_COMMON, SEND_GET_END): New macros.<BR> (omp_xml_handle_end_element): In GET_AGENTS and GET_TARGETS send the<BR> common part of the response with the new send_get functions.<BR> 2012-04-25 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/openvasmd.c (serve_and_schedule): Check that the second socket is in<BR> use before trying to call FD_ISSET on it.<BR> 2012-04-25 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> Post release version bump.<BR> <BR>* CMakeLists.txt: Updated version number to 4.0+beta3.<BR> 2012-04-25 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> Preparing the openvas-manager 4.0+beta2 release.<BR> <BR>* CHANGES: Updated.<BR> 2012-04-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Switch GET_AGENTS to the GET iterator.<BR> <BR>* src/manage_sql.c (verify_agent): Pass single arg to init_agent_iterator.<BR> (AGENT_ITERATOR_FILTER_COLUMNS, AGENT_ITERATOR_COLUMNS)<BR> (AGENT_ITERATOR_TRASH_COLUMNS): New definitions.<BR> (init_agent_iterator): Use the generic initialiser.<BR> <BR>* src/manage.h: Update header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Pass single arg to GET_AGENTS<BR> iterator init, and handle return.<BR> 2012-04-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_user_get_iterator): Add \"_trash\" to table name<BR> in SQL for trash cases.<BR> (TARGET_ITERATOR_COLUMNS): Add missing dummy columns.<BR> 2012-04-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (find_resource_for_actions): Pass type to<BR> user_has_access_uuid instead of static string.<BR> (init_get_iterator): Correct order of iterator args.<BR> 2012-04-19 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Update OMP version to 4.0.<BR> 2012-04-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add a generic iterator for GET commands, and call it in the GET_TARGETS<BR> iterator.<BR> <BR>* src/manage_sql.c (find_resource_for_actions): New function.<BR> (TARGET_ITERATOR_COLUMNS): Set to SQL columns. Filter columns now defined<BR> by TARGET_ITERATOR_FILTER_COLUMNS.<BR> (target_count): Update for rename.<BR> (init_user_get_iterator, init_get_iterator): New functions.<BR> (TARGET_ITERATOR_FILTER_COLUMNS, TARGET_ITERATOR_TRASH_COLUMNS): New<BR> definitions.<BR> (init_user_target_iterator, init_target_iterator): Call through to generic<BR> counterparts.<BR> <BR>* src/omp.c (get_data_t): Remove. Now in manage.h.<BR> 2012-04-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* doc/omp.rnc, doc/omp.html: Update from source.<BR> 2012-04-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Simplify the GET_TARGETS iterator init slightly.<BR> <BR>* src/manage.h (get_data_t): New type. From omp.c.<BR> (init_target_iterator): Update header.<BR> <BR>* src/manage_sql.c (init_target_iterator): Group the generic get args into<BR> one.<BR> <BR>* src/omp.c (get_data_t): Remove. Now in manage.h.<BR> (omp_xml_handle_end_element): Pass get_targets_data directly to<BR> init_target_iterator.<BR> 2012-04-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Move GET_TARGETS find into the iterator initialiser.<BR> <BR>* src/manage_sql.c (init_target_iterator): Convert target arg from<BR> target_t to uuid string. Add return accordingly.<BR> <BR>* src/manage.h: Update header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Pass the target UUID directly<BR> into the iterator init, instead finding the target first.<BR> 2012-04-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (get_agents): Make IN_USE 0 in examples<BR> because it\'s always so.<BR> (get_port_lists, get_targets): Add WRITABLE.<BR> 2012-04-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (port_list_iterator_in_use): Remove consideration of<BR> predefined state.<BR> (port_list_iterator_writable): New function.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Add WRITABLE to GET_PORT_LIST.<BR> 2012-04-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (delete_port_list): Add missing argument to sql_int.<BR> Change associated return so that error message can be more correct.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Handle new return from<BR> delete_port_list.<BR> 2012-04-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): Add missing case to<BR> create_target switch.<BR> 2012-04-18 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (target_writable, trash_target_writable): New<BR> functions.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Add WRITABLE to GET_TARGETS,<BR> to indicate when a target is in_use or predefined.<BR> 2012-04-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (get_join): New function.<BR> (filter_clause): Add NOT handling.<BR> 2012-04-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (delete_target): Prevent removal of predefined target.<BR> <BR>* src/omp.c (omp_xml_handle_end_element): Handle new return from delete<BR> target.<BR> 2012-04-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_port_range_iterator)<BR> (init_port_list_target_iterator): Add explicit \"all\" case, otherwise the<BR> selection is always empty.<BR> 2012-04-17 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/schema_formats/XML/OMP.xml (get_port_lists): Move details attrib<BR> from response to request.<BR> <BR>* doc/omp.rnc, doc/omp.html: Update from source.<BR> 2012-04-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (find_attribute, append_attribute): Move up in file.<BR> (get_data_t): New struct.<BR> (get_data_reset, get_data_parse_attributes): New function.<BR> (get_agents_data_t, get_agents_data_reset, get_targets_data_t)<BR> (get_targets_data_reset): Use the generic get structure.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element): Use generic<BR> get for agents and targets.<BR> 2012-04-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_target_iterator): Add AS for port_list.<BR> 2012-04-16 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add quotation to the index case of the the powerfilter. This allows<BR> spaces in the index filters, like name=\"Debian Machines\".<BR> <BR>* src/manage_sql.c (parse_keyword): Remove the relation parsing which is<BR> now done in split_filter.<BR> (split_filter): Parse index quotations.<BR> 2012-04-16 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> <BR>* src/openvasmd.c (main): Updated Copyright years.<BR> 2012-04-16 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> Post release version bump.<BR> <BR>* CMakeLists.txt: Updated version number to 4.0+beta2.<BR> 2012-04-16 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> Preparing the openvas-manager 4.0+beta1 release.<BR> <BR>* CHANGES: Updated.<BR> 2012-04-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add integer and date handling to the powerfilter. If an keyword like<BR> \"ids>2\" has the above (>) or below (<) relation and the keyword part is a<BR> number or a date of the form 2011-3-23 then compare the column as a<BR> number instead of as text.<BR> <BR>* src/manage_sql.c (keyword_type_t, keyword_relation_t): New enums.<BR> (struct term, term_t): Remove. Now keyword. Update callers.<BR> (struct keyword, keword_t): New type.<BR> (keyword_free, parse_keyword): New function.<BR> (split_filter): Setup more info about the keyword, using parse_keyword.<BR> Also remove a decrement that was chopping off the last char of phrases.<BR> (filter_clause): Remove the parsing that\'s now done by split_filter. Add<BR> casts in the SQL to ensure the column is compared correctly. Add the<BR> number cases to to the above and below cases.<BR> 2012-04-13 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (scan_start, scan_end): Format date nicely.<BR> <BR>* src/report_formats/HTML/HTML.xsl (real-report): Add start and end<BR> columns to host summary.<BR> 2012-04-13 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Add switch to disable the sync script.<BR> 2012-04-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (modify_target): Only validate port when there\'s an SSH<BR> credential. Add 0 tests for credentials.<BR> 2012-04-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add IP count to GET_TARGETS filtering. Also better control which database<BR> columns are searched.<BR> <BR>* src/manage_sql.c (init_manage_process): Create max_hosts SQL function.<BR> (filter_clause): Remove automatic filtering by all table columns. Instead<BR> filter only on given columns.<BR> (TARGET_ITERATOR_EXTRA_COLS): Remove.<BR> (TARGET_ITERATOR_COLUMNS): New define. TARGET_ITERATOR_EXTRA_COLS with<BR> all columns.<BR> (target_count, init_user_target_iterator, init_target_iterator): Switch to<BR> new filter_clause behaviour. Add ips to SQL so that filters can access<BR> value as column.<BR> <BR>* src/sql.c (sql_max_hosts): New function.<BR> <BR>* src/sql.h: Add header accordingly.<BR> 2012-04-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): Duplicate column names in index filter<BR> with g_ascii_strdown so that the user can use any case.<BR> 2012-04-11 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add OMP MODIFY_TARGET.<BR> <BR>* src/manage_sql.c (modify_target): New function.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (help_text, command_data_t, client_state_t): Add<BR> modify_target.<BR> (modify_target_data_t): New structure.<BR> (modify_target_data_reset): New function.<BR> (modify_target_data): New variable.<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element)<BR> (omp_xml_handle_text): Add MODIFY_TARGET handling.<BR> 2012-04-09 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (manage_set_setting): Add uuid arg. Set Rows Per Page<BR> setting if given.<BR> (setting_value_int): New function.<BR> <BR>* src/manage.h: Update header accordingly.<BR> <BR>* src/omp.c (modify_setting_data_t, modify_setting_data_reset)<BR> (omp_xml_handle_start_element, omp_xml_handle_end_element): Add setting_id<BR> to MODIFY_SETTING. Pass to manage_set_setting if given.<BR> 2012-04-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_target_iterator): If max is -2 then get max from<BR> Rows Per Page setting.<BR> (setting_value_int): New function.<BR> <BR>* src/manage.h: Add header accordingly.<BR> <BR>* src/omp.c (omp_xml_handle_start_element): Let GET_TARGETS max be any<BR> negative.<BR> (omp_xml_handle_end_element): If GET_TARGETS max is -2 then set is from<BR> Rows Per Page setting.<BR> 2012-04-06 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add OMP GET_SETTINGS.<BR> <BR>* src/manage_sql.c (create_tables): Add settings.<BR> (init_manage): Ensure default settings exist.<BR> (target_count): Remove dangling SQL clause.<BR> (SETTING_ITERATOR_EXTRA_COLS): New define.<BR> (setting_count, init_setting_iterator, setting_iterator_uuid)<BR> (setting_iterator_name, setting_iterator_comment)<BR> (setting_iterator_value): New function.<BR> <BR>* src/omp.c (help_text): Add GET_SETTINGS.<BR> (get_settings_data_t): New type.<BR> (get_settings_data_reset): New function.<BR> (command_data_t, client_state_t): Add get_settings.<BR> (get_settings_data): New variable.<BR> (xml_handle_start_element, xml_handle_end_element): Add GET_SETTINGS.<BR> <BR>* src/manage.h: Add headers accordingly.<BR> (setting_t): New type.<BR> 2012-04-04 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add the option to serve OMP on a second address.<BR> <BR>* src/openvasmd.c (manager_socket_2, manager_address_2): New variables.<BR> (serve_client, accept_and_maybe_fork): Add server_socket arg. Update<BR> callers.<BR> (cleanup, fork_update_nvt_cache): Close manager_socket_2.<BR> (serve_and_schedule): Add second listening socket to select.<BR> (main): Add --listen2 and --port2, and serve on this address if given.<BR> 2012-04-04 Michael Wiegand <michael.wiegandAATTgreenbone.net><BR> <BR>* tools/greenbone-scapdata-sync: Add ssh options to disable strict<BR> host key checking. Patch suggested by Lukas Grunwald.<BR> 2012-04-04 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (init_target_iterator): Bring first and max into range<BR> if they are out.<BR> <BR>* src/omp.c (omp_xml_handle_start_element): Bring GET_TARGETS first and<BR> max into range if they are out.<BR> 2012-04-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (split_filter): Set quoted on end term from in_quote.<BR> 2012-04-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (struct term, term_t): New type.<BR> (split_filter): Return array of terms, which have quotation flags.<BR> (filter_clause): Adjust for new split type. If term is quoted skip the<BR> index check.<BR> 2012-04-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (TARGET_ITERATOR_EXTRA_COLS, target_count)<BR> (init_user_target_iterator, init_target_iterator): Make the names of the<BR> extra columns match the names of the columns on the GSA Targets page.<BR> 2012-04-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add index filtering to the GET_TARGETS. Syntax is like \"name~test and<BR> port_list_name~iana or hosts=localhost\".<BR> <BR>* src/manage_sql.c (vector_find_string): New function.<BR> (filter_clause): Check term for index prefix and adjust SQL accordingly.<BR> Also return NULL if the result is the empty string.<BR> 2012-04-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add quotation to the GET_TARGETS filtering.<BR> <BR>* src/manage_sql.c (split_filter): New function.<BR> (filter_clause): Call split_filter to split the filter term into parts.<BR> 2012-04-03 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add the names of the port list and credentials to the filtering in<BR> GET_TARGETS.<BR> <BR>* src/manage_sql.c (filter_clause): Add extra_columns arg.<BR> (TARGET_ITERATOR_EXTRA_COLS): New define.<BR> (target_count, init_user_target_iterator, init_target_iterator): Pass<BR> extra_columns to filter_clause. Add extra columns to name so that the<BR> filter clause can access them by name.<BR> 2012-03-30 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add pagination to GET_TARGETS.<BR> <BR>* src/manage_sql.c (target_count): New function.<BR> (init_user_target_iterator, init_target_iterator): Add first and max args.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/manage.c (run_slave_task): Update caller.<BR> <BR>* src/omp.c (get_targets_data_t): Add first and max.<BR> (omp_xml_handle_start_element): Parse first and max attribs.<BR> (omp_xml_handle_end_element): In GET_TARGETS add TARGETS and TARGET_COUNT<BR> and pass first and max through to the iterator.<BR> 2012-03-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_TARGETS add a<BR> NULL check on the filter.<BR> 2012-03-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> <BR>* src/manage_sql.c (filter_clause): Add AND and OR, as a test.<BR> 2012-03-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Add simple keyword filtering to GET_TARGETS.<BR> <BR>* src/manage_sql.c (filter_clause): New function.<BR> (init_user_target_iterator, init_target_iterator): Add filter arg.<BR> <BR>* src/manage.h: Update headers accordingly.<BR> <BR>* src/manage.c (run_slave_task): Update caller.<BR> <BR>* src/omp.c (get_targets_data_t, get_targets_data_reset): Add filter.<BR> (omp_xml_handle_start_element): Append filter attrib.<BR> (omp_xml_handle_end_element): Pass filter to init_target_iterator.<BR> 2012-03-28 Matthew Mundell <matthew.mundellAATTgreenbone.net><BR> Rename Escalators to Alerts. Hence increase database version to 57. Add<BR> database migration from version 56 to 57.<BR> <BR>* CMakeLists.txt (OPENVASMD_DATABASE_VERSION): Increase to 57.<BR> <BR>* src/sql.c (sql_rename_column, iterator_column_count)<BR> (iterator_column_name): New functions.<BR> <BR>* src/sql.h: Add headers accordingly.<BR> <BR>* src/manage_sql.c: Everywhere replace escalator with alert.<BR> (migrate_56_to_57): New function.<BR> (database_migrators): Add migrate_56_to_57.<BR> <BR>* src/manage.c, src/manage.h, src/manage_sql.h, src/omp.c,<BR> doc/db_postgres.sql: Everywhere replace escalator with alert.<BR> <BR>* src/schema_formats/XML/OMP.xml: Everywhere replace escalator with alert.<BR> (version): Increment to 4.<BR> <BR>* doc/db.png, doc/omp.rnc, doc/omp.html: Update from source.<BR> 2012-03-28 Jan-Oliver Wagner <jan-oliver.wagnerAATTgreenbone.net><BR> Post branch version bump.<BR> <BR>* CMakeLists.txt: Updated version number.<BR><BR>Mon Jan 7 13:00:00 2013 johann.luceAATTwanadoo.fr<BR>-Update in 3.0.5<BR> <BR>* Make sure port lists are handled correctly during migration and<BR> startup. Backport from trunk r14137 and r14138, original commits by<BR> Matthew Mundell<BR> <BR>* Add family to NVT in results. Backport from trunk r13934.<BR>-New in 3.0.4<BR> <BR>* Backport from trunk r14320.<BR> <BR>* Backport from trunk r14163.<BR> <BR>* Add missing owner clause.Backport from trunk r13945.<BR> <BR>* Check entire part for alphanumeric chars when checking for a hostname.<BR> <BR>* Skip leading whitespace too. Backport from trunk r13955.<BR> <BR>* Consider duration even for once-off tasks, in case people want this. Backport from trunk r13957.<BR> <BR>* In CLIENT_MODIFY_TASK add the missing comment check. Backport from trunk r13967.<BR> <BR>* Add hidden clause to \"config in use\" check. Thanks to Sebastien Aucouturier for pointing this out.<BR> <BR>* Create target with omp_create_target_ext in order to specify port list.<BR> <BR>* Drop privileges when run as root. Add quotes to preserve space where appropriate. Sanitize parameters before they reach the shell with proper quoting.<BR>-Drop option -DCMAKE_BUILD_TYPE=release that crash during compil<BR><BR>Fri Aug 10 14:00:00 2012 bitshufflerAATTopensuse.org<BR>- Updated to 3.0.3<BR> <BR>* Security bugfix that quotes search phrases for SQL.<BR> <BR>* Bugfix to have Slave tasks consider max_checks and max_hosts preferences.<BR> <BR>* Fixed bug to correctly consider user-defined NVT-specific timeouts to be sent<BR> to the scanner.<BR> <BR>* When getting all reports, get only the visible reports for the current user.<BR> <BR>* Improved answer times by avoiding unnecessary database blocking,<BR> especially when doing large reports.<BR> <BR>* Improved UTF8 support for data received from OpenVAS Scanner.<BR> <BR>* Improved hostname validation.<BR> <BR>* Avoid empty lines in user rules.<BR> <BR>* Fixed some build issues for older compilers and for newer glib versions.<BR> <BR>* Improvement: Make the date formats of the PDF and LaTeX reports nicer.<BR> <BR>* Improvement: Added mechanism for updating the report format UUIDs on startup.<BR> This allows easier update of built-in report format plugins.<BR> <BR>* Bugfix: Set port list when creating predefined<BR> target. Ensure that list is correct if target exists already.<BR> <BR>* Bugfix: Consider filtered debug messages properly.<BR> <BR>* Add DETECTION and NVT/XREF to RESULT in report import.<BR> <BR>* Improve status management of running tasks.<BR><BR>Sat May 12 14:00:00 2012 bitshufflerAATTopensuse.org<BR>- Updated to 3.0.1<BR> <BR>* A bug which caused the comment of imported configs to be empty has been fixed.<BR> <BR>* Hostname and IP validation has been improved.<BR> <BR>* A bug which caused the port list selection to be empty has been fixed.<BR> <BR>* The minimum version requirements for the glib and gnutls libraries have been<BR> set to the minimum requirements of OpenVAS Libraries (2.16 for glib and 2.2<BR> for gnutls).<BR> <BR>* Extra report formats work standalone.<BR> <BR>* Observer lists now may also use \',\' as separator.<BR> <BR>* Observers may now also create notes and overrides for observed tasks.<BR> <BR>* Opservers with with Role observer are now allowed to see single results<BR> of the observed tasks.<BR> <BR>* Added handling of ssh keys for authenticated tests for Master-Slave mode.<BR> <BR>* The PID file is created earlier to avoid daemon handling believe there<BR> is an error.<BR> <BR>* Build improvements for modern gcc.<BR> <BR>* Support for Port Lists has been added.<BR> <BR>* Updated builtin Report Format Plugins HTML, Text and LaTeX/PDF to reflect<BR> various new features that are already present in GSA, including delta and<BR> prognostic reports.<BR> <BR>* Changed signing of Report Format Plugins to exclude comment.<BR> <BR>* Improved product detection information in results XML.<BR> <BR>* Improved performance for massiv scanner results by using transaction groups.<BR> <BR>* Improved Import of Target lists to allow comma-separated, line-by-line lists.<BR> <BR>* Doubled entries in Target lists are now eliminated.<BR> <BR>* New optional Report Format Plugin for ARF.<BR> <BR>* Updated OMP documentation.<BR> <BR>* Various little bugs fixed.<BR><BR>Sat Dec 3 13:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 3.0+beta8<BR> <BR>* Support for note lifetimes has been added.<BR> <BR>* A bug which caused an incorrect result count in the Asset Management view has<BR> been fixed.<BR> <BR>* Support for displaying the hostname and the note and override lifetimes has<BR> been added to the following report formats: HTML, LaTeX and TXT.<BR><BR>Thu Nov 24 13:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 3.0+beta7<BR> <BR>* The handling of timestamps in reports has been improved.<BR> <BR>* Report format signatures no longer contain user editable fields.<BR><BR>Thu Nov 17 13:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 3.0+beta6<BR> <BR>* Support for listing NVTs addressing a certain CVE has been added.<BR> <BR>* A bug which cause the wrong threat level to be displayed for tasks with<BR> multiple reports under rare circumstances has been fixed.<BR> <BR>* Support for override lifetimes has been added.<BR> <BR>* Support for displaying the SCAP update timestamp has been added.<BR><BR>Sat Nov 12 13:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 3.0+beta5<BR> <BR>* Support for asset management been added.<BR> <BR>* Support for using SCAP data directly has been added.<BR> <BR>* A support script for retrieving SCAP data has been added.<BR> <BR>* Support for prognostic scans has been added.<BR> <BR>* Support for large database files on 32-bit platforms has been improved.<BR> <BR>* Support for task observers has been added.<BR> <BR>* Support for individual time zones for users has been added.<BR> <BR>* A bug which caused the filter result count to be calculated incorrectly when<BR> searching for text phrases has been fixed.<BR> <BR>* Support for sorting results by CVSS score has been added.<BR> <BR>* Support for importing results sent through the XML escalator has been added.<BR> <BR>* The max_host and max_checks scan performance parameters have been moved from<BR> scan configs to tasks.<BR> <BR>* Support for delta reports has been added.<BR> <BR>* An issue which caused meta data for NVTs in the \"Credentials\" family to be not<BR> present in the database has been fixed.<BR> <BR>* A number of compiler warnings discovered by Stephan Kleine have been<BR> addressed.<BR> <BR>* A race condition which caused empty reports from the slave when running in<BR> master-slave mode under certain conditions has been fixed.<BR> <BR>* Scan start and end times are now set for imported reports.<BR><BR>Sat May 21 14:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 3.0+beta2<BR> <BR>* An issue which caused the import of very large reports to fail under certain<BR> circumstances has been fixed.<BR> <BR>* An issue which caused the date of the scan end to be missing from scans if<BR> they were associated with an escalator created with an early Manager version<BR> has been fixed.<BR> <BR>* The handling of long host lists has been improved.<BR> <BR>* New feature: Trashcan. It is now possible to place objects in a trashcan<BR> instead of deleting them directly.<BR> <BR>* Support for Host Details reported by OpenVAS Scanner has been added.<BR> <BR>* Support for container task (imported reports) has been added.<BR> <BR>* Support for specifying an SSH port for Local Security Checks has been added.<BR> <BR>* Security: Enforces strict permissions on sensitive OpenVAS Manager files.<BR> <BR>* Security: Drop privileges before executing report format plugins if running with<BR> elevated privileges.<BR> <BR>* Security: Ensures report formats are trusted before executing them.<BR> <BR>* Support for escalating result to a Sourcefire Defense Center has been added.<BR> <BR>* Support for using an SSH key pair for SSH authentication has been added.<BR> <BR>* The mail addresses supplied for an email escalator are now used in the correct<BR> order.<BR><BR>Fri Apr 22 14:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 2.0.3<BR> <BR>* Enforces strict permissions on sensitive OpenVAS Manager files.<BR> <BR>* Drop privileges before executing report format plugins if running with<BR> elevated privileges.<BR> <BR>* Ensures report formats are trusted before executing them.<BR><BR>Thu Mar 3 13:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 2.0.2<BR> <BR>* The test infrastructure has been updated.<BR> <BR>* A bug which caused the host count to be calculated incorrectly under certain<BR> circumstances has been fixed.<BR> <BR>* A number of memory and resource leaks discovered by Felix Wolfsteller have<BR> been closed.<BR> <BR>* A bug which caused database migration to fail when upgrading very old<BR> installations has been fixed.<BR><BR>Wed Feb 23 13:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 2.0.1<BR> <BR>* Support for fallback system reports has been added in case where a full system<BR> report is unavailable.<BR> <BR>* The expected location for signatures has been updated to match the FHS related<BR> changes in OpenVAS Scanner.<BR> <BR>* The \"unscanned_closed\" preference now defaults to \"yes\" for predefined<BR> configs.<BR> <BR>* The report format signature infrastructure has been improved.<BR> <BR>* A bug which caused valid host names to be reject under certain circumstances<BR> has been fixed.<BR><BR>Wed Feb 9 13:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 2.0.0<BR> <BR>* The logging behaviour when started with --verbose has been improved.<BR> <BR>* The w3af NVT is no longer part of the Full and fast default scan config.<BR> <BR>* The build environment has been cleaned up.<BR><BR>Fri Feb 4 13:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 1.99.4<BR> <BR>* Documentation has been updated.<BR> <BR>* OpenVAS Manager now uses pkg-config to find required libraries.<BR> <BR>* An issue which caused the creation of overrides to fail under some<BR> circumstances has been fixed.<BR> <BR>* The installation is now compliant with Filesystem Hierarchy Standard (FHS<BR> 2.3).<BR><BR>Mon Jan 24 13:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 1.99.3<BR> <BR>* A security-relevant bug has been fixed regarding email escalation methods.<BR> Configured OpenVAS users were able to damage installation and/or gain higher<BR> privileges.<BR> <BR>* An issue which caused database migration to fail under certain circumstances<BR> has been fixed.<BR> <BR>* The default log level has been reduced to warning to prevent the logging of<BR> potentially sensitive information in the default configuration.<BR><BR>Mon Jan 10 13:00:00 2011 bitshufflerAATTopensuse.org<BR>- Updated to 1.99.2<BR> <BR>* The protocol documentation has been brought up to date.<BR> <BR>* The output of --version now complies with the GNU Coding Standards.<BR> <BR>* Passwords are now masked when loggings LSC package creation commands.<BR><BR>Tue Dec 21 13:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.99.1<BR> <BR>* The protocol documentation has been improved.<BR> <BR>* Target credentials for SMB and SSH are now separated.<BR> <BR>* Support for setting the port range for a target has been added.<BR> <BR>* Hardening flags are now enabled during compile time to increase code quality.<BR> <BR>* Support for retrieving the total number of results matching an applied filter<BR> has been added.<BR><BR>Fri Dec 10 13:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.98.3<BR> <BR>* The protocol self-documentation has been improved.<BR> <BR>* NTLMSSP is now enabled by default.<BR> <BR>* Escalator message now include more information.<BR> <BR>* The LaTeX and PDF reports have been made more consistent with the other<BR> report formats.<BR> <BR>* An issue which caused internal links in the PDF report to link to wrong<BR> results under certain circumstances has been fixed.<BR> <BR>* An issue which caused some existing LSC credential packages to be empty on<BR> subsequent downloads under certain circumstances has been fixed.<BR><BR>Fri Dec 3 13:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.98.2<BR> <BR>* The protocol self-documentation has been improved.<BR> <BR>* A number of superfluous log messages has been downgraded or removed.<BR> <BR>* A bug which caused issues to be counted incorrectly in the ports overview has<BR> been fixed.<BR> <BR>* The generation of PDF and LaTeX reports is now faster.<BR><BR>Fri Nov 19 13:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.98.1<BR> <BR>* Report Format plugin framework. All previous reporting features<BR> were converted to plugins. The XML representation of a report<BR> is now the base for any plugin and thus consistency of reports<BR> is improved.<BR> Report Format Plugins can be set active so that they<BR> appear in the selection lists. Selections can consider<BR> content types so that for example only the plugins with<BR> content type \"text\" are offered as Email body.<BR> It is possible to use parameters for the plugins so the<BR> user can adjust the behaviour of the Report Format to<BR> the individual preferences or needs.<BR> A verification method allows to distribute signatures<BR> for valid plugins via the NVT Feed.<BR> <BR>* New default Report Format: TXT for simple text.<BR> <BR>* New default Report Format: LaTeX for LaTeX source.<BR> <BR>* New sample Report Format: Simple Bar Chart.<BR> Demonstrates how to use Gnuplot for graphical reports.<BR> <BR>* New sample Report Format: Simple Topo Plot.<BR> Demonstrates how to use Graphviz for graphical reports.<BR> <BR>* New sample Report Format: Simple Pie Chart.<BR> Demonstrates how to use PyChart for graphical reports.<BR> <BR>* New sample Report Format: Simple Map Plot.<BR> Demonstrates how to use MapServer and GDAL for graphical reports.<BR> <BR>* New sample Report Format: Sourcefire Host Input.<BR> Demonstrates that Report Formats can be used to build connectors.<BR> <BR>* Master-Slave feature. Any OpenVAS Manager can use one or many other<BR> OpenVAS Manager as slave to run scans. The whole scan task<BR> is transferred to the slave, results are continuously reported<BR> to the Master during scan process. After the scan is finished<BR> all data are removed from the slave.<BR> The master can also retrieve system reports from the slave and<BR> thus can collect the performance overview for all configured slaves.<BR> <BR>* New Escalator: HTTP GET. This allows for example to access<BR> text message (SMS) gateways or ticket management systems.<BR> <BR>* Extended Escalator: For EMail escalation it is now possible<BR> to select from configured Report Formats to be included in the<BR> Email body.<BR> <BR>* Agents: A verification method was added. This allows to<BR> distribute signatures for valid agents via the NVT Feed.<BR> <BR>* Credentials: Can now be edited. This allows to change the login<BR> name or password without the need to create a new scan configuration.<BR> <BR>* Credentials: Auto-generated installer packages are now created on<BR> the fly. If the generators are improved, it is now easy to create<BR> an updated package for already existing credentials.<BR> <BR>* OMP self-documentation: Part of the Managers\' XML-based communication protocol<BR> OMP 2.0 is to deliver the full specification and documentation of the<BR> protocol itself (command \"HELP\"). It can be retrieved as XML-,<BR> RNC- or HTML representation.<BR> <BR>* Targets: Various opportunities have been added to specify and combine IP ranges.<BR> <BR>* Tasks: The task overview is delivered much faster now.<BR> <BR>* Reports: The report filtering is much faster now.<BR><BR>Sun Oct 31 13:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.3<BR> <BR>* Two bugs which caused the manager to fail to give adequate replies on certain<BR> report and scan config requests have been fixed.<BR> <BR>* A bug which caused PDF reports to be unavailable for reports which contained<BR> certain unicode character has been fixed.<BR><BR>Tue Aug 17 14:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.2<BR> <BR>* A bug which could cause changes in derived scan configs to affect predefined<BR> scan configs under certain circumstances has been fixed.<BR><BR>Mon Aug 9 14:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.1<BR> <BR>* A fix for incorrect preference values in the database has been adjusted to<BR> work with GSA 1.0.1 as well.<BR><BR>Thu Jul 29 14:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.0<BR> <BR>* A number of build issues has been addressed.<BR> <BR>* The code documentation has been updated.<BR> <BR>* Code cleanup: Internal error handling has been made more consistent.<BR> <BR>* A potential ressource leak identified by static analysis has been fixed.<BR> <BR>* A bug which caused NVT preferences to be displayed incorrectly has been<BR> fixed.<BR><BR>Fri Jul 16 14:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.0.rc1<BR> <BR>* Code cleanup: Internal resource management has been improved to use UUIDs in<BR> more places.<BR> <BR>* Support for agents has been improved.<BR> <BR>* Support for external target sources has been added.<BR> <BR>* A bug which caused PDF exports to fail if the NVT description contained<BR> certain characters has been fixed.<BR> <BR>* A bug which caused hosts in the scan result to be sorted incorrectly under<BR> certain circumstances has been fixed.<BR> <BR>* Support for defining threat overrides has been added.<BR> <BR>* Some OMP commands have been renamed and adjusted to make the protocol more<BR> concise and useful.<BR> <BR>* Support for event logging has been added.<BR> <BR>* Support for syslog escalators has been added.<BR> <BR>* The documentation has been updated.<BR><BR>Sat May 29 14:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.0.beta7<BR> <BR>* A large amount of code which was present in both openvas-manager and<BR> openvas-administrator has been moved to openvas-libraries.<BR> <BR>* An issue that caused started tasks to remain in the \"Requested\" stage<BR> indenfinitely has been fixed.<BR> <BR>* An issue that caused incorrect values of the scan progress under certain<BR> conditions has been fixed.<BR> <BR>* A new escalator condition has been add: Threat Level Changed.<BR> <BR>* Open ports are now included in scan reports even if no vulnerability was<BR> detected on that port.<BR> <BR>* Support for CVSS scores and Risk Factors has been improved.<BR> <BR>* Support for excluding host without any results from the report has been added.<BR><BR>Thu Apr 15 14:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.0.beta6<BR> <BR>* A bug which caused incorrect NVT counts in the scan config under certain<BR> circumstances has been fixed.<BR> <BR>* The manager now uses certificate based authentication.<BR> <BR>* Support for resuming stopped tasks has been added.<BR> <BR>* Support for task scheduling has been added.<BR> <BR>* The openvasmd binary will now install into /usr/sbin instead of /usr/bin.<BR><BR>Thu Mar 4 13:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.0.beta5<BR> <BR>* More internal data structures are now identified by UUID and not by<BR> name.<BR> <BR>* Several build issues have been fixed.<BR> <BR>* Note management has been introduced.<BR> <BR>* Support for handling ITG and CPE reports has been added.<BR> <BR>* OTP forwarding is now disabled by default.<BR><BR>Mon Feb 8 13:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.0.beta4<BR> <BR>* More internal data structures are now identified by UUID and not by name.<BR> <BR>* A bug which prevented PDF reports to be generated from certain results due to<BR> unescaped LaTeX characters has been fixed.<BR> <BR>* A number of formatting and casting issues found by Stephan Kleine have been<BR> fixed.<BR> <BR>* The man page has been updated.<BR><BR>Fri Feb 5 13:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.0.beta3<BR> <BR>* Nmap is now the default port scanner for predefined configurations.<BR> <BR>* The man page has been updated.<BR> <BR>* LSC credential management has been improved.<BR> <BR>* A number of internal data structures are now identified by UUID and not by<BR> name.<BR> <BR>* The manager now converts all input from the scanner to UTF-8.<BR> <BR>* The encoding of the LaTeX report has been switch to UTF-8.<BR> <BR>* A bug that caused some settings to be ignored during scan configuration import<BR> has been fixed.<BR><BR>Wed Jan 27 13:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.0.beta2<BR> <BR>* Deleting of active reports is prevented.<BR> <BR>* Introduced ownership for all objects.<BR> This makes objects (like a \"target\") not<BR> appear for other users anymore.<BR> <BR>* Improved ISO-8859-1 to UTF-8 conversion hacks.<BR> <BR>* Allowed \"\\\" for login names (important for windows)<BR> <BR>* Send users host restrictions (\"rules\") via OTP when<BR> starting a scan.<BR> <BR>* Activated NSIS package generator for credentials management.<BR> <BR>* Filter out potentials passwords from logging.<BR> <BR>* Introduced UUIDs for users.<BR> <BR>* Improved PDF report generator.<BR><BR>Sun Jan 24 13:00:00 2010 bitshufflerAATTopensuse.org<BR>- Added %ghost entry for log file.<BR>- Added logrotate file.<BR>- Added init script.<BR>- Fixed cmake arguments.<BR><BR>Sun Jan 17 13:00:00 2010 bitshufflerAATTopensuse.org<BR>- Updated to 1.0.0.beta1<BR><BR>Tue Dec 22 13:00:00 2009 felix.wolfstellerAATTintevation.de<BR>- Updated to 0.9.8<BR><BR>Thu Dec 10 13:00:00 2009 bitshufflerAATTopensuse.org<BR>- Updated to 0.9.7<BR><BR>Tue Nov 24 13:00:00 2009 bitshufflerAATTopensuse.org<BR>- Initial RPM<BR><BR><BR></DIV> </td> <td bgcolor="#F2F2F2"> </td> </tr> </table></td> </tr> </table> </td></tr> <tr><td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr align="left" valign="top"> <td height="10" bgcolor="#A00B0F" width="100%"><img src="/images/spacer.gif" width="759" height="10" alt=""></td> </tr> </table> </td></tr> <tr><td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr align="left" valign="top"> <td height="10" width="150"><img src="/images/index_30.jpg" width="130" height="47" alt=""> </td> <td align="left"><A HREF="https://www.icm.edu.pl"><img src="/images/logo_ICM_nazwa_EN_czarne.png" height="40" alt="ICM"></A> </td> <td width="30%" align="right"><FORM ACTION="/out.php3" METHOD="post" TARGET="_blank"><INPUT TYPE="hidden" NAME="station" VALUE="1"><INPUT TYPE="image" SRC="/images/index_32.jpg" name="station" alt="Designed by station75" width="209" height="47" border="0"></FORM></td> </tr> </table> </td></tr> </table> </body> </html>