2011-02-18  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 1.1.1 release.

	* CHANGES: Updated.

2011-02-18  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/admin.c: Add validation of name when creating a new user.
	(validate_username): New.
	(openvas_admin_add_user): Validate name of the new user before doing
	anything with it.

2011-02-16  Michael Wiegand <michael.wiegand@greenbone.net>

	Change default parameter for the user name to be consistent between
	openvas-cli and openvas-administrator.

	* src/openvasad.c (main): Honor -u and --username. Hide -n and --name
	and mark them as deprecated, but honor them for backwards
	compatibility.

	* doc/openvasad.8.xml: Updated to reflect changes.

	* doc/openvasad.8: Regenerated.

2011-02-08  Michael Wiegand <michael.wiegand@greenbone.net>

	* doc/CMakeLists.txt: Do not remove the output of custom commands
	during the "make clean" stage.

2011-02-08  Michael Wiegand <michael.wiegand@greenbone.net>

	Consolidation: Move most of configuration and installation handling to
	top level CMakeLists.txt.

	* CMakeLists.txt: Move uuid detection to pkg-config. Set all _CFLAGS
	and _LDFLAGS properly. Add all defines to CMAKE_C_FLAGS.  Handle
	installation of logging configuration and schema formats.

	* src/CMakeLists.txt: Remove most configuration and installation. Use
	the LINK_FLAGS reported by pkg-config instead of hard coding them.
	Remove handling of superfluous TASKS_CFLAG.

2011-02-08  Matthew Mundell <matthew.mundell@greenbone.net>

	Enable logging of key informational messages when --verbose is given.

	* src/openvasmd_log_conf.cmake_in: Change levels to show all levels below
	DEBUG.

	* src/tracef.h (infof): New macro.

	* src/openvasad.c: Change appropriate tracefs to infos.

2011-02-04  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* CMakeLists.txt: Updated version number.

2011-02-04  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 1.1.0 release.

	* CHANGES: Updated.

2011-02-04  Michael Wiegand <michael.wiegand@greenbone.net>

	Place global schema formats into the correct directory to comply with
	the Filesystem Hierarchy Standard (FHS), version 2.3.

	* CMakeLists.txt: Set DATADIR and OPENVAS_DATA_DIR.

	* src/CMakeLists.txt: Expose OPENVAS_DATA_DIR as define. Install
	global schema formats to OPENVAS_DATA_DIR instead of
	OPENVAS_SYSCONF_DIR.

	* src/admin.c (openvas_admin_schema): Read global schema formats from
	OPENVAS_DATA_DIR instead of OPENVAS_SYSCONF_DIR.

2011-02-04  Michael Wiegand <michael.wiegand@greenbone.net>

	Add man page to openvas-administrator.

	* doc/openvasad.8.xml: New. Source file for the openvasad man page.

	* doc/openvasad.8: New. Pregenerated man page as troff document.

	* doc/openvasad.html: New. Pregenerated man page as HTML document.

	* doc/CMakeLists.txt: Add support for man page generation and
	installation.

	* INSTALL: Updated prerequisites.

2011-02-04  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c (read_password): Add todo regarding moving this
	function to openvas-libraries.
	(main): Print a newline after the password has been entered to clear
	the output line.

2011-02-03  Stephan Kleine

	* src/CMakeLists.txt: explicitly link against gnutls.

2011-02-03  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c: Correct comment.

	* src/oap.c (oap_xml_handle_text): Add missing break.

2011-02-02  Michael Wiegand <michael.wiegand@greenbone.net>

	Drop LIBOPENVAS_OLD_INCLUDE_PATH infrastructure since we now require
	openvas-libraries >= 4.0.0.

	* src/CMakeLists.txt: Remove handling of LO_OLD_INCLUDE_PATH since it
	will always be false from now on.

	* src/oap.c, src/openvasad.c, src/tests/common.c, src/tests/common.h,
	src/oapd.c, src/admin.c: Remove checks for
	LIBOPENVAS_OLD_INCLUDE_PATH.

2011-02-02  Michael Wiegand <michael.wiegand@greenbone.net>

	Switch openvas-administrator to pkg-config.

	* CMakeLists.txt: Move checks for openvas-libraries, glib and gnutls
	to pkg-config.

	* INSTALL: Update requirements and installation instructions.

	* src/CMakeLists.txt, src/tests/CMakeLists.txt: Replace calls to
	libopenvas-config with the appropriate pkg-config calls.

2011-02-02  Michael Wiegand <michael.wiegand@greenbone.net>

	Post branch version bump.

	* CMakeLists.txt: Updated version number.

2011-01-31  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c: Add define for _GNU_SOURCE and include termios.h to
	get tcsetattr ().
	(read_password): New function to read a password from the console,
	suppressing output.
	(main): Try to read password interactively if it is not provided
	through command line arguments.

2011-01-20  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad_log_conf.cmake_in: Add warning about passwords.

2011-01-20  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad_log_conf.cmake_in: Reduce max log level to warning in all
	groups, to prevent logging of passwords in the standard install.

2011-01-17  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	Post release version bump.

	* CMakeLists.txt: Updated version number.

2011-01-17  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	Preparing for the 1.0.1 release.

	* CHANGES: Updated.

2011-01-12  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* src/oap.c (authenticate): Allow for remote admins.
	First check if user can authenticate, then if user is admin, which
	is needed in case of remote authentication, where role information
	might only be available after successful authentication.

2011-01-12  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* src/openvasad.c (main): Initialize the authentication system.

2011-01-07  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (oap_xml_handle_end_element): In CLIENT_CREATE_USER change
	success response to 201.

2011-01-07  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/CMakeLists.txt: Install to Administrator dir instead of Manager
	dir.

	* src/admin.c (openvas_admin_schema): Use Administrator dir and file
	instead of Manager's.

	* src/logf.h (LOG_FILE): Use Administrator name.

2011-01-07  Matthew Mundell <matthew.mundell@greenbone.net>

	Extend OAP HELP to return a documented partial OAP schema in various
	formats.

	* src/oap (help_data_t): New type.
	(help_data_reset): New function.
	(command_data_t): Add help.
	(help_data): New variable.
	(send_find_error_to_client): Enable.
	(oap_xml_handle_start_element, oap_xml_handle_end_element): Add format
	attribute to OAP HELP.

	* src/admin.c (file_utils_rmdir_rf): New function.
	(admin_schema): New function.  Returns schema in
	given format.

	* src/admin.h: Add header accordingly.

	* src/CMakeLists.txt: Install schema formats.

	* src/schema_formats/, src/schema_formats/HTML/,
	src/schema_formats/HTML/HTML.xsl, src/schema_formats/HTML/generate,
	src/schema_formats/HTML/rnc.xsl, src/schema_formats/RNC/,
	src/schema_formats/RNC/RNC.xsl, src/schema_formats/RNC/generate,
	src/schema_formats/RNC/rnc.xsl, src/schema_formats/XML/,
	src/schema_formats/XML/OAP.xml, src/schema_formats/XML/generate: New dirs
	and files.  First schema formats.

	* doc/CMakeLists.txt (doc, doc-full): Add OAP docs.
	(omp.rnc, omp.html): New targets.

	* doc/oap.html, doc/oap.rnc: New files.  Generated from XML source.

2010-12-30  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* src/openvasad.c (main): Adapted --version output to
	comply with GNU Coding Standards
	(http://www.gnu.org/prep/standards/standards.html#g_t_002d_002dversion)

2010-12-29  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* src/openvasad.c (main): Improved description text.

2010-12-16  Michael Wiegand <michael.wiegand@greenbone.net>

	* CMakeLists.txt: Add a collection of code hardening flags to
	CMAKE_C_FLAGS, inspired by hardening-wrapper on Debian. Add -Werror to
	CMAKE_C_FLAGS to make all warnings fatal.

2010-12-16  Michael Wiegand <michael.wiegand@greenbone.net>

	* doc/CMakeLists.txt: Handle absence of doxygen more gracefully.

2010-12-07  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* CMakeLists.txt: Updated version number.

2010-12-07  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 1.0.0 release.

	* CMakeLists.txt: Updated version number and changed
	CPACK_PACKAGE_VERSION for use with "normal" versioning scheme.

	* CHANGES: Fixed typos.

2010-12-07  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* CHANGES: Updated.

2010-12-07  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c (main): Add @todo for logging in console mode.

2010-12-06  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c (main): Make response to invalid commands more
	consistent with overall behaviour.

2010-11-29  Matthew Mundell <matthew.mundell@greenbone.net>

	* CMakeLists.txt, ChangeLog, src/CMakeLists.txt, src/admin.c,
	src/openvasad.c, src/tests/common.c, src/tests/oap_authenticate_0.c,
	src/tests/oap_bogus_0.c, src/tests/oap_bogus_1.c,
	src/tests/oap_commands_0.c, src/tests/oap_create_user_0.c,
	src/tests/oap_delete_user_0.c, src/tests/oap_delete_user_1.c,
	src/tests/oap_get_users_0.c, src/tests/oap_get_version_0.c,
	src/tests/oap_help_0.c, src/tests/oap_help_1.c,
	src/tests/read_protocol_0.c, src/tests/timeout_0.c: Replace Intevation
	addresses with Greenbone ones.

2010-11-29  Matthew Mundell <matthew.mundell@greenbone.net>

	* CMakeLists.txt, ChangeLog, doc/CMakeLists.txt, src/CMakeLists.txt,
	src/admin.c, src/admin.h, src/logf.h, src/oap.c, src/oap.h, src/oapd.c,
	src/oapd.h, src/openvasad.c, src/oxpd.c, src/oxpd.h, src/splint.h,
	src/tests/CMakeLists.txt, src/tests/common.h, src/tracef.h,
	src/types.h: Use Greenbone address.

2010-11-23  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* CMakeLists.txt: Updated version number.

2010-11-23  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 1.0+rc1 release.

	* CMakeLists.txt: Updated version number and changed
	CPACK_PACKAGE_VERSION for use with "+rc" versioning scheme.

2010-11-23  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* CHANGES: Updated.

2010-11-17  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/oxpd.c, src/oxpd.h, src/oap.c, src/openvasad.c, src/oapd.c,
	src/oap.h, src/oapd.h, src/admin.c, src/logf.h: Format according to
	coding style.  Command was 'indent --no-tabs --ignore-newlines -l 80
	*.c *.h'.

2010-11-16  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/oap.c (oap_xml_handle_end_element): Add event logging to user
	role changes.

2010-11-12  Michael Wiegand <michael.wiegand@greenbone.net>

	Make sure openvas-administrator builds with openvas-libraries =< 3.1.4
	as well as newer versions by setting the includes based on the
	openvas-libraries version.

	* CMakeLists.txt: Check openvas-libraries version and set
	LIBOPENVAS_OLD_INCLUDE_PATH if the old include paths should be used.

	* src/CMakeLists.txt: Handle setting of LIBOPENVAS_OLD_INCLUDE_PATH.

	* src/oap.c, src/openvasad.c, src/tests/common.c, src/tests/common.h,
	src/oapd.c, src/admin.c: Check if LIBOPENVAS_OLD_INCLUDE_PATH is
	defined when including headers originating from
	openvas-libraries/misc.

2010-10-07  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c (openvas_admin_modify_settings): Doc args.

2010-09-08  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* CMakeLists.txt: Added check for subversion directory if build type
	is not release to avoid an incomplete version number.

2010-08-26  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/oap.c (oap_xml_handle_end_element): Do event logging whenever a
	user is created or deleted.

2010-07-22  Michael Wiegand <michael.wiegand@greenbone.net>

	* CMakeLists.txt: Fixed openvas-libraries version detection.

2010-07-08  Michael Wiegand <michael.wiegand@greenbone.net>

	* CMakeLists.txt: Make cmake environment more flexible as discussed on
	openvas-devel: Set CMAKE_BUILD_TYPE only to "Debug" if it is not
	already set. Do not set CMAKE_VERBOSE_MAKEFILE, let it default to OFF.
	Remove redundant flags from CMAKE_C_FLAGS_DEBUG. Replace check for
	PREPARE_RELEASE with check for CMAKE_BUILD_TYPE == "Release".

2010-05-26  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* CMakeLists.txt: Updated version number.

2010-05-26  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.9.0 release.

	* CMakeLists.txt: Updated version number, updated
	CPACK_SOURCE_IGNORE_FILES to keep superfluous files out of the source
	package.

	* CHANGES: Updated.

2010-05-26  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c (main): Display a message if called with -T and no
	synchronization is currently taking place.

2010-05-25  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c (main): Add -T argument to display a message when
	the feed is currently being synchronized with the supplied sync
	script.

2010-05-20  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/oap.c (oap_xml_handle_end_element): Perform a selftest of the
	sync script when describing a feed and include the result in the
	response if the test fails.

2010-05-20  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/admin.c (openvas_sync_script_perform_selftest): Fix conditional
	so that the stderr of the sync script is indeed provided to the
	calling function.

2010-05-20  Michael Wiegand <michael.wiegand@greenbone.net>

	* ChangeLog: Add entry for file prematurely committed with last
	commit.

2010-05-20  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c (main): Add -S argument to synchronize an installed
	NVT feed and exit.

	* src/admin.c (openvas_sync_script_perform_selftest)
	(openvas_get_sync_script_identification)
	(openvas_get_sync_script_description)
	(openvas_get_sync_script_feed_version): Do not attempt to free GError
	if it has not been used.

2010-05-20  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c (main): Switch calls to g_strcasecmp to
	g_ascii_strcasecmp since the former is deprecated since glib 2.2.

2010-05-20  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/admin.c (openvas_sync_script_perform_selftest)
	(openvas_get_sync_script_identification)
	(openvas_get_sync_script_description)
	(openvas_get_sync_script_feed_version): Free memory allocated by
	GError with g_error_free instead of g_free.

2010-05-20  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c (main): Add -F argument to print the version of an
	installed NVT feed and exit.

2010-05-19  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* src/oap.c: (oap_xml_handle_end_element): Fixed indentation.

2010-05-11  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Renamed key_value_pair element to auth_conf_setting. Adjusted parser
	to resemble handling of the other elements.

	* src/oap.c: (key_value_pair_t): Renamed to auth_conf_setting_t .
	(key_value_pair_from_xml): Renamed to auth_conf_setting_from_xml.
	(auth_group_t): Adjusted comment.
	(modify_auth_data_t): Adjusted to handling of other elements.
	(modify_auth_data_reset): Adjusted to changed struct and names.
	(client_state_t): Added new state for the auth_conf_setting element.
	(oap_xml_handle_start_element): Adjusted comments and handling of
	elements.
	(copy_attribute_value): Set return location to NULL in case attribute
	was not found. Fix double pointer issue.
	(keyfile_to_key_value_xml): Renamed to
	key_file_to_auth_conf_settings_xml .
	(oap_xml_handle_end_element): Moved and rephrased todo regarding
	sighup to manager, adjusted to new state and names, handle errors.

2010-05-11  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* README: Copied testing section from openvas-manager README and
	adjusted to administrator.

	* src/tests/oap_help_0.c: Adjusted to changes in HELP command.

2010-05-10  Matthew Mundell <matthew.mundell@greenbone.net>

	In OAP MODIFY_USER only change the host rules and role if the
	corresponding entities are given.

	* src/admin.c (openvas_admin_modify_user): Skip role and hosts if they
	are NULL.

	* src/oap.c (oap_xml_handle_start_element): In CLIENT_MODIFY_USER init
	hosts and role in the command data.
	(oap_xml_handle_end_element): In CLIENT_MODIFY_USER send NULL to
	openvas_admin_modify_user instead of "User", if the role was NULL.

2010-05-10  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c (openvas_admin_modify_user): Return the value from
	open_set_user_role directly, to get all error cases.

	* src/oap.c (oap_xml_handle_end_element): In CLIENT_MODIFY_USER handle
	new role error from openvas_admin_modify_user.

2010-05-10  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (oap_xml_handle_end_element): In CLIENT_GET_USERS rename the
	admin role to "Admin" to match the name required by MODIFY_USER.

2010-05-10  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* src/oap.c (oap_handle_end_element): In todo, provide possible
	solution.

2010-05-10  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* src/tests/oap_help_0.c: Adjusted to changed help text.

2010-05-10  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Adressed inconsistency in element naming pointed out by Matthew
	Mundell.

	* src/oap.c (key_value_pair_from_xml, oap_handle_start_element)
	(keyfile_to_key_value_xml, oap_xml_handle_end_element): Renamed
	key-value-pair element into key_value_pair element, with underscores
	as all the other oap elements have.

2010-05-10  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* src/oap.c: Slightly extended and clarified internal documentation.

2010-05-10  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Adressed some issues pointed out by Matthew Mundell.

	* src/oap.c (help_text): Sort alphabetically, add note about test case.
	(command_data_t, client_state_t, modify_auth_data): Sort
	alphabetically, declare at correct position in code.

2010-05-07  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Implemented new modify_auth command to modify the authentication
	configuration of an openvas-manager.

	* src/oap.c: Added rough internal documentation.
	(modify_settings_data_t): Documented.
	(key_value_pair_t, auth_group_t, modify_auth_data_t): New types to
	store data regarding authentication configuration.
	(modify_auth_data_reset): New function, freeing the memory used by the
	new MODIFY_AUTH command.
	(key_value_pair_from_xml): New function.
	(command_data_t): Added modify_auth_data to command data union.
	(client_state_t): Added new states.
	(copy_attribute_value): New convenience function, if an elements
	attribute value is needed in copy.
	(oap_xml_handle_start_element): Handle new element and states.
	(keyfile_to_key_value_xml): New convenience function to get a xml-
	representation of a GKeyFile.
	(oap_xml_handle_end_element): Changed response to a DESCRIBE_AUTH
	command, handle new element and states. Added todo about input
	validation.

2010-05-04  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c: Update free_array call to array_free.

2010-05-04  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Moved shared code between openvas-administrator and openvas-manager
	into openvas-libraries.

	* src/admin.c (make_array, free_array): Moved to
	openvas-libraries/base/array module.

	* src/admin.h: Removed typedef and protos, include array module from
	openvas-libraries/base .

	* src/oap.c (array_add, array_terminate): Moved to array module in
	openvas-libraries/base .

2010-05-02  Hartmut Goebel <h.goebel@goebel-consult.de>

	* src/oap.c: (oap_xml_handle_end_element): Fixed an errror message
	string for CLIENT_GET_USERS.

2010-04-30  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Added prototypical implementation of a new OAP command: DESCRIBE_AUTH .
	For now, the openvas-administrator daemon will answer with the content
	of the authentication configuration file if it exists, base64 encoded.

	* src/CMakeLists.txt: Link against base from openvas-libraries.

	* src/oap.c: Added general todo about duplicates in openvas-manager.
	Added include of openvas/base/openvas_file module.
	(help_text): Added new OAP command DESCRIBE_AUTH.
	(client_state_t): Added new state.
	(oap_xml_handle_start_element): Handle start of DESCRIBE_AUTH command.
	(oap_xml_handle_end_element): Perform new command DESCRIBE_AUTH.

2010-04-30  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Removed unneeded includes.

	* src/tests/oap_create_user_0.c, src/tests/oap_delete_user_0.c,
	src/tests/oap_delete_user_1.c, src/tests/oap_get_users_0.c: Removed
	inclusion of non-existent "../string.h" .

2010-04-27  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Moved code to libraries, near-duplicate exists in openvas-manager.

	* src/oap.h, src/oap.c: Added 2010 to copyright statement.

	* src/oap.c: Moved credential-specific code to new
	openvas-libraries/base/credentials module. Include it. Fixed comment
	of current_credentials (OAP vs OMP).

2010-04-21  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* CMakeLists.txt: Introduced improvable openvas-libraries version
	check from openvas-manager.

2010-04-21  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Fixed building against latest openvas-libraries .

	* src/admin.c (openvas_admin_add_user, openvas_admin_modify_user),
	src/openvasad.c (main): Adjusted call to openvas_set_user_roles, as
	its signature changed in openvas-libraries/misc/openvas_auth .

2010-04-20  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* src/admin.c (openvas_admin_add_user, openvas_admin_modify_user):
	Pass users directory to openvas_auth_store_user_rules, added todo about
	missing functionality (modification of remotely authenticated users
	is not possible and should result in proper feedback).

2010-04-20  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* src/admin.c (openvas_admin_add_user): Respect return value of rule
	storage trial, try to revert changes in case of error.
	(openvas_admin_modify_user): Duplicate code. Use library function
	instead.

2010-04-20  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* src/admin.c: Updated copyright, include new file utility module.
	(check_is_dir, remove_recurse): Moved to
	openvas-libraries/base/openvas_file module.
	(openvas_admin_add_user): Moved code part regarding creation of rules
	file to openvas-libraries/misc/openvas_auth module, call that new
	function instead.
	Updated calls to the functions that were moved to
	openvas-libraries/base/openvas_file .

2010-04-20  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* CMakeLists.txt, src/CMakeLists.txt: Lowercased cmake commands.

2010-04-15  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Moved code to openvas-libraries/misc/openvas_uuid module.

	* src/admin.c: Removed obsolete uuid include.
	Added new openvas_uuid include.
	(make_uuid): Removed. Now openvas_uuid_make in new module.
	(openvas_admin_add_user): Reflect function name change.

2010-04-13  Stephan Kleine

	* src/CMakeLists.txt: Fix build with as-needed

2010-04-12  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* CMakeLists.txt: Updated version number.

2010-04-12  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.8.0 release.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

2010-04-10 Stephan Kleine

	* src/CMakeLists.txt: Fix build with as-needed

	* src/tests/CMakeLists.txt: Fix build with as-needed

2010-04-10 Stephan Kleine

	* CMakeLists.txt: Add support for out-of-source builds.

2010-04-06  Michael Wiegand <michael.wiegand@greenbone.net>

	Added support for retrieving the version of an installed NVT
	collection.

	* src/admin.c (openvas_get_sync_script_feed_version): New.

	* src/admin.h: Updated.

	* src/openvasad.c (main): Added support for get_feed_version command
	line command.

	* src/oap.c (oap_xml_handle_end_element): Include feed version in
	description.

2010-03-23  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c (main): Correct spelling of message.

2010-03-20  Stephan Kleine

	* src/CMakeLists.txt: Install openvasad into ${SBINDIR} since it is a service.

2010-02-12  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c: Include stdio.h.

2010-02-08  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c (openvas_sync_feed): Switch from g_spawn_sync to using fork
	and execl.

	* src/openvasad.c (main): Set FD_CLOEXEC on the Administrator socket.

2010-02-05  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oxpd.c (read_protocol) [TRACE || LOG]: Cast precision arg to int.

2010-02-05  Matthew Mundell <matthew.mundell@greenbone.net>

	Thanks to Stephan Kleine.

	* src/oap.c (send_to_client): Use %zu for size_t.

	* src/oxpd.c (read_protocol): Cast precision arg to int.

2010-02-05  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c (openvas_sync_feed): Prevent descendants from becoming
	zombies.

2010-02-05  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* CMakeLists.txt: Updated version number.

2010-02-05  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.7.0 release.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

2010-02-03  Christian Kuersteiner <ckuerste@gmx.ch>

	* src/admin.c (openvas_admin_list_users): Add format string for g_warnings.

2010-02-01  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/tracef.h (tracef) [TRACE]: Remove UTF-8 conversion.

2010-01-29  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/CMakeLists.txt: Make warnings errors.

2010-01-29  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad.c (main): Pass --name argument to openvas_sync_feed
	instead of dummy user, if --name is present.

2010-01-29  Matthew Mundell <matthew.mundell@greenbone.net>

	Make OAP SYNC_FEED simply start the sync, instead of waiting for the
	sync to finish.  Extent OAP DESCRIBE_FEED with more details of feeds
	that are sync'ing.

	* src/admin.c (openvas_admin_add_user): Free uuid with free.
	(openvas_sync_feed): Add current_user arg.  Fork a child to run the sync.
	(openvas_currently_syncing): Remove.
	(openvas_current_sync): New function.

	* src/admin.h: Update headers accordingly.

	* src/oap.c (current_error, forked): New variables.
	(oap_xml_handle_end_element): In CLIENT_DESCRIBE_FEED add TIMESTAMP and
	USER to CURRENTLY_SYNCING.  In CLIENT_SYNC_FEED handle fork returns.
	(init_oap_process): Init forked and current_error.
	(process_oap_client_input): Check for dummy error containing forked child
	return.

	* src/oapd.c (serve_oap): Handle process_oap_client_input child returns.

	* src/openvasad.c (main): Pass dummy user to openvas_sync_feed.  Wait for
	sync child and report result according the child return.

2010-01-26  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	Post-release version bump.

	* CMakeLists.txt: Updated version number.

2010-01-26  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	Preparing for the 0.6.0 release.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

2010-01-26  Matthew Mundell <matthew.mundell@greenbone.net>

	* INSTALL: Add libuuid to requirements.

2010-01-26  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c (make_uuid): New function.
	(openvas_admin_add_user): Also add a file "uuid" with a UUID for the
	user.

	* src/CMakeLists.txt (openvasad): Add -luuid.

	* CMakeLists.txt: Look for UUID lib.

2010-01-25  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oapd.c (serve_oap): Filter logging of input that may contain
	passwords.

	* src/oxpd.c (read_protocol): Filter logging of input that may contain
	passwords.

2010-01-21  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (oap_xml_handle_start_element): In CLIENT_MODIFY_USER init the
	modify_password value from the attribute.

2010-01-21  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c (RULES_HEADER): New define.
	(openvas_admin_user_access): Parse header comment too.  Return new
	success value instead of error on failure to parse file.
	(openvas_admin_add_user, openvas_admin_modify_user): Add header comment.

	* src/oap.c (oap_xml_handle_end_element): In CLIENT_GET_USERS always send
	HOSTS.

2010-01-20  Matthew Mundell <matthew.mundell@greenbone.net>

	Add NAME attribute to OAP GET_USERS, for limiting response to single
	user.  Add OAP MODIFY_USER.

	* src/admin.c (openvas_admin_list_users): Add name argument, for
	limiting list to single user.
	(openvas_admin_modify_user): New function.

	* src/admin.h: Update accordingly.

	* src/oap.c (help_text): Add MODIFY_USER.
	(get_users_data_t): Add name.
	(get_users_data_reset): Free name.
	(modify_user_data_t): New type.
	(modify_user_data_reset): New function.
	(command_data_t): Add modify_user.
	(modify_user_data): New variable.
	(client_state_t): Add MODIFY_USER states.
	(oap_xml_handle_start_element, oap_xml_handle_end_element)
	(oap_xml_handle_text): Add MODIFY_USER handling.  Add NAME attrib to
	GET_USERS.

	* src/openvasad.c (main): Add name arg to openvas_admin_modify_user call.

	* src/tests/oap_help_0.c (help_text): Add MODIFY_USER.

2010-01-19  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c (openvas_admin_user_access): New function.

	* src/admin.h: Add header accordingly.

	* src/oap.c (oap_xml_handle_end_element): In CLIENT_GET_USERS send HOSTS.

2010-01-19  Matthew Mundell <matthew.mundell@greenbone.net>

	Add HOSTS to OAP CREATE_USER, for target access control.

	* src/admin.c (openvas_admin_add_user): Add hosts and hosts_allow args
	which get translated into a simple rules file.

	* src/admin.h: Update header accordingly.

	* src/oap.c (create_user_data_t): Add hosts and hosts_allow.
	(client_state_t): Add CLIENT_CREATE_USER_HOSTS.
	(oap_xml_handle_start_element, oap_xml_handle_end_element)
	(oap_xml_handle_text): Add HOSTS to CREATE_USER.

	* src/openvasad.c (main): Add hosts args to openvas_admin_add_user call.

2010-01-19  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c (openvas_admin_add_user): Match a ! formatting to others.
	Make truth comparisons implicit.  Put multi-line logical op at start of
	line.  Add comments.  Allocate memory later so there's less freeing code.
	Return immediately in the first two directory creation failure cases
	instead of using a flag.  Remove "else" blocks when "then" blocks
	return, at least to bring the width within 80 chars.

2010-01-19  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* CMakeLists.txt: Updated version number.

2010-01-19  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (delete_user_data_t): New type.
	(delete_user_data_reset): New function.
	(command_data_t): Add delete_user.
	(delete_user_data): New variable.
	(current_string_1): Remove.
	(oap_xml_handle_start_element, oap_xml_handle_end_element)
	(oap_xml_handle_text): Switch to new callback data mechanism for
	DELETE_USER.

2010-01-19  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (create_user_data_t): New type.
	(create_user_data_reset): New function.
	(command_data_t): Add create_user.
	(create_user_data): New variable.
	(current_string_2, current_string_3): Remove.
	(oap_xml_handle_start_element, oap_xml_handle_end_element)
	(oap_xml_handle_text): Switch to new callback data mechanism for
	CREATE_USER.

2010-01-19  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.5.0 release.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

2010-01-18  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (STATUS_ERROR_ACCESS, STATUS_ERROR_ACCESS_TEXT): New defines,
	as in Manager.
	(oap_xml_handle_end_element): In CLIENT_GET_SETTINGS add editable flag to
	SCANNER_SETTINGS, set according to --enable-modify-settings.

2010-01-14  Matthew Mundell <matthew.mundell@greenbone.net>

	Add OMP MODIFY_SETTINGS and option --enable-modify-settings.

	* src/openvasad.c (main): Add --enable-modify-settings.

	* src/oapd.c (init_oapd): Add arg enable_modify_settings.

	* src/oapd.h: Update accordingly.

	* src/oap.c (array_add, array_terminate, setting_new)
	(modify_settings_data_reset): New functions.
	(help_text): Add %s for MODIFY_SETTINGS.
	(help_modify_settings, enable_modify_settings, modify_settings_data): New
	variables.
	(get_users_data_reset, command_data_init, command_data)
	(get_users_data): Add doc.
	(modify_settings_data_t): New type.
	(command_data_t): Add modify_settings.
	(client_state_t): Add MODIFY_SETTINGS states.
	(oap_xml_handle_start_element, oap_xml_handle_end_element)
	(oap_xml_handle_text): Handle MODIFY_SETTINGS.
	(init_oap): Add param modify_settings.

	* src/oap.h: Update header accordingly.

	* src/admin.c (make_array, free_array, openvas_admin_modify_settings): New
	functions.

	* src/admin.h: Add headers accordingly.
	(admin_setting_t): New type.

	* src/tests/oap_help_0.c (help_text): Indent to match help text.

2010-01-14  Matthew Mundell <matthew.mundell@greenbone.net>

	Initiate switch to more manageable data passing mechanism.

	* src/oap.c (get_users_data_t, command_data_t): New types.
	(get_users_data_reset, command_data_init): New function.
	(current_int_1, current_int_2): Remove.
	(command_data, get_users_data): New variables.
	(oap_xml_handle_start_element, oap_xml_handle_end_element): Use new
	data passing mechanism for GET_USERS.
	(init_oap): Neaten doc.  Init command_data.

2010-01-14  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c: Order cases and branches alphabetically.
	(help_text): Sort.  Bring width within 80 chars.

	* src/tests/oap_help_0.c (help_text): Sort.  Bring width within 80 chars.

2010-01-13  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (build_settings_xml): Remove.
	(oap_xml_handle_end_element): In CLIENT_GET_SETTINGS use new settings
	interface.

	* src/openvasad.c (main): Adjust get_settings command for new settings
	interface.

	* src/admin.c (print_setting, print_settings): Remove.

	* src/admin.h: Update headers accordingly.

2010-01-13  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (XML_ERROR_BUSY): New macro.
	(oap_xml_handle_end_element): In CLIENT_SYNC_FEED use response macros.

2010-01-13  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (oap_xml_handle_end_element): Indent CLIENT_DESCRIBE_FEED
	and CLIENT_GET_SETTINGS properly.

2010-01-13  Matthew Mundell <matthew.mundell@greenbone.net>

	Make the locking around the feed synchronization atomic.

	* src/admin.c (openvas_sync_feed): Add locking around the sync based on
	the script name.  Collect all the cleanup code at the end of the function.
	(openvasad_create_lockfile, openvasad_remove_lockfile): Remove.
	(openvasad_currently_syncing): Remove.  Now openvas_currently_syncing.
	(openvas_currently_syncing): New function from
	openvasad_currently_syncing.  Update lock file name to match
	openvas_sync_feed.

	* src/admin.h: Update headers accordingly.

	* src/oap.c (oap_xml_handle_end_element): Adjust CLIENT_SYNC_FEED for new
	atomic openvas_sync_feed.

	* src/openvasad.c (main): Adjust sync_feed command for new atomic
	openvas_sync_feed.

2010-01-13  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (oap_xml_handle_end_element): In CLIENT_SYNC_FEED put the
	sync code in an else, otherwise when another sync is in progress it
	runs a second sync and sends two responses.

2010-01-13  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c (print_settings): Correct arg name in doc.

2010-01-13  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c, src/admin.h: Make comments consistent with rest of module.
	Remove "void"s from empty arg lists.

2010-01-13  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c: Format single expression branches consistently.

2010-01-13  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (oap_xml_handle_end_element): Make the get_all_settings error
	in CLIENT_GET_SETTINGS an internal error.

2010-01-13  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (oap_xml_handle_end_element): Streamline CLIENT_GET_SETTINGS
	formatting.

2010-01-13  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (help_text): Add GET_SETTINGS.

	* src/tests/oap_help_0.c (help_text): Add GET_SETTINGS.

2009-12-30  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oapd.c (serve_omp): Just read and log a character on select
	exception, instead of failing.

	* src/admin.c (strcmp_desc): New function.
	(openvas_admin_list_users): Add ascending arg to control user sorting.

	* src/admin.h: Update header accordingly.

	* src/openvasad.c (is_parent): Format doc.
	(main): Update call to openvas_admin_list_users.

	* src/oap.c (help_text): Bring down to 80 chars wide.
	(oap_xml_handle_start_element): In CLIENT_GET_USERS store sort_order
	attribute.
	(oap_xml_handle_end_element): In CLIENT_GET_USERS pass sort_order
	to openvas_admin_list_users.

	* src/tests/oap_help_0.c (help_text): Match to current value.

	* ChangeLog: Cleanup some formatting.

2009-12-23  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Applied patch from Vladimir Nadvornik. Compiled libraries do not need
	to be shared, but can be static instead. This closes the administrator-
	part of bug #1227 (http://bugs.openvas.org/1227).

	* src/CMakeLists.txt: Declare admin and oap library as static.

2009-12-21  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* CMakeLists.txt: Updated version number.

2009-12-21  Michael Wiegand <michael.wiegand@greenbone.net>

	* CMakeLists.txt: Don't ignore necessary files when creating the source
	tarball.

2009-12-21  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.4.0 release.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

2009-12-21  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/oap.c (oap_xml_handle_end_element): Include name of settings file
	in error message.

2009-12-17  Michael Wiegand <michael.wiegand@greenbone.net>

	Added support for retrieving settings from configuration files.

	* src/openvas.c (main): Replaced list_all_prefs command with new
	get_settings command. Make it clear that the file being handled
	contains the scanner settings. Hand the name of the scanner
	settings file to the daemon when initializing it.

	* src/oapd.c (init_oapd): Updated to handle the additional
	parameter.

	* src/oapd.h: Updated.

	* src/oap.c: Added new client state, fixed sorting of states.
	(init_oap): Updated to handle the additional parameter.
	(build_settings_xml): New. Function to construct the XML output
	for a list of settings.
	(oap_xml_handle_start_element): Handle new get_settings element.
	(oap_xml_handle_end_element): Handle new get_settings element.

	* src/oap.h: Updated.

	* src/admin.c: Cleaned up, switched to text output for
	settings.
	(print_preference): Removed and replaced with print_setting.
	(print_setting): New.
	(print_preferences_xml): Removed and replaced with
	print_settings.
	(print_settings): New.
	(openvas_admin_list_all_prefs): Removed since functionality has
	been moved to openvas-libraries.

	* src/admin.h: Updated.

2009-12-17  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Second step of versioning mechanism change.

	* doc/Doxyfile.in, doc/Doxyfile_full.in, VERSION.in: Added variable to
	be substituted by CMake at configure time.

2009-12-17  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Preparing versioning mechanisms analogous to openvas-manager.

	* doc/Doxyfile, doc/Doxyfile_full: Moved to doc/Doxyfile.in,
	doc/Doxyfile_full.in

	* VERSION: Moved to VERSION.in.

	* CMakeLists.txt: Adjusted.

	* src/CMakeLists.txt: Tiny cosmetics (removed empty lines at end of
	file).

2009-12-16  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* INSTALL: Added hint on dot tool.

2009-12-15  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad.c (accept_and_maybe_fork): After forking switch the
	SIGCHLD handler of the child to SIG_DFL.
	(main): Revert SIGCHLD handler to SIG_IGN.

2009-12-09  Michael Wiegand <michael.wiegand@greenbone.net>

	* CMakeLists.txt: Removed superfluous test for uuid library.

2009-12-08  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* VERSION: Set to 0.3.1.SVN.

	* doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

2009-12-08  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.3.0 release.

	* VERSION: Set to 0.3.0.

	* doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

2009-12-03  Michael Wiegand <michael.wiegand@greenbone.net>

	Improved locking during feed synchronization.

	* src/oap.c: Defined status for a busy resource.
	(oap_xml_handle_end_element): Add a currently_syncing element to the
	feed description if the feed is currently being synchronized. Respond
	with a "busy" message when feed is already being synchronized. Do proper
	locking before feed synchronization and remove the lock when done. Send
	empty name and description instead of error if we could not identify the
	synchronization script.

	* src/admin.c: Added new functions for lockfile management.
	(openvasad_create_lockfile, openvasad_remove_lockfile)
	(openvasad_currently_syncing): New.

	* src/admin.h: Updated header.

	* src/openvasad.c (main): Use new functions for lockfile management.

2009-12-01  Michael Wiegand <michael.wiegand@greenbone.net>

	Improving feed synchronization support.

	* CMakeLists.txt: Set OPENVAS_SYNC_SCRIPT_DIR.

	* src/CMakeLists.txt: Expose OPENVAS_SYNC_SCRIPT_DIR.

	* src/openvasad.c (main): Use openvas-nvt-sync as default
	synchronization script if no script is specified on the command line.

	* src/oap.c (oap_xml_handle_end_element): Reworked describe_feed
	response, now includes the feed name.

	* src/admin.c: Removed superfluous newlines.

2009-11-30  Michael Wiegand <michael.wiegand@greenbone.net>

	Adding initial support for synchronization with an NVT feed.

	* src/openvasad.c (main): Add -s command line parameter to receive an
	NVT feed synchronization script. Add support for three new command line
	commands: sync_feed, test_sync_script and describe_sync_script. Refuse
	to start without synchronization script and hand synchronization script
	to init_oapd (). Don't ignore SIGCHLD since we need the exit code of the
	synchronization script.

	* src/oapd.c (init_oapd): Added sync_script parameter.

	* src/oapd.h: Updated header.

	* src/oap.c: Added support for two new commands: describe_feed and
	sync_feed. Updated help text and possible client states. Introduced
	static sync_script variable.
	(oap_xml_handle_start_element, oap_xml_handle_end_element): Add handling
	of new commands.
	(init_oap): Added sync_script parameter. Return error if sync_script is
	not given, else set static variable.

	* src/oap.h: Updated header.

	* src/admin.c: Added new functions for feed synchronization support.
	(openvas_sync_script_perform_selftest,
	openvas_get_sync_script_identification,
	openvas_get_sync_script_description, openvas_sync_feed): New.

	* src/admin.h: Updated header.

2009-11-27  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* CMakeLists.txt: Switched method of svn revision extraction to
	"offline" check.

2009-11-27  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* CMakeLists.txt: Made wording more consistent.

2009-11-27  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* CMakeLists.txt: At configure time, add svn revision to version
	number if PREPARE_RELEASE flag is not set.

2009-11-26  Matthew Mundell <matthew.mundell@greenbone.net>

	* CMakeLists.txt: Make formatting more consistent.  Streamline TODO.
	Match the dependency checks to the manager.

2009-11-26  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Applying fix from openvas-manager (rev. 5978).

	Fixing certain wrong installation locations that could be set through
	cmake. This partly fixes bug #1206 (http://bugs.openvas.org/1206).

	* CMakeLists.txt: Respect SYSCONF_INSTALL_DIR if set.

2009-11-26  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Changed checks for used libraries, with help of Matthew Mundell.

	* CMakeLists.txt: Removed explicit PATH specification in find_library
	calls, removed respective todo. Replaced check for libopenvas by check
	for libopenvas_base.

	* src/CMakeLists.txt: Respect libdir and bindir.

2009-11-25  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	Added stubs for dependency checks during configure/build time.
	Fixes bug #1205 (http://bugs.openvas.org/1205) for certain
	environments.

	* CMakeLists.txt: Added stubs for (dependency) checks for glib-2.0,
	gcrypt, openvas-libraries, gnutls, pcap and gpgme.

2009-11-20  Michael Wiegand <michael.wiegand@greenbone.net>

	Make sure the parent pidfile is only removed when the parent exits.

	* src/openvasad.c: Introduce global is_parent indicator.
	(accept_and_maybe_fork): Set is_parent to 0 in the child immediately
	after forking.
	(cleanup): Check if this process is the parent before removing the
	pidfile.

2009-10-29  Matthew Mundell <matthew.mundell@greenbone.net>

	Cleanup after static analysis.

	* src/splint.h: Include gnutls.h and uuid.h.
	(g_malloc, g_malloc0): Update types.
	(g_dir_read_name, g_dir_close, g_rand_new, g_rand_free, g_strfreev)
	(g_key_file_free, g_slist_free, g_string_free, g_option_context_free): New
	headers.

	* src/oap.c (oap_xml_handle_end_element): In CLIENT_GET_USERS use a temp
	var to iterate over the list and free the list data.

	* src/openvasad.c: Include splint.h.  Move variable declarations to block
	starts.
	(main): Work around cpp string concatentation for splint.  Free option
	context.  Free response.  Exit with exit on special user fail, like other
	cases.

	* src/admin.c: Include splint.h.  Move variable declarations to block
	starts.
	(print_preference, print_user, print_user_text) Free temporary string.
	(remove_recurse): Free temporary filename.
	(openvas_admin_list_users): Add note about freeing element data.

2009-10-26  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* VERSION: Set to 0.2.3.SVN.

	* doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

2009-10-26  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.2.2 release.

	* VERSION: Set to 0.2.2.

	* doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

2009-10-22  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad.c (cleanup, main): Clean a little formatting.

2009-10-21  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* src/openvasad.c (cleanup, main): Factored out pidfile management.

2009-09-29  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oad.c (oap_xml_handle_start_element): Correct command name in
	CLIENT_DELETE_USER response.
	(oap_xml_handle_end_element): Respond with failure if the requested user
	is the current user.
	(init_oap): Init current_credentials.

	* src/tests/oap_delete_user_1.c: New file.  Tests removing current user.

	* src/tests/CMakeLists.txt: Add oap_delete_user_1.

2009-10-19  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* VERSION: Set to 0.2.2.SVN.

	* doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

2009-10-19  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.2.1 release.

	* VERSION: Set to 0.2.1.

	* doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

2009-10-12  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c (main): Modified short options for --password, --role
	and --account to resolve conflicts. Removed short options for
	--rules-file, --users-dir and --config-file for now.

2009-09-29  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	Post release version bump.

	* VERSION: Set to 0.2.1.SVN.

	* doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

2009-09-29  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	Preparing for the 0.2.0 release.

	* VERSION: Set to 0.2.0.

	* doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

2009-09-29  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* INSTALL: Update pre-requisites.

2009-09-29  Matthew Mundell <matthew.mundell@greenbone.net>

	Hide the special "om" user.

	* src/openvasad.c (main): In set_role command, check if the user is "om".

	* src/admin.c (openvas_admin_list_users, openvas_admin_add_user)
	(openvas_admin_remove_user, openvas_admin_set_rules): Prevent modification
	or listing of the "om" user.

2009-09-29  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad.c (SERVERCERT, SERVERKEY, CACERT): Remove.  Rename to
	match build files.
	(OPENVAS_SERVER_CERTIFICATE, OPENVAS_SERVER_KEY)
	(OPENVAS_CA_CERTIFICATE): New definitions.  Renamed from names left from
	manager.

2009-09-28  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* INSTALL: New.

2009-09-28  Matthew Mundell <matthew.mundell@greenbone.net>

	* CMakeLists.txt: Set minimum cmake version to 2.6.

2009-09-25  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* src/tests/common.h: Fixed include for new location of omp.h.

2009-09-25  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* src/openvasad.c, src/oxpd.c: Renaming openvasd to openvassd
	inside comments.

2009-09-25  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* CMakeLists.txt: Fixed path to openvas scanner config.

2009-09-25  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad_log_conf.cmake_in (*): Send logs to openvasad.log
	instead of openvas.log.

2009-09-25  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad.c (main): Add end type arg to openvas_server_new call.

2009-09-25  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad.c (main): Remove examples left from prototype daemon.

2009-09-25  Matthew Mundell <matthew.mundell@greenbone.net>

	Switch entirely to the openvas_server library interface for handling the
	client session.

	* src/openvasad.c (client_session, client_credentials): New variables.
	(serve_client, accept_and_maybe_fork, main): Use openvas_server interface
	instead of ovas_scanner interface.
	(cleanup): Remove ovas_scanner_context cleanup.

	* src/oapd.c (serve_oap): Add credentials arg.  Call openvas_server_free
	instead of close_stream_connection.
	* src/oapd.h: Update header.

	* src/oxpd.c: Add param order todo.

2009-09-25  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* src/CMakeLists.txt: Added compiler flags from openvas-libraries to
	targets that depend on openvas-libraries.

	* src/oap.c: Adjusted include.

2009-09-24  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad.c (serve_client): Remove server code left from manager.

2009-09-23  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad.c (ovas_server_context_t, ovas_server_context)
	(ovas_server_context_attach, ovas_server_context_free)
	(ovas_server_context_new): Remove.  Rename temporarily to match libs.
	(ovas_scanner_context_t, ovas_scanner_context)
	(ovas_scanner_context_attach, ovas_scanner_context_free)
	(ovas_scanner_context_new): New.  Renamed temporarily to match libs.

2009-09-23  Matthew Mundell <matthew.mundell@greenbone.net>

	Add the ability to set the role when creating a user (OAP and cli).  Add
	a set_role cli command.

	* src/oap.c (client_state_t): Replace rule state with role state.
	(oap_xml_handle_start_element, oap_xml_handle_end_element)
	(oap_xml_handle_text): In the CREATE_USER handling accept a role instead
	of rules.

	* src/openvasad.c (main): Add a "role" and a set_role command.  Pass the
	role in the add_user command.

	* src/admin.c (openvas_admin_add_user): Replace the rules arg with a role
	arg.  Set the role of the created user.

	* src/admin.h (openvas_admin_add_user): Update for new definition.
	(openvas_admin_remove_user): Match to existing definition.

2009-09-22  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/admin.c (G_LOG_DOMAIN): New define.
	(openvas_admin_add_user, openvas_admin_remove_user): Add more detailed
	error codes.  Update callers.

	* src/oap.c (authenticate): Add admin user check.

	* src/openvasad.c (main): Separate logging setup for command line and
	daemon cases, so that the command line invocation outputs to the standard
	streams.

	* src/oapd.c: Remove ovas-mngr-comm.h include.

2009-09-22  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c, src/oapd.c: In doc comments, put conditionals around macro
	function definitions and references to static functions.

	* src/openvasad.c: Remove server references from docs.

2009-09-22  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/tests/read_protocol_0.c: Switch to new openvas-libraries/omp names.
	Try create a user instead of a task.  (Missed in commit yesterday.)

2009-09-21  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/tests/oap_bogus_1.c, src/tests/oap_get_version_0.c,
	src/tests/timeout_0.c, src/tests/oap_help_0.c,
	src/tests/oap_delete_user_0.c, src/tests/oap_get_users_0.c,
	src/tests/oap_commands_0.c, src/tests/oap_create_user_0.c: Switch to new
	openvas-libraries/omp names.

	* src/tests/read_protocol_0.c: Switch to new openvas-libraries/omp names.
	Try create a user instead of a task.

	* src/tests/common.c (setup_test): Set g_log_default_log_handler to
	openvas_log_func.

2009-09-18  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/oap.c (oap_xml_handle_start_element): Enable current_credentials
	assertion.

2009-09-18  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad_log_conf.cmake_in: Match time prepend formats to
	openvas-libraries.
	(ad   file, ad string, libopenvas, libnasl, openvasd): Remove.
	(*): Add %t to prepend, to match other entries.  Add level of 128.

	* src/openvasad.c (main): Remove g_log_set_handler calls, as that's what
	setup_log_handlers does.  Rename NESSUS_ENCAPS_TLSv1 to
	OPENVAS_ENCAPS_TLSv1.

2009-09-18  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/tests/oap_get_users_0.c (users, user): Remove.  Old variables.

2009-09-18  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad.c (serve_client): Switch to library session creating
	functions.

	* src/ovas-mngr-comm.c, src/ovas-mngr-comm.h: Remove.  Use new library
	functions instead.

	* src/CMakeLists.txt: Remove ovas-mngr-comm library.

2009-09-18  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/openvasad.c (OPENVASAD_PORT): Set to 9393.
	(main): Enable service name lookup.  Set administrator_port instead of
	administrator_address.sin_port when	generating the port, otherwise the
	value is overwritten later.

2009-09-17  Matthew Mundell <matthew.mundell@greenbone.net>

	Move actual admin work to new internal library "admin".  Add OAP
	CREATE_USER, DELETE_USER and GET_USERS.

	* src/admin.c, src/admin.h: New files.  Library for server administration.
	* src/CMakeLists.txt: Add admin library.

	* src/oapd.c (init_oapd): Add users_dir arg.  Update caller.
	* src/oapd.h: Update header.

	* src/openvasad.c (print_preference, print_user, print_user_text)
	(check_is_dir, remove_recurse, openvas_config_list_users)
	(openvas_config_list_all_prefs, print_preferences_xml, print_users_xml)
	(print_users_text): Remove.  Add to admin.c.
	(openvas_config_add_user, openvas_config_remove_user)
	(openvas_config_set_rules): Remove.  Add to admin.c as
	openvas_admin_add_user, openvas_admin_remove_user and
	openvas_admin_set_rules.  Change openvas_admin_add_user to take the rules
	as a string.  Update calls to these functions.
	(silence_messages): Remove.

	* src/oap.c (users_dir, current_string_1, current_string_2)
	(current_string_3): New variables.
	(client_state_t): Enable remaining states.
	(help_text): Correct command descriptions.
	(oap_xml_handle_start_element, oap_xml_handle_end_element)
	(oap_xml_handle_text): Handle new commands.
	(init_oap): Set users_dir from new arg.
	* src/oap.h: Update init_oap header.

	* src/tests/oap_create_user_0.c, src/tests/oap_delete_user_0.c,
	src/tests/oap_get_users_0.c: New files.  Tests.

	* src/tests/CMakeLists.txt: Add oap_create_user_0, oap_delete_user_0 and
	oap_get_users_0.

	* src/tests/oap_help_0.c: Update help string.

2009-09-17  Matthew Mundell <matthew.mundell@greenbone.net>

	* src/tests/CMakeLists.txt (OVAS_LDFLAG): Remove -lopenvas_omp.

2009-09-17  Matthew Mundell <matthew.mundell@greenbone.net>

	* ChangeLog: Switch old entry to full address.

2009-09-16  Matthew Mundell <matthew.mundell@greenbone.net>

	Add foundations of daemon.

	* src/oap.c, src/oapd.c, src/oxpd.c, src/types.h, src/oap.h, src/oapd.h,
	src/oxpd.h, src/ovas-mngr-comm.c, src/ovas-mngr-comm.h, src/tracef.h,
	src/logf.h, src/openvasad_log_conf.cmake_in, src/splint.h: New files.

	* src/tests: New directory.

	* src/tests/CMakeLists.txt, src/tests/common.c, src/tests/common.h: New
	files.  Test support.

	* src/tests/oap_authenticate_0.c, src/tests/oap_bogus_0.c,
	src/tests/oap_bogus_1.c, src/tests/oap_commands_0.c, src/tests/oap_help_0.c,
	src/tests/timeout_0.c, src/tests/read_protocol_0.c, src/tests/oap_help_1.c,
	src/tests/oap_get_version_0.c: New files.  Tests.

	* src/openvasad.c: Add daemon mode based on openvas-manager.  Move helper
	functions up to save having protos.  Add pages.  Shorten some long lines.
	(OPENVASAD_DEFAULT_PORT, MAX_BUF, DH_BITS, x509_cred, dh_params)
	(initialize_tls_session, generate_dh_params): Remove.
	(PROGNAME, OPENVASAD_VERSION, OPENVAS_OS_NAME, SERVERCERT, SERVERKEY)
	(CACERT, OPENVASAD_PORT, MAX_CONNECTIONS): New defines.
	(administrator_socket, administrator_address, log_stream)
	(ovas_server_context): New variables.
	(serve_client, accept_and_maybe_fork, cleanup, handle_sigterm)
	(handle_sighup, handle_sigint): New functions.
	(main): Add --foreground, --listen and --port options.  Use the libraries
	logging facility.  When a command is given exit imediately after the
	command.  Replace the existing daemon outline with code from the manager.

	* src/CMakeLists.txt: Enable testing.  Create and install log config.
	Pass through OPENVAS_SYSCONF_DIR and OPENVAS_PID_DIR.
	(oap, ovas-mngr-comm): New libs.

	* CMakeLists.txt: Set project language to C, otherwise building requires a
	C++ compiler.  Add CMP0005 policy.  Set build type to "debug" so that
	symbols are available, at least during initial development.  Setup
	OPENVAS_SYSCONF_DIR.  Enable testing.

2009-09-16  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* VERSION: Set to 0.1.4.SVN.

	* doc/Doxyfile, doc/Doxygen_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

2009-09-16  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.1.3 release.

	* VERSION: Set to 0.1.3.

	* doc/Doxyfile, doc/Doxygen_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

2009-09-16  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasad.c (main): Downgraded "missing rules" message from
	g_warning to g_message to stay consistent with other message levels.

2009-09-15  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>

	* src/openvasad.c (print_user_text, print_users_text): New.
	Prints the user list as plain text.
	(main): Add parameter "--account" to specify user name
	and password as a single parameter. For list_users
	now as a default print the plain text version.

2009-09-14  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* src/openvasad.c: Fixed include path. Paths to openvas-specific headers
	are given by libopenvas-config, thus no "openvas" folder has to be
	specified. Before change, did not build when openvas-libraries was
	installed with custom prefix.

2009-09-14  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* doc/CMakeLists.c, src/openvasad.c, src/CMakeLists.txt, CMakeLists.txt:
	Changed openvascd to openvasad.

2009-09-14  Felix Wolfsteller <felix.wolfsteller@greenbone.net>

	* README, CMakeLists.txt, doc/Doxyfile, doc/Doxyfile_full,
	doc/CMakeLists.txt, src/CMakeLists.txt: Renamed openvas-config-manager
	to openvas-administrator in text and comments, updated instructions
	(there is no module openvas-libnasl anymore).

	* src/openvascd.c, src/openvasad.c: Moved file (from openvascd to
	openvasad).

2009-09-07  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvascd.c (openvas_config_add_user): Improved error recovery;
	openvascd will now remove the probably broken or empty user directory
	if there was an error during user creation.

2009-09-04  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvascd.c (openvas_config_list_users): Add support for listing
	users authenticating with certificates.

2009-09-04  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/CMakeLists.txt: Gather OpenVAS LDFLAGS and CFLAGS dynamically.

2009-07-14  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* VERSION: Set to 0.1.3.SVN.

	* doc/Doxyfile, doc/Doxygen_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

2009-07-14  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.1.2 release.

	* VERSION: Set to 0.1.2.

	* doc/Doxyfile, doc/Doxygen_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

	* packaging/debian/changelog: Updated, added missing entry.

	* packaging/debian/control: Corrected dependencies.

2009-07-14  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvasd.c: Added missing documentation.
	(main): Resolved SA macro to improve readability.

2009-07-11  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvascd.c (openvas_config_add_user): Create OPENVAS_USERS_DIR
	if it does not exist already.

2009-06-19  Michael Wiegand <michael.wiegand@greenbone.net>

	* CMakeLists.txt: Make it possible to set different prefixes for
	individual directories; this is expected by Debian.

2009-06-18  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* VERSION: Set to 0.1.2.SVN.

	* doc/Doxyfile, doc/Doxygen_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number.

2009-06-18  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.1.1 release.

	* packaging/debian/*: New. Initial Debian packaging support.

	* VERSION: Set to 0.1.1.

	* doc/Doxyfile, doc/Doxygen_full: Updated PROJECT_NUMBER.

	* CMakeLists.txt: Updated version number. Made source package naming
	consistent with other modules and as expected by Debian.

	* CHANGES: Updated.

2009-05-29  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvascd.c: Small bugfix.
	(openvas_config_add_user): Create empty rules file if there are no rules
	defined since openvasd expects a rules file for every user.

2009-05-19  Matthew Mundell <matthew.mundell@greenbone.net>

	Move authentication facilities to libopenvas.

	* src/openvascd.c: Include openvas/openvas_auth.h.
	(digest_hex, get_password_hashes): Remove.  Now in libopenvas.

	* CMakeList.txt (openvascd): Link to libopenvas.

2009-05-11  Michael Wiegand <michael.wiegand@greenbone.net>

	Added source code documentation infrastructure.

	* doc/: New directory for documentation.

	* doc/CMakeList.txt: New. Adds new targets doc and doc-full.

	* doc/Doxyfile: New. Doxygen configuration file for generating standard
	documentation.

	* doc/Doxygen_full: New. Doxygen configuration file for generating more
	verbose documentation with call graphs.

	* doc/footer.html: New.

	* src/openvascd.c: Added mainpage section for the documentation. Fixed
	Doxygen errors.

	* CMakeList.txt: Exposed doc/ subdirectory.

2009-05-06  Michael Wiegand <michael.wiegand@greenbone.net>

	Post release version bump.

	* VERSION: Set to 0.1.1.SVN.

	* CMakeLists.txt: Adjusted CPACK_PACKAGE_VERSION.

2009-05-06  Michael Wiegand <michael.wiegand@greenbone.net>

	Preparing for the 0.1.0 release.

	* VERSION: Set to 0.1.0.

	* CMakeLists.txt: Adjusted CPACK_PACKAGE_VERSION.

	* CHANGES: New.

2009-05-06  Michael Wiegand <michael.wiegand@greenbone.net>

	* CMakeLists.txt: Added initial support for creating source and binary
	packages with CPack.

2009-05-05  Michael Wiegand <michael.wiegand@greenbone.net>

	Added support for setting user rules. Functionality for adding and
	deleting users and setting user rules is now exposed via the Command
	Line Interface. Improved message handling. Minor reformatting and
	cleanup.

	* src/openvascd.c: (main) Expose new functionality to the command line
	parser. Make sure pointers are correctly initialized. Reverted exposure
	of daemon functionality in preparation for the upcoming release. Handle
	the verbose (-v) flag by suppressing the output of debug messages
	unless this flag is set. (openvas_config_add_user) Adjusted function
	definition. Reworked variable allocation and freeing. Don't create a
	rules directory since it is supposed to be a file.
	(openvas_config_remove_user) Adjusted function definition. Make sure
	allocated memory is freed. (openvas_config_set_rules) New. Sets the
	rules for an existing user. (silence_messages) New. Empty convenience
	function to suppress log messages.

2009-04-30  Michael Wiegand <michael.wiegand@greenbone.net>

	Added preliminary support for removing users. This functionality is
	currently not exposed pending the implementation of XML parsing.

	* src/openvascd.c: (openvas_config_add_user) Free error pointer in the
	correct place, don't attempt to free an empty error.
	(openvas_config_remove_user) New. This function will remove a user from
	the OpenVAS installation. (remove_recurse) New. Helper function to
	recursively remove user directories. (check_is_dir) New. Helper function
	to determine whether a file is a directory or not.

2009-04-29  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvascd.c: Housekeeping commit. (openvas_config_list_users,
	openvas_config_list_all_prefs) Narrow down variable scopes. Make sure
	all used memory is freed. Make sure variables are initialized with a
	sane value. Improved flow.

	* ChangeLog: Fixed typos.

2009-04-29  Michael Wiegand <michael.wiegand@greenbone.net>

	Added preliminary support for adding users. This functionality is
	currently not exposed pending the implementation of XML parsing.

	* src/openvascd.c: Added include for glib/gstdio.h since it is necessary
	for glib file operations, added include for gcrypt.h since it is
	necessary for message digest calculation. (openvas_config_list_users)
	Added TODO for non-password users. (openvas_config_add_user) New. This
	function will add a new user to the OpenVAS installation. (digest_hex)
	New. Convenience function to get the hexadecimal representation of a
	message digest. (get_password_hashes) New. This function generates a
	pair of hashes for the authentication process implemented by openvasd.

2009-04-24  Michael Wiegand <michael.wiegand@greenbone.net>

	* src/openvascd.c (openvas_config_list_all_prefs): Changed config file
	parsing to use g_key_file functionality provided by glib. Note that this
	make a slight change to the openvasd.conf necessary: A line containing
	"[OpenVAS]" has to be inserted before any line containing preferences.

	* ChangeLog: Fixed missing TLDs in mail addresses.

2009-04-24  Michael Wiegand <michael.wiegand@greenbone.net>

	Added daemon functionality to openvascd. openvascd will now start as
	GnuTLS server when started with the -d option.

	* src/openvascd.c: (print_preference, print_user) The convenience
	functions no longer print the output to stdout but collect them in a
	GString. (main) Added support for daemon mode. Made output more
	consistent, output now uses XML exclusively. (print_preferences_xml,
	print_users_xml) Added functions to create ocp_response elements.
	(initialize_tls_session, generate_dh_params) Added GnuTLS support
	functions.

	* CMakeLists.txt: Make sure OPENVAS_SERVER_CERTIFICATE,
	OPENVAS_SERVER_KEY and OPENVAS_CA_CERTIFICATE are available when
	compiling. Added link flag for GnuTLS.

2009-04-22  Michael Wiegand <michael.wiegand@greenbone.net>

	Added support for retrieving server preferences (new command:
	list_all_prefs).

	* src/openvascd.c: (print_preference, print_user) Added convenience
	functions to produce XML output. (main) Added support for new
	list_all_prefs command; changed list_users to use g_slist_foreach();
	removed superfluous debug message. (openvas_config_list_users) Don't
	throw an error if the user_dir cannot be opened, returning NULL is
	enough; added a note that the GSList returned by this function should be
	freed when no longer needed. (openvas_config_list_all_prefs) New.

	* CMakeLists.txt: Set a sane default value for OPENVAS_CONFIG_FILE in
	case the user does not supply a config_file.

	* src/CMakeLists.txt: Use OPENVAS_CONFIG_FILE definition when compiling
	openvascd.c.

2009-04-22  Michael Wiegand <michael.wiegand@greenbone.net>

	Initial import of the openvas-configuration-manager module.

	* CMakeLists.txt: New.

	* COPYING: New.

	* README: New.

	* VERSION: New.

	* src/CMakeLists.txt: New.

	* src/openvascd.c: New.
