2009-12-21  Michael Wiegand <michael.wiegand@intevation.de>

	Preparing for the 0.4.0 release.

	* CMakeLists.txt: Updated version number.

	* CHANGES: Updated.

2009-12-21  Michael Wiegand <michael.wiegand@intevation.de>

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

2009-12-17  Michael Wiegand <michael.wiegand@intevation.de>

	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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	* 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@intevation.de>

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

2009-12-08  Michael Wiegand <michael.wiegand@intevation.de>

	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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	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@intevation.de>

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

2009-11-27  Felix Wolfsteller <felix.wolfsteller@intevation.de>

	* CMakeLists.txt: Made wording more consistent.

2009-11-27  Felix Wolfsteller <felix.wolfsteller@intevation.de>

	* 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@intevation.de>

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

2009-11-26  Felix Wolfsteller <felix.wolfsteller@intevation.de>

	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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	* 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@intevation.de>

	* 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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	* 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@intevation.de>

	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@intevation.de>

	* 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@intevation.de>

	* 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@intevation.de>

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

2009-09-25  Matthew Mundell <matthew.mundell@intevation.de>

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

2009-09-25  Matthew Mundell <matthew.mundell@intevation.de>

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

2009-09-25  Matthew Mundell <matthew.mundell@intevation.de>

	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@intevation.de>

	* 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@intevation.de>

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

2009-09-23  Matthew Mundell <matthew.mundell@intevation.de>

	* 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@intevation.de>

	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@intevation.de>

	* 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@intevation.de>

	* 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@intevation.de>

	* 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@intevation.de>

	* 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@intevation.de>

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

2009-09-18  Matthew Mundell <matthew.mundell@intevation.de>

	* 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@intevation.de>

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

2009-09-18  Matthew Mundell <matthew.mundell@intevation.de>

	* 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@intevation.de>

	* 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@intevation.de>

	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@intevation.de>

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

2009-09-17  Matthew Mundell <matthew.mundell@intevation.de>

	* ChangeLog: Switch old entry to full address.

2009-09-16  Matthew Mundell <matthew.mundell@intevation.de>

	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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	* 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@intevation.de>

	* 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@intevation.de>

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

2009-09-14  Felix Wolfsteller <felix.wolfsteller@intevation.de>

	* 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@intevation.de>

	* 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@intevation.de>

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

2009-09-04  Michael Wiegand <michael.wiegand@intevation.de>

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

2009-07-14  Michael Wiegand <michael.wiegand@intevation.de>

	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@intevation.de>

	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@intevation.de>

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

2009-07-11  Michael Wiegand <michael.wiegand@intevation.de>

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

2009-06-19  Michael Wiegand <michael.wiegand@intevation.de>

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

2009-06-18  Michael Wiegand <michael.wiegand@intevation.de>

	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@intevation.de>

	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@intevation.de>

	* 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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	Post release version bump.

	* VERSION: Set to 0.1.1.SVN.

	* CMakeLists.txt: Adjusted CPACK_PACKAGE_VERSION.

2009-05-06  Michael Wiegand <michael.wiegand@intevation.de>

	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@intevation.de>

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

2009-05-05  Michael Wiegand <michael.wiegand@intevation.de>

	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@intevation.de>

	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@intevation.de>

	* 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@intevation.de>

	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@intevation.de>

	* 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@intevation.de>

	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@intevation.de>

	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@intevation.de>

	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.
