2011-03-03 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 4.0.3 release. * CHANGES: Updated. 2011-03-02 Chandrashekhar B <bchandra@secpod.com> * nasl/nasl_wmi.c (nasl_wmi_connect, nasl_wmi_connect_reg, nasl_wmi_connect_rsop): Fixed an issue with fetching IP string from the struct * nasl/nasl_smb.c (nasl_smb_connect): Fixed an issue with fetching IP string from the struct. 2011-03-01 Michael Wiegand <michael.wiegand@greenbone.net> * misc/arglists.c (str2arglist): Fix handling of input string. Inserting null bytes into the string caused resulting arglists to end prematurely. 2011-02-23 Michael Wiegand <michael.wiegand@greenbone.net> Post release version bump. * CMakeLists.txt: Set version to 4.0.3. 2011-02-23 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 4.0.2 release. * CHANGES: Updated. 2011-02-23 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * doc/example.auth.conf: Fixed parameter name as spotted by Michael Wiegand. 2011-02-23 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * doc/example.auth.conf: Corrected comment about which parameter to pass to cmake in order to compile libraries with LDAP-support. Switch example to "enable" keyword. 2011-02-22 Michael Wiegand <michael.wiegand@greenbone.net> * CMakeLists.txt: Ensure that tools/openvas-lsc-rpm-creator.sh gets installed to the location OpenVAS Manager expects it to be. 2011-02-21 Michael Wiegand <michael.wiegand@greenbone.net> Post release version bump. * CMakeLists.txt: Set version to 4.0.2. 2011-02-21 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 4.0.1 release. * CHANGES: Updated. 2011-02-16 Michael Wiegand <michael.wiegand@greenbone.net> * misc/openvas_auth.c (openvas_is_user_admin): Make check for administrative privileges stricter; isadmin is expected to be a regular file. 2011-02-15 Chandrashekhar B <bchandra@secpod.com> * misc/pcap.c (v6_getinterfaces): Fixed a segfault issue when null ifaddrs struct is encountered. 2011-02-08 Michael Wiegand <michael.wiegand@greenbone.net> * CMakeLists.txt: Replace call to deprecated exec_program with execute_process. 2011-02-07 Michael Wiegand <michael.wiegand@greenbone.net> * doc/wmi-howto.txt: Fix date. 2011-02-07 Michael Wiegand <michael.wiegand@greenbone.net> Further consolidation: Move common checks in submodules to top-level CMakeLists.txt so they are only executed once. Improve pkg-config support. * hg/CMakeLists.txt, base/CMakeLists.txt, nasl/CMakeLists.txt, misc/CMakeLists.txt, omp/CMakeLists.txt: Remove checks for glib and gpgme flags since they are now done by the top-level CMakeLists.txt. * CMakeLists.txt: Make sure flags for glib and gpgme are set. Add gpgme flags to EXTRA_LIBS and EXTRA_CFLAGS so pkg-config sees them. * libopenvas.pc.in: Add EXTRA_LIBS and EXTRA_CFLAGS to care for libraries which are not yet pkg-config compliant. 2011-02-04 Matthew Mundell <matthew.mundell@greenbone.net> * misc/openvas_logging.c (openvas_log_func): Correct typo in format. 2011-02-03 Michael Wiegand <michael.wiegand@greenbone.net> Post release version bump. * CMakeLists.txt: Set version to 4.0.1. 2011-02-03 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 4.0.0 release. * CHANGES: Updated. * CMakeLists.txt: Updated. 2011-02-03 Michael Wiegand <michael.wiegand@greenbone.net> * CMakeLists.txt: Attempt to detect whether we are installing on a 32 or 64 bit system and set LIBDIR accordingly. 2011-02-03 Michael Wiegand <michael.wiegand@greenbone.net> * doc/wmi-howto.txt: Updated to match new wmi version and new patch. 2011-02-02 Michael Wiegand <michael.wiegand@greenbone.net> Switch libwmiclient detection to pkg-config. * CMakeLists.txt: Use pkg_check_modules to find libwmiclient. * nasl/CMakeLists.txt: Use WMICLIENT_FOUND instead of HAVE_WMI as an indicator for the presence of libwmiclient. 2011-02-02 Michael Wiegand <michael.wiegand@greenbone.net> Install openvas-services into the correct location according to the FHS. * CMakeLists.txt: Install openvas-services to OPENVAS_DATA_DIR instead of OPENVAS_STATE_DIR. * misc/CMakeLists.txt: Define OPENVAS_DATA_DIR if it is set OPENVAS_DATA_DIR. * misc/services.h: Update define so OPENVAS_SERVICES points to the correct location. 2011-02-02 Michael Wiegand <michael.wiegand@greenbone.net> Move installation of openvas-services file from openvas-scanner to openvas-libraries since the only function using it resides in openvas-libraries. * openvas-services: New. Was openvas-scanner/openvas-services. * CMakeLists.txt: Add handling of openvas-services. 2011-02-01 Michael Wiegand <michael.wiegand@greenbone.net> * INSTALL: Improved example as suggested by Felix Wolfsteller. 2011-02-01 Michael Wiegand <michael.wiegand@greenbone.net> Add/resurrect pkg-config support to openvas-libraries and remove now obsolete libopenvas-config infrastructure. * tools/libopenvas-config.in: Removed. * doc/libopenvas-config.1: Removed. * libopenvas.pc.in: New. Template for pkg-config metadata file for openvas-libraries. * CMakeLists.txt: Move checks for glib and gnutls to pkg-config. Remove handling of libopenvas-config. Add handling of libopenvas.pc. * INSTALL: Update requirements. Add hint on setting PKG_CONFIG_PATH. 2011-01-28 Michael Wiegand <michael.wiegand@greenbone.net> * base/settings.c: Adapt settings handling to new openvas-scanner behaviour. (settings_init_from_file): New function to read setting from a file. (settings_init): Read settings directly from the output of "openvassd -s" now. (settings_save): Only write new or changed settings to the settings file. (init_settings_iterator_from_file): New function to initialize an iterator from a file. * base/settings.h: Updated. 2011-01-26 Michael Wiegand <michael.wiegand@greenbone.net> Post release version bump. * CMakeLists.txt: Set to 4.0+rc5. 2011-01-26 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 4.0+rc4 release. * CHANGES: Updated. 2011-01-26 Michael Wiegand <michael.wiegand@greenbone.net> Ensure that the command "libopenvas-config --version" returns a string in the expected format even when CPACK_PACKAGE_VERSION_PATCH indicates that this is a beta or rc version. * CMakeLists.txt: Define LIBOPENVASCONFIG_VERSION based on the contents of CPACK_PACKAGE_VERSION_PATCH. * tools/libopenvas-config.in: Use LIBOPENVASCONFIG_VERSION instead of OPENVASLIB_VERSION for the version display. 2011-01-26 Michael Wiegand <michael.wiegand@greenbone.net> * misc/network.c (write_stream_connection4): Fix format string in debug message. Spotted by Felix Wolfsteller. 2011-01-26 Michael Wiegand <michael.wiegand@greenbone.net> * README: Remove outdated information, redirect readers to the INSTALL file instead. 2011-01-25 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * INSTALL: Added hint on wmi cient library. * doc/wmi-howto.txt: Adpated to cmake messages and added note on library name. 2011-01-25 Stephan Kleine * omp/CMakeLists.txt, misc/CMakeLists.txt, hg/CMakeLists.txt: fix link_directories for out of source builds. 2011-01-25 Stephan Kleine * CMakeLists.txt: install man pages into proper directory. 2011-01-25 Christian Kuersteiner <ckuerste@gmx.ch> * misc/network.c (open_socket): Removed unnecessary parameter. 2011-01-25 Michael Wiegand <michael.wiegand@greenbone.net> * nasl/CMakeList.txt: Add option to ignore warnings regarding unprototyped calls in nasl/regex.c to fix the build process with recent versions of openSUSE. * INSTALL: Add section documenting compiler options. 2011-01-25 Michael Wiegand <michael.wiegand@greenbone.net> * doc/CMakeLists.txt: New. Added missing file required to build documentation. 2011-01-25 Michael Wiegand <michael.wiegand@greenbone.net> * nasl/CMakeList.txt: Fix linking of nasl libraries with other parts of openvas-libraries to fix build issue with newer cmake versions. 2011-01-20 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Post release version bump. * CMakeLists.txt: Set to 4.0+rc4 2011-01-20 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Quick fixes before release. * TODO: Removed. The last two entries are not of notable relevance anymore (AIX and module dependency problem). * CMakeLists.txt: Add libopenvas-config for CPack. 2011-01-20 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Preparing the openvas-libraries 4.0+rc3 release. * openvas_macros.cmake, openvas_cmake_macros: Renamed openvas_macros.cmake to openvas_cmake_macros to avoid confusion with temporary .cmake files and to avoid special treatment in the CMakeLists.txt for CPack. * libopenvas.pc.in: Removed. It is was yet another remains of the autotools time. * CHANGES: Updated. 2011-01-08 Matthew Mundell <matthew.mundell@greenbone.net> * base/openvas_file.c: Remove todos about moving into this module. 2011-01-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Fix rule saving for ldap authenticated users by ensuring existence of 2011-01-20 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/CMakeLists.txt: Pass OPENVASLIB_VERSION properly for compilation. * nasl/nasl_init.c (libsvars, nasl_version): Renamed VERSION to OPENVASLIB_VERSION. 2011-01-19 Matthew Mundell <matthew.mundell@greenbone.net> * misc/openvas_server.c (openvas_server_sendf_xml): New function, from gsa. * misc/openvas_server.h: Add header accordingly. * omp/omp.c (omp_create_target): Send with openvas_server_send_xml so that special chars in args are encoded. 2011-01-19 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/nasl_tcp.h, nasl/nasl_ip.h, nasl/nasl_udp.h, nasl/nasl_icmp.h: Removed. These don't add anything anymore. * nasl/nasl_raw.h: Include netinet componentd rather than the above header files that did include them. * nasl/nasl_init.c: Include nasl_raw.h (early as it sets some relevant makros). Dont't include nasl_tcp anymore. * COPYING: Updated. 2011-01-19 Matthew Mundell <matthew.mundell@greenbone.net> * misc/arglists.c (arg_set_name): New function. * misc/arglists.h: Add header accordingly. * misc/store.c (store_load_plugin): Convert any dependencies of file type "nes" to "nasl", now that all NESs are NASLs. 2011-01-19 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * CMakeLists.txt: Create installation directory for openvas sysconf (usually /etc/openvas/) 2011-01-19 Matthew Mundell <matthew.mundell@greenbone.net> * CMakeLists.txt (CPACK_PACKAGE_VERSION_PATCH): Remove "0". (CPACK_PACKAGE_VERSION0): Remove ".". * misc/CMakeLists.txt: Set PATCH_VERS to "0" if the patch version is missing. 2011-01-18 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/nasl_icmp.h: Removed code path for not HAS_ICMP_ICMP_LIFETIME. * hg/hg_dns_axfr.c: Activated code path for HAVE_NETINET_IN_H. * misc/plugutils.c (sig_n): Activated code path for HAVE_SIGACTION, removed code path for not HAVE_SIGACTION. * misc/proctitle.c: Activated code path for not HAVE_SETPROCTITLE. Activated code path for HAVE_VNSPRINTF. * misc/proctitle.h: Activated code path for not HAVE_SETPROCTITLE. * misc/share_fd.c: Activate code path for HAVE_SENDMSG, for HAVE_RECVMSG and for HAVE_CONTROL_IN_MSGHDR. Activate code for not HAVE_ACCRIGHTS_IN_MSGHDR. * misc/system.c: Activated code path for HAVE_MALLOC_H. * CMakeLists.txt: Added install directive for several directories. 2011-01-18 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * INSTALL: Updated to cmake build system and harmonized with other modules. 2011-01-18 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Resolving libvers.h.in. * include/, include/libvers.h.in: Removed. * misc/plugutils.c: Removed include of libvers.h. Harmonized macros for VERSION and version elements with CMakeLists.txt. * misc/CMakeLists.txt: Add transfer of version makros. * COPYING: Updated. 2011-01-18 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * include/libopenvas.h: Removed. It was no code in there anyway. * COPYING: Updated. 2011-01-18 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Resolving config.h. * include/config.h.in: Removed. * misc/pcap.c: Removed include of config.h. Remove conditional include of sys/sockio.h (HAVE_SYS_SOCKIO_H). (getinterfaces): Removed code paths for HAVE_SOCKADDR_SA_LEN, activated code path for HAVE_STRUCT_IFMAP. * misc/share_fd.c: Removed include of config.h. * nasl/nasl_tcp.h: Activated code path for HAVE_NETINET_TCP_H and for HAVE_STRUCT_TCPHDR. * nasl/nasl_ip.h: Activated code path for HAVE_NETINET_IP_H and for HAVE_STRUCT_TCPHDR. Deactivate code for HAVE_STRUCT_IP_CSUM. * nasl/nasl_udp.h: Activate code path for HAVE_STRUCT_UDPHDR. Deactivated code for not HAVE_BSD_STRUCT_UDPHDR. * nasl/nasl_icmp.h: Activate code patch for HAVE_NETINET_IP_ICMP_H and HAVE_STRUCT_ICMP. * nasl/regex.c: Removed include of config.h. Activate code for HAVE_STRING_H and HAVE_STDLIB_H. * COPYING: Updated. 2011-01-18 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c (omp_create_target): Separate credential arg into per protocol args. * omp/omp.h: Add header accordingly. 2011-01-18 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c (omp_create_target): Use new SSH_LSC_CREDENTIAL element instead of old LSC_CREDENTIAL. 2011-01-18 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * doc/example.auth.conf: Updated with more sensible values and additional comments. 2011-01-17 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * CMakeLists.txt: Install users directory. 2011-01-17 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * include/nvt_categories.h, misc/nvt_categories.h: Moved nvt_categories.h from include directory to misc directory as the include directory is going to be eliminated. Misc was the best match although in libraries it is only used in nasl. * misc/CMakeLists.txt: Install nvt_categories.h. 2011-01-17 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * CMakeLists.txt: Added test for wmiclient library. * tools/libopenvas-config.in: Cleaned up variable substitution to work with cmake. Removed egd handling. 2011-01-17 Matthew Mundell <matthew.mundell@greenbone.net> Remove standalone parts of builtin plugins, as they can be run standalone via the NASL wrappers. * nasl/nasl_builtin_openvas_tcp_scanner.c (read_sysctl_maxsysfd) (compute_min_max_cnx, usage, main): Remove. * nasl/nasl_builtin_synscan.c (scan): Set fallback port range for openvas-nasl. (plugin_run_synscan): Change time format string types to longs. (main): Remove. 2011-01-17 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * CMakeLists.txt: Added test for wmiclient library. * tools/libopenvas-config.in: Cleaned up variable substitution to work with cmake. Removed egd handling. 2011-01-17 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * CMakeLists.txt: Fixed sequence of lib build. 2011-01-16 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c (omp_authenticate, omp_create_task, omp_create_task_rc) (omp_create_config, omp_create_lsc_credential, omp_create_agent) (omp_delete_agent, omp_get_nvt_details_503): Print with g_markup_printf_escaped so that special chars in args are encoded. 2011-01-15 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * omp/CMakeLists.txt, misc/CMakeLists.txt, nasl/CMakeLists.txt, hg/CMakeLists.txt: Since these are not stand-alone cmake controls anymore, several parts were remove as they are part of the parent cmake control. * CMakeLists.txt: Added subdirectories omp, misc, nasl and hg. 2011-01-15 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * CMakeLists.txt: New. * base/CMakeLists.txt: Since this is not a stand-alone cmake control anymore, several parts were remove as they are part of the parent cmake control. 2011-01-14 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * VERSION.in: Use cmake makro. * doc/Doxyfile, doc/Doxyfile.in: Renamed Doxyfile to Doxyfile.in. * doc/Doxyfile_full, doc/Doxyfile_full.in: Renamed Doxyfile_full to Doxyfile_full.in. 2011-01-14 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * INSTALL_README, INSTALL: Renamed INSTALL_README to INSTALL to be consistent with other OpenVAS modules. * VERSION, VERSION.in: Renamed VERSION to VERSION.in to prepare cmake handling. * libopenvas-config.in, tools/libopenvas-config.in: Moved libopenvas-config.in into tools/ directory for consistency. * TODO: Removed entries about MANIFEST and configure.in as these files don't exists anymore. 2011-01-14 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Removing autotools build environment. * configure, configure.in, config.guess, config.sub, ltmain.sh, openvas-libraries.tmpl.in, MANIFEST, Makefile, .root-dir, aclocal.m4, install-sh: Removed. 2011-01-14 Matthew Mundell <matthew.mundell@greenbone.net> * misc/plugutils.c (plug_set_dep): Convert the dependency file type to "nasl" if it is "nes", now that all NESs are NASLs. 2011-01-14 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * MANIFEST, COPYING: Updated. 2011-01-14 Matthew Mundell <matthew.mundell@greenbone.net> * nasl/nasl_builtin_openvas_tcp_scanner.c (plugin_init): Remove. (plugin_run_openvas_tcp_scanner): Return NULL instead of 0. 2011-01-14 Matthew Mundell <matthew.mundell@greenbone.net> Add a NASL builtin command to replace the synscan NES NVT. * nasl/CMakeLists.txt: Add builtin openvas_tcp_scanner to FILES. * nasl/nasl_builtin_synscan.c: New file. A copy of openvas-scanner/cnvts/synscan/synscan.c, modified slightly for NASL caller. * nasl/nasl_builtin_plugins.h: Add header. * nasl/nasl_init.c (libfuncs): Add plugin_run_synscan. 2011-01-13 Matthew Mundell <matthew.mundell@greenbone.net> Add a NASL builtin command to replace the openvas_tcp_scanner NES NVT. * nasl/CMakeLists.txt: Add builtin openvas_tcp_scanner to FILES. Add maths lib to link libraries. * nasl/nasl_builtin_openvas_tcp_scanner.c: New file. A copy of openvas-scanner/cnvts/openvas_tcp_scanner/openvas_tcp_scanner.c, modified slightly for NASL caller. * nasl/nasl_builtin_plugins.h: Add header. * nasl/nasl_init.c (libfuncs): Add plugin_run_openvas_tcp_scanner. 2011-01-13 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c (openvas_auth_write_config): Changed defaults of certain ldap attribute names to more sensible values. 2011-01-13 Matthew Mundell <matthew.mundell@greenbone.net> * nasl/nasl_builtin_find_service.c (plugin_run_find_service): Remove tracing. 2011-01-13 Matthew Mundell <matthew.mundell@greenbone.net> Add a builtin version of the find_service C NVT, to replace the C version. Most of work by Jan-Oliver Wagner. * nasl/CMakeLists.txt: Use Greenbone addresses. Add builtin find_service to FILES. * nasl/nasl_builtin_find_service.c: New file. A copy of openvas-scanner/cnvts/find_service/find_service.c, modified slightly for NASL caller. * nasl/nasl_builtin_plugins.h: New file. * nasl/nasl_init.c (libfuncs): Add plugin_run_find_service. 2011-01-12 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c (openvas_is_user_admin): Return 1 also if a "remote admin" with the given username is found. 2011-01-12 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ldap_auth.c (ldap_auth_bind): Slightly improved log messages. 2011-01-12 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ldap_auth.c (ldap_auth_bind): Removed obsolete variable. Check return of ldap_initialize. 2011-01-10 Michael Wiegand <michael.wiegand@greenbone.net> Post release version bump. * VERSION: Set to 4.0.0.rc3.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2011-01-10 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 4.0+rc2 release. * VERSION: Set to 4.0.0.rc2. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. * CHANGES: Updated. 2011-01-08 Matthew Mundell <matthew.mundell@greenbone.net> * base/openvas_file.c: Remove todos about moving into this module. 2011-01-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Fix rule saving for ldap authenticated users by ensuring existence of rules directory. * misc/ldap_auth.c (ldap_auth_query_rules): Create users rules directory if it does not exist (previously done by openvas_auth_store_user_rules). Save rules also if none fetched (i.e. empty, default rules). 2011-01-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c (openvas_auth_store_user_rules): Clarify parameter documentation. 2011-01-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ldap_auth.c (user_dir_path): New function to determine user directory. (ldap_auth_query_rules, ldap_authenticate): Use new function. 2011-01-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c: Minimal structural improvement of module documentation. 2011-01-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c: Updated module documentation to include the possibility to use an ADS as remote authentication source. Removed todo comment about OPENVAS_USER_DIR, which is not used anymore. 2011-01-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c (openvas_auth_mkrulesdir): New function to create the directory where users rules are placed ("auth"). * misc/openvas_auth.h (openvas_auth_mkrulesdir): Proto for new function. 2011-01-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c (openvas_auth_store_user_rules): Removed use of temporary variable "auth_dir_name" wich became superflous in revision 9746, note in documentation that directory has to exist prior to function call. 2011-01-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c (openvas_auth_user_rules) (openvas_auth_user_uuid_rules): Removed one todo comment, precised one other brief comment. 2010-12-31 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ldap_auth.h, misc/ldap_auth.c (ldap_auth_query_role): Made a parameter const. 2010-12-20 Michael Wiegand <michael.wiegand@greenbone.net> Make sure function calls match the prototype for the function. Discovered by Stephan Kleine. * nasl/nasl_host.c (nasl_this_host): Adjust calls to socket_get_next_source_v4_addr and socket_get_next_source_v6_addr to match their prototypes. * misc/pcap.c (v6_getsourceip, getsourceip, v6_routethrough) (routethrough): Adjust calls to socket_get_next_source_addr, socket_get_next_source_v4_addr and socket_get_next_source_v6_addr to match their prototypes. 2010-12-20 Michael Wiegand <michael.wiegand@greenbone.net> Post release version bump. * VERSION: Set to 4.0.0.rc2.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-12-20 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 4.0+rc1 release. * VERSION: Set to 4.0.0.rc1. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. * CHANGES: Updated. 2010-12-20 Michael Wiegand <michael.wiegand@greenbone.net> * tools/openvas-macros.cmake: Removed outdated and unused CMake macros. 2010-12-17 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * TODO: Removed 2 old entries about header files that are solved meanwhile. 2010-12-17 Michael Wiegand <michael.wiegand@greenbone.net> * configure.in: Fix help string for --enable-cmake-release parameter. * configure: Regenerated. 2010-12-17 Michael Wiegand <michael.wiegand@greenbone.net> * INSTALL_README: Updated and rephrased a large part of the installation instruction, removed outdated information. 2010-12-17 Michael Wiegand <michael.wiegand@greenbone.net> * misc/openvas_auth.c (openvas_auth_store_user_rules): Removed superfluous call to g_mkdir_with_parents (). The "auth" directory already exists at this point and this call has been observed to behave badly when called in setuid binaries. 2010-12-10 Michael Wiegand <michael.wiegand@greenbone.net> Address compiler warnings from gcc 4.4 to ensure openvas-libraries compiles without warnings with newer compilers as well. * nasl/lsearch.c (lfind): Remove superfluous function which is also provided by glibc. * nasl/CMakeLists.txt: Add "-fno-strict-aliasing" to CFLAGS to silence warnings caused by macros defined in nasl/byteorder.h. * misc/share_fd.c (send_fd, recv_fd): Do not use CMSG_DATA macro to avoid double casting. * misc/ids_send.c (ids_send): Avoid casting between different types of sockaddr structs; use a union containing the different types instead. 2010-12-07 Michael Wiegand <michael.wiegand@greenbone.net> * INSTALL_README: Updated prerequisites. 2010-12-01 Michael Wiegand <michael.wiegand@greenbone.net> Post release version bump to 4.0+beta3.SVN. * VERSION: Set to 4.0.0.beta3.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-12-01 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 4.0+beta2 release. * VERSION: Set to 4.0.0.beta2. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. * CHANGES: Updated. 2010-11-26 Matthew Mundell <matthew.mundell@greenbone.net> * misc/openvas_server.c (openvas_server_free): Only shut down the local side of the session in the gnutls_bye, and remove the interrupted countdown. 2010-11-26 Matthew Mundell <matthew.mundell@greenbone.net> * misc/openvas_server.c (openvas_server_open, openvas_server_connect) (openvas_server_attach, openvas_server_send, openvas_server_new) (openvas_server_free): Make failure messages g_warnings, and trace messages g_debugs. 2010-11-26 Michael Wiegand <michael.wiegand@greenbone.net> Ensure the last commit actually compiles and does not produce warnings. * nasl/nasl_wmi.c: Added missing includes. (nasl_wmi_connect, nasl_wmi_connect_rsop, nasl_wmi_connect_reg): Call inet_ntoa () with a proper in_addr struct instead of trying to cast a uint32_t to it. * nasl/nasl_smb.c: Added missing includes. (nasl_smb_connect): Call inet_ntoa () with a proper in_addr struct instead of trying to cast a uint32_t to it. 2010-11-26 Sooraj KS <kssooraj@secpod.com> * nasl/nasl_wmi.c (wmi_connect, wmi_connect_rsop, wmi_connect_reg): removed host argument and fetch host internally. * nasl/nasl_smb.c (smb_connect): removed host argument and fetch host internally. * nasl/nasl_init.c: updated function declarations. 2010-11-26 Michael Wiegand <michael.wiegand@greenbone.net> * base/CMakeLists.txt, hg/CMakeLists.txt, misc/CMakeLists.txt, nasl/CMakeLists.txt, omp/CMakeLists.txt: Add a collection of code hardening flags to CMAKE_C_FLAGS, inspired by hardening-wrapper on Debian. 2010-11-26 Michael Wiegand <michael.wiegand@greenbone.net> * nasl/nasl_cmd_exec.c (nasl_fwrite): Check return value of call to ftruncate () and report an error if the call failed. 2010-11-26 Michael Wiegand <michael.wiegand@greenbone.net> * nasl/exec.c (exec_nasl_script): Removed superfluous use of chdir (). 2010-11-26 Michael Wiegand <michael.wiegand@greenbone.net> * misc/pcap.c (getipv4routes, routethrough): Handle cases when opening /proc/net/route worked, but no content can be read. 2010-11-26 Michael Wiegand <michael.wiegand@greenbone.net> * misc/rand.c (openvas_init_random): Check return values of calls to fread () and fclose () and log a warning if something seems wrong with /dev/urandom. 2010-11-26 Michael Wiegand <michael.wiegand@greenbone.net> * misc/openvas_ssh_login.c (openvas_ssh_login_file_write): Check return value and return FALSE if the call to write () failed. * ChangeLog: Added missing function name to last entry. 2010-11-26 Michael Wiegand <michael.wiegand@greenbone.net> * misc/network.c (renice_myself): Addressed compiler warning and catch result of call to nice (). Added todo for checking the return value. 2010-11-24 Michael Wiegand <michael.wiegand@greenbone.net> * misc/ads_auth.c: Ensure strcasestr () is available by defining _GNU_SOURCE. Fixes a compiler warning when building with ENABLE_LDAP_AUTH. 2010-11-18 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/nasl_signature.c (nasl_get_pubkey): Moved memory allocation for key_string a bit more down to save one free(). Changed g_malloc to g_malloc0. Fixed efree() calls to use g_free and to release to correct pointer. 2010-11-18 Michael Wiegand <michael.wiegand@greenbone.net> * misc/CMakeLists.txt: Add services.h to the list of headers to be installed. 2010-11-18 Michael Wiegand <michael.wiegand@greenbone.net> Post release version bump to 4.0+beta2.SVN. * VERSION: Set to 4.0.0.beta2.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-11-18 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 4.0+beta1 release. * VERSION: Set to 4.0.0.beta1. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-11-17 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * CHANGES: Updated for 4.0+beta1. 2010-11-17 Michael Wiegand <michael.wiegand@greenbone.net> * hg/CMakeLists.txt, misc/CMakeLists.txt, nasl/CMakeLists.txt, omp/CMakeLists.txt: Add -Werror to compiler flags so that compiler warnings are now treated as errors. 2010-11-17 Michael Wiegand <michael.wiegand@greenbone.net> * misc/www_funcs.c (build_encode_URL): Addressed yet another compiler warning. Call inet_ntop () with a proper in_addr pointer instead of trying to cast a uint32_t to it. 2010-11-17 Preeti Subramanian <spreeti@secpod.com> * misc/ids_send.c (open_sock_tcp): Addressed compiler warnings. Changed src6 to instance of structure in6_addr. 2010-11-17 Michael Wiegand <michael.wiegand@greenbone.net> Addressed more 64 bit compiler warnings. * misc/openvas_server.c (openvas_server_send): Cast argument to int when using it to specify field precision. * omp/xml.c (read_entity_and_string): Cast argument to int when using it to specify field precision. 2010-11-17 Michael Wiegand <michael.wiegand@greenbone.net> Addressed two 64 bit compiler warnings. * misc/openvas_server.c (openvas_server_send): Use %zu for size_t. * omp/xml.c (read_entity_and_string): Cast to match format string. 2010-11-16 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/nasl_func.c (qsortcmp): Added this typedef to allow proper cast. (insert_nasl_func): Apply cast to qsortcmp for strcmp used in qsort. 2010-11-16 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/bpf_share.c (bpf_open_live): Lowered limit of for-loop by 1 because currently it would exceed the fixed field size. This is just from reading the code and because we got a compiler warning "array subscript is above array bounds". It is unclear how or whether there is any positive effect in practice at all. 2010-11-16 Michael Wiegand <michael.wiegand@greenbone.net> Addressed compiler warnings regarding uninitialized variables and unused functions. * nasl/nasl_packet_forgery_v6.c (forge_icmp_v6_packet): Make sure routersolicit, routeradvert, neighborsolicit and neighboradvert are initialized before use. * hg/hg_add_hosts.c (hg_add_ipv6host_with_options): Addressed TODO, ensure c_hostname is initialized before use. * misc/openvas_logging.c (openvas_syslog_func): Removed superfluous function, logging to syslog is now handled by openvas_log_func. (openvas_log_func): Ensure log_domain_entry is initialized before use. 2010-11-14 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * base/CMakeLists.txt: Removed accidental change in last commit. 2010-11-13 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/system.c (inet_aton): Removed this function. This function appears to be available on any relevant OpenVAS platform and thus we do not need a fall-back anymore. 2010-11-09 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/CMakeLists.txt: Changed install directory for headers of library "misc" from "openvas" to "openvas/misc". * nasl/nasl.h, hg/hosts_gatherer.h, misc/plugutils.h, nasl/nasl_debug.c: Adjusted include paths accordingly. 2010-11-09 Michael Wiegand <michael.wiegand@greenbone.net> New functions for network level scans as described in OpenVAS Change Request #49 (see http://www.openvas.org/openvas-cr-49.html). * nasl/nasl_scanner_glue.c (scan_phase, network_targets): New functions to retrieve the current scan phase and network targes from the KB. * nasl/nasl_scanner_glue.h: Updated. * nasl/nasl_init.c: Exposed new functions. 2010-11-07 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> This patch removes the use of arglist elements for storing NVT meta data. It is replaced by usng the NVTI structure. This lowers the overall memory footprint of the scanner. It is also intended that the use of the plug_set* and plug_get* commands is reduced in the scanner, removed entirely in the optimal case. * misc/plugutils.c (plug_set_nvti, plug_get_nvti): New. (plug_set_version, plug_get_version, plug_set_path, plug_get_path, plug_set_id, plug_get_oid, plug_get_oid, plug_set_cve_id, plug_get_cve_id, plug_set_bugtraq_id, plug_get_bugtraq_id, plug_set_xref, plug_get_xref, plug_set_tag, plug_get_tag, plug_set_sign_key_ids, plug_get_sign_key_ids, plug_set_family, plug_get_family, plug_require_key, plug_get_required_keys, plug_mandatory_key, plug_get_mandatory_keys, plug_exclude_key, plug_get_excluded_keys, plug_require_port, plug_get_required_ports, plug_require_udp_port, plug_get_required_udp_ports, plug_set_dep, plug_get_deps, plug_set_timeout, plug_get_timeout, plug_set_name, plug_get_name, plug_set_summary, plug_get_summary, plug_set_description, plug_get_description, plug_set_copyright, plug_get_copyright, plug_set_category, plug_get_category, add_plugin_preference): Set and get the data from the nvti object instead of using arglist elements. * misc/plugutils.h: Added nvti and new protos. * misc/store.c (store_load_plugin, store_plugin): Only handle the nvti obejct. 2010-10-27 Michael Wiegand <michael.wiegand@greenbone.net> Post branch version bump. * VERSION: Set to 3.2.0.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-10-26 Michael Wiegand <michael.wiegand@greenbone.net> Do not log errors when there are no errors. * nasl/nasl_scanner_glue.c (script_get_preference_file_content): Do not log an error if the content for files that were not uploaded could not be found. (script_get_preference_file_location): Do not log an error if the location of a file that was not uploaded could not be determined. 2010-10-26 Michael Wiegand <michael.wiegand@greenbone.net> * configure.in: Fix module name in error message. 2010-10-21 Matthew Mundell <matthew.mundell@greenbone.net> * base/array.c (array_free): Iterate using length, instead of depending on the caller to terminate the array. 2010-10-17 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Move arglist-related functions into module arglists. * misc/arglists.c (arglist2str, str2arglist): New. * misc/arglists.h: Added protos accordingly. * misc/store.c (arglist2str, str2arglist): Removed. 2010-10-14 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Drop over 3500 lines of code by replacing a last use of the hlst and harglists code. * nasl/nasl_socket.c (struct udp_record): New. Stores a udp record with length information to be used for hashtable. (add_udp_data, get_udp_data, rm_udp_data): Replace the whole implementation of harglists by glib's hashtable. * nasl/nasl.c: Removed include of harglists.h. * misc/hlst.c, misc/hlst.h, misc/harglists.c, misc/harglists.h: Removed. * misc/CMakeLists.txt: Removed handling of modules hlst and harglist. * COPYING, MANIFEST: Removed entries for harglist and hlst. 2010-09-28 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c (omp_start_task_report, omp_resume_or_start_task_report) (omp_resume_or_start_task): Return 1 on OMP failure. (omp_start_task): Doc return value. (omp_get_system_reports): New function. * omp/omp.h: Add header accordingly. * omp/xml.c (xml_count_entities): New function. * omp/xml.h: Add header accordingly. 2010-09-16 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c (omp_get_targets): New function. * omp/omp.h: Add header accordingly. 2010-09-14 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c (omp_get_rules_503): Remove. Pre OMP 1.0 command. (omp_get_report_format): Match GET_REPORTS call to Manager trunk. (omp_get_nvt_details_503): Remove timeout attribute, which requires a config attribute. * omp/omp.h: Remove header accordingly. 2010-09-14 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c (omp_create_task): Pass IDs in OMP. Read response with omp_read_create_response. (omp_read_create_response, omp_pause_task, omp_resume_paused_task) (omp_resume_stopped_task, omp_resume_stopped_task_report): New functions. (omp_wait_for_task_delete): Free entity after use. (omp_get_report): Add first_result_number argument. Match GET_REPORTS call to Manager trunk. (omp_get_results): New function. (omp_create_target): Add credential arg and UUID return arg. Use omp_read_create_response. (omp_delete_target, omp_delete_config): Use openvas_server_sendf. (omp_create_lsc_credential): Add password arg and UUID return arg. Use omp_read_create_response. (omp_delete_lsc_credential): Add UUID return arg. Use openvas_server_sendf. * omp/omp.h: Update headers accordingly. 2010-09-10 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * CHANGES: Fixed two typos. 2010-09-10 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Post release version bump. * VERSION: Set to 3.1.4.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-09-10 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Preparing the openvas-libraries 3.1.3 release. * CHANGES: Updated. * VERSION: Set to 3.1.3. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-09-05 Thomas Reinke <reinke@securityspace.com> * misc/store.c: kept memory management model consistent by using estrdup instead of g_strdup for arglists when freeing up is done with efree 2010-09-03 Thomas Reinke <reinke@securityspace.com> * misc/store.c: removed extra plug_set_family call 2010-09-03 Thomas Reinke <reinke@securityspace.com> * base/nvti.c: free memory allocated from use of glib routines 2010-08-23 Michael Wiegand <michael.wiegand@greenbone.net> * misc/share_fd.c: Add missing includes to make sure all neccessary defines are indeed defined and recv_fd operates properly. 2010-08-11 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c (omp_get_report, omp_get_report_format): Temporarily pass format to GET_REPORTS again, to remain compatible with Manager 1.0. 2010-08-10 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c (omp_get_report, omp_get_report_format): Pass format_id instead of format to GET_REPORTS. Note bad name. 2010-08-06 Chandrashekhar B <bchandra@secpod.com> * nasl/nasl_wmi.c (nasl_wmi_connect_reg, nasl_wmi_connect_rsop): namespace argument is not required for these two functions, removed. 2010-08-04 Michael Wiegand <michael.wiegand@greenbone.net> Post release version bump. * VERSION: Set to 3.1.3.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-08-04 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 3.1.2 release. * CHANGES: Updated. * VERSION: Set to 3.1.2. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. * nasl/wmi_interface_stub.c: Fixed incorrect function name in WMI interface stub which caused the build to fail when compiled without WMI. 2010-08-03 Michael Wiegand <michael.wiegand@greenbone.net> Post release version bump. * VERSION: Set to 3.1.2.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-08-03 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 3.1.1 release. * CHANGES: Updated. * VERSION: Set to 3.1.1. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-08-03 Michael Wiegand <michael.wiegand@greenbone.net> * base/CMakeLists.txt, hg/CMakeLists.txt: Make messages printed during the build process even more consistent. Inconsistency spotted by Felix Wolfsteller. 2010-08-03 Michael Wiegand <michael.wiegand@greenbone.net> * doc/wmi-howto.txt: Updated WMI documentation. 2010-08-03 Michael Wiegand <michael.wiegand@greenbone.net> Updated WMI infrastructure. * nasl/nasl_wmi.c (nasl_wmi_connect, nasl_wmi_connect_rsop) (nasl_wmi_connect_rsop): Adjusted WMI function calls to new patch API based on work done by Chandrashekhar B. * nasl/openvas_wmi_interface.h: Updated prototypes. * nasl/CMakeLists.txt: Include "wmiclient" in target_link_libraries if it is present. * nasl/wmi_interface_stub.c: Adjusted to new patch API. 2010-07-28 Michael Wiegand <michael.wiegand@greenbone.net> * base/CMakeLists.txt, hg/CMakeLists.txt, misc/CMakeLists.txt, nasl/CMakeLists.txt: Make messages printed during the build process more consistent. Removed superfluous and wrongly placed messages. 2010-07-28 Michael Wiegand <michael.wiegand@greenbone.net> * nasl/CMakeLists.txt: Removed duplicate calls to external programs, consolidated calls in one place. Moved the setting of link_directories up to ensure it is set before the first target_link_libraries call. 2010-07-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/nasl_icmp.h, nasl/nasl_ip.h, nasl/nasl_raw.h, nasl/nasl_tcp.h, nasl/nasl_udp.h: Added missing header with author, copyright and license. Since this header file was part of libnasl, the full header of libnasl/nasl/capture_packet.c is used as a typical representative of this module. * nasl/proto.h: Added missing header. Copied from ntlmssp.h. * COPYING: Completed. 2010-07-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/smb_crypt.h: Added missing header with author, copyright and license. Since this header file was developed for smb_crypt.c the full header of smb_crypt.c is used for smb_crypt.h as well. * nasl/smb_signing.h: Added missing header with author, copyright and license. Since this header file was developed for smb_signing.c the full header of smb_signing.c is used for smb_signing.h as well. * nasl/tests/Makefile, nasl/tests/signed.nasl, nasl/tests/test_script_signing.sh: Added missing header. 2010-07-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * COPYING.BSD3: New. * nasl/md4.h: Added missing header with author, copyright and license. Since this header file was developed for md4.c the full header of md4.c is used for md4.h as well. * nasl/md5.h: Added missing header with author, copyright and license. Since this header file was developed for md5.c the full header of md5.c is used for md5.h as well. * nasl/nasl.h: Added missing header with author, copyright and license. Since this header file was developed for nasl.c the full header of nasl.c is used for nasl.h as well. * MANIFEST: Updated. 2010-07-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * configure: Updated. 2010-07-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> This patch removes the config.h file of nasl which was a static version derived from the previous libnasl module. It contained static settings like LINUX=1 and therfore likely caused trouble on various systems that differ from the system where the static file was created (Debian "Lenny" 5.0). Any macro not occuring in nasl/* was not considered for the migration to the config.h in include/. * include/config.h.in: Added some sizes as needed for nasl. * configure.in: Added various checks as needed for nasl. * nasl/config.h: Removed. This work-around static config.h is not needed anymore. * MANIFEST: Updated. 2010-07-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * COPYING: Added more entries. List is still incomplete. 2010-07-25 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * COPYING.BSD2: New. * MANIFEST: Updated. 2010-07-25 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/rand.h: Added missing header with author, copyright and license. Since this header file was developed for rand.c the full header of rand.c is used for rand.h as well. 2010-07-25 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * COPYING: New. Summary of licenses for each file of this package. First part - not complete yet. 2010-07-25 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Added license information for module "proctitle". I searched the "LICENSE" file of LPRng and found this: "* You may use "LPRng" or "IFHP" under either the terms of the GNU GPL License or the Artistc License. These licenses are included below. The licenses were obtained from the http://www.opensource.org web site on 28 Aug 2003". So, the files are actually GPLv2. * misc/proctitle.c, misc/proctitle.h: Added clearifying license note. 2010-07-25 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/ids_send.h: Added missing header with author, copyright and license. Since this header file was developed for ids_send.c the full header of ids_send.c is used for ids_send.h as well. 2010-07-24 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * COPYING: Renamed to COPYING.LGPLv2. * COPYING.LGPLv2: New. Former COPYING. * COPYING.GPLv2: New. * MANIFEST: Updated. 2010-07-15 Raimund Renkert <raimund.renkert@intevation.de> * base/CMakeLists.txt: Added crosscompile support for mingw32. 2010-07-14 Michael Wiegand <michael.wiegand@greenbone.net> Post-release version bump. * VERSION: Set to 3.1.1.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-07-14 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 3.1.0 release. * CHANGES: Updated. * VERSION: Set to 3.1.0. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-07-14 Michael Wiegand <michael.wiegand@greenbone.net> * tools/openvas-lsc-rpm-creator.sh: Updated with new version generated by ../tools/openvas-lsc-target-preparation. 2010-07-13 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c (omp_get_nvt_all): Switch to GET_NVTS. (omp_get_status): Align param. (omp_get_tasks): Add details arg. Update caller. (omp_get_report): Add s to command. (omp_get_nvt_details_503): Switch to GET_NVTS. * omp/omp.h: Update header accordingly. 2010-07-09 Michael Wiegand <michael.wiegand@greenbone.net> Make cmake environment more flexible as discussed on openvas-devel. * configure.in: Add new configuration options --enable-verbose-makefile and --enable-cmake-release and pass their values to the output files. * configure: Regenerated. * openvas-libraries.tmpl.in: Add new variables VERBOSE_MAKEFILE and BUILD_TYPE. * Makefile (all): Add VERBOSE_MAKEFILE and BUILD_TYPE to the calls to cmake. * base/CMakeLists.txt, hg/CMakeLists.txt, misc/CMakeLists.txt, nasl/CMakeLists.txt, omp/CMakeLists.txt: Set CMAKE_BUILD_TYPE only to "Debug" if it is not already set. Do not set CMAKE_VERBOSE_MAKEFILE, let it default to OFF. 2010-07-08 Matthew Mundell <matthew.mundell@greenbone.net> * misc/network.c (auth_printf): Increase buffer size, as the public keys included in OTP CERTIFICATES can be larger than 65535. 2010-07-07 Matthew Mundell <matthew.mundell@greenbone.net> * nasl/nasl_signature.c (nasl_get_pubkey): Terminate key_string. 2010-07-01 Michael Wiegand <michael.wiegand@greenbone.net> Post-release version bump. * VERSION: Set to 3.1.0.rc4.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-07-01 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 3.1.0.rc3 release. * CHANGES: Updated. * VERSION: Set to 3.1.0.rc3. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-06-30 Michael Wiegand <michael.wiegand@greenbone.net> * nasl/CMakeLists.txt: Use gpgme-config to get the correct flags for building with gpgme. This fixes an issue which caused the build to fail on Gentoo. 2010-06-30 Michael Wiegand <michael.wiegand@greenbone.net> * omp/omp.c (omp_abort_task): Brought back as a deprecated wrapper function for omp_stop_task to ensure backward compatibility. (omp_get_status): Brought back as a deprecated wrapper function for omp_get_tasks to ensure backward compatibility. * omp/omp.h: Updated. * ChangeLog: Fixed entry from 2010-06-22. 2010-06-29 Preeti Subramanian <spreeti@secpod.com> * nasl/smb_crypt.h: Removed warning. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> Post-release version bump. * VERSION: Set to 3.1.0.rc3.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 3.1.0.rc2 release. * CHANGES: Updated. * VERSION: Set to 3.1.0.rc2. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. * MANIFEST: Added missing entry. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> * ChangeLog: Fixed non-ASCII character. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> * misc/openvas_auth.c (openvas_authenticate_uuid): Log uuid as well. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> * misc/plugutils.h: Expose plug_set_ssl_CA_file since it is needed by openvas-scanner/cnvts/find_service/find_service.c. * misc/plugutils.c: Removed now obsolete TODO. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> * misc/plugutils.h: Removed duplicate declarations of plug_get_bugtraq_id and plug_get_cve_id. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> * base/pidfile.c: Added missing include. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> * base/CMakeLists.txt, hg/CMakeLists.txt, misc/CMakeLists.txt, nasl/CMakeLists.txt, omp/CMakeLists.txt: Removed redundant compiler flags from CMAKE_C_FLAGS_DEBUG; CMAKE_C_FLAGS will be passed to the compiler in any case, so there is no need to put the flags into CMAKE_C_FLAGS_DEBUG as well. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> * misc/plugutils.c (get_plugin_preference_file_content): Removed superfluous const qualifier from return type. * misc/plugutils.h: Updated. * nasl/nasl_scanner_glue.c (script_get_preference_file_content): Removed const qualifier to match updated function declaration. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> * hg/hg_dns_axfr.c (hg_dns_axfr_decode): Cast union parameter for hg_dns_axfr_add_host to the expected type, thereby resolving a compiler warning. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> * misc/resource_request.c (resource_request_resource): Use g_ascii_strcasecmp instead of strcasecmp, thereby removing the need for including strings.h and resolving a compiler warning. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> * base/CMakeLists.txt, hg/CMakeLists.txt, misc/CMakeLists.txt, nasl/CMakeLists.txt, omp/CMakeLists.txt: Make CMake generated Makefiles less verbose to make it easier to spot compiler warnings. 2010-06-28 Michael Wiegand <michael.wiegand@greenbone.net> * base/drop_privileges.c (drop_privileges_error): Set format string when calling g_set_error. 2010-06-25 Michael Wiegand <michael.wiegand@greenbone.net> * misc/plugutils.c (plug_get_host_fqdn): Use plug_get_key to get vhosts from the KB; this forks if there is more than one vhost and results in a different return value in each fork. 2010-06-25 Michael Wiegand <michael.wiegand@greenbone.net> * misc/openvas_auth.c (openvas_authenticate_uuid): Added event logging to user authentication. 2010-06-25 Michael Wiegand <michael.wiegand@greenbone.net> * misc/openvas_logging.c: Added to elements to openvas_logging_t for syslog related configuration. (facility_int_from_string): New. Convenience function to convert a syslog facility string to its corresponding integer value. (openvas_log_func): Enable support for logging to syslog. 2010-06-22 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c (omp_abort_task): Remove. (omp_stop_task): New function. Rename from omp_abort_task. * omp/omp.h: Update header accordingly. 2010-06-22 Michael Wiegand <michael.wiegand@greenbone.net> * base/CMakeLists.txt: Make sure drop_privileges.c gets build and drop_privileges.h gets installed. 2010-06-19 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * doc/example.target.sources: Renamed to doc/example.target.locators. 2010-06-18 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * doc/example.auth.conf: More "OpenVAS" in example. 2010-06-18 Matthew Mundell <matthew.mundell@greenbone.net> * omp/omp.c: Replace GET_STATUS with GET_TASKS in comments. (omp_wait_for_task_start, omp_wait_for_task_end) (omp_wait_for_task_stop, omp_wait_for_task_delete): Use new name GET_TASKS in OMP. (omp_get_status): Remove. (omp_get_tasks): New function. Rename from omp_get_status. * omp/omp.h: Update headers accordingly. 2010-06-17 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * nasl/nasl_misc_funcs.c: Indented with `indent --no-tabs --ignore-newlines -l 80` . 2010-06-16 Tim Brown <timb@openvas.org> * nasl/nasl_misc_funcs.c, nasl/nasl_misc_funcs.h, nasl/nasl_init.c: Added get_byte_order function as proposed by Goran Licina <goran.licina@lss.hr>. 2010-06-10 Raimund Renkert <raimund.renkert@intevation.de> * omp/xml.h: Donate entity struct a name. 2010-06-09 Preeti Subramanian <spreeti@secpod.com> Bug Fix. Changed function names related to NTLMSSP by appending _ntlmssp. This would prevent conflicts that occur while WMI and NTLMSSP features co-exist. * nasl/smb_signing.c, nasl/smb_signing.h, nasl/proto.h, nasl/genrand.c, nasl/nasl_crypto.c, nasl/charset.h, nasl/time.c, nasl/ntlmssp.c, nasl/smb_crypt.c, nasl/smb_crypt.h, nasl/smb_crypt2.c, nasl/iconv.c, nasl/md4.c, nasl/md4.h, nasl/charcnv.c, nasl/arc4.c: Changed conflicting function names by appending names with _ntlmssp. 2010-06-08 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Refactored, resolved code duplicate. * misc/ads_auth.c (ads_auth_bind): Removed. (ads_auth_bind_query): Use ldap_auth_bind instead of ads_auth_bind. (ads_authenticate): Use ldap_auth_bind instead of ads_auth_bind. Prevent login attempt without given domain. * misc/ldap_auth.c (ldap_auth_bind): Made non-static. * misc/ldap_auth.h (ldap_auth_bind): Expose. 2010-06-08 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c, misc/ldap_auth.c, misc/ads_auth.c: `make indent` * misc/resource_request.c: Added macro for file name, `make indent`. 2010-06-08 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * openvas_macros.cmake: New file containing indentation target definitions (refactored from base/CMakeLists). * misc/CMakeLists.txt, base/CMakeLists.txt: Include new file, create indentation targets. 2010-06-08 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * base/CMakeList.txt: Added experimental "indent" target that calls indent on all source files in base. * base/credentials.h, openvas_string.c: Indented using new make target. 2010-06-07 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Adressed openldap deprecation warnings, resolving respective todos. * misc/ads_auth.c (ldap_object_get_attribute_values): Changed return type, use ldap_get_values_len instead of ldap_get_values, copy values returned by ldap. (ads_auth_bind): duplicate and free value passed to ldap that is marked const in signature. (ldap_object_attribute_has_value, ads_query_rules): Adjusted to changed ldap_object_get_attribute_values. (ads_authenticate): Declare variable dn earlier. * misc/ldap_auth.c (ldap_auth_bind): duplicate and free value passed to ldap that is marked const in signature. (ldap_auth_query): Improved const-correctness, use ldap_get_values_len instead of ldap_get_values. (ldap_auth_query_rules, ldap_auth_query_role): use ldap_get_values_len instead of ldap_get_values. (ldap_authenticate): Removed unused variable. 2010-06-07 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Adressed openldap deprecation warnings, resolving respective todos. Resolved code duplicates. * misc/ads_auth.c (ads_auth_bind): Use ldap_sasl_bind instead of deprecated ldap_simple_bind. (ads_authenticate): Use ads_auth_bind instead of binding with duplicate code. * misc/ldap_auth.c (ldap_auth_bind): Use ldap_sasl_bind instead of deprecated ldap_simple_bind. (ldap_authenticate): Use ldap_auth_bind instead of binding with duplicate code. 2010-06-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * base/openvas_string.c (openvas_string_flatten_string_list): Do not terminate with given separator. (openvas_string_list_free): New. Convenience function to free a list of gchar*s. * base/openvas_string.h (openvas_string_list_free): Added proto. 2010-06-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * base/openvas_string.c (openvas_string_flatten_string_list): Donate own memory to returned variable. 2010-06-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * base/openvas_string.c (openvas_string_flatten_string_list): New utility function. * base/openvas_string.h (openvas_string_flatten_string_list): Added proto. 2010-06-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Added module to retrieve resources from sources. In the current implementation this means retrieve strings from an ADS/LDAP- directory. Implementation was done aiming at these strings becoming target definitions. Sources are configurable via a configuration file residing in the openvas-sysconfdir (PREFIX/etc/openvas). * misc/resource_request.c, misc/resource_request.h: New module to expose source names and request resources string. * misc/CMakeLists.txt: Added new module, repaired setting of OPENVAS_SYSCONF_DIR. * MANIFEST: Added new files of new module. * doc/example.target.sources: Added exemplary source definitions. 2010-06-03 Michael Wiegand <michael.wiegand@greenbone.net> * nasl/nasl_crypto2.c (set_mpi_retc): Removed padding of returned buffer for cases when the most significant bit in the libgcrypt API response was set as this caused problems during SSH logins with RSA keys. Changed function documentation to explain this change. 2010-06-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ads_auth.c (ads_auth_bind): New function, binds to ads. (ads_auth_bind_query): New function, binds to ads and returns result of query. Added todo, as duplicate code was introduced. * misc/ldap_auth.c (ldap_auth_bind): New function, binds with ldap. (ldap_auth_query): New function, queries via a bound ldap handle. (ldap_auth_bind_query): Convenience wrapper for the two new functions. Added todo about duplicate code. * misc/ldap_auth.h (ldap_auth_query, ldap_auth_bind_query): Added protos. * misc/ads_auth.h (ads_auth_bind_query): Added proto. 2010-06-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ads_auth.c (ads_authenticate): Close memleaks. 2010-06-02 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * configure.in: Added small comment. * nasl/CMakeLists.txt: As done in configure, add prefix/lib or libdir to path to search for libraries. Fixes linking of the openvas-nasl standalone interpretor against wmi-libs if these are not in the default path. 2010-05-31 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ads_auth.c (ldap_object_get_attribute_values): NULL-terminate the attribute array. 2010-05-31 Felix Wolfsteller <felix.wolfsteller@greenbone.net> For configured ADS authentication: made rules working. * misc/ads_auth.c: Added some documenting text. (domain_to_ldap_dc): Added error condition, comment. (ads_auth_info_from_key_file): Improved debug message. (ldap_object_get_attribute_values): New function to query values of an attribute of an ldap object. (ldap_object_attribute_has_value): New function. Conveniently checks the values of an attribute. (ads_query_rules): New function to find and save accessrule of a user. (ads_authenticate): Use new ads_query_rules instead of ldap_auth_query_rules. Save rules and role in users-remote/ads instead of users-remote/ldap . * misc/ads_auth.h (ads_auth_info): Improved doc. * misc/ldap_auth.c (ldap_auth_query_rules): Added todo about usage of deprecated ldap function. (ldap_auth_query_role): Added deprecation todo, made role check work with multiple value attributes. 2010-05-28 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ldap_auth.c (ldap_authenticate): Adressed todo regarding deprecated ldap functions. Use ldap_initialize with an ldap uri instead of ldap_open, ldap_unbind_ext_s instead of ldap_unbind. * misc/ads_auth.c (ads_authenticate): Adressed todo regarding deprecated ldap functions. Use ldap_initialize with an ldap uri instead of ldap_open. Made warnings/debug output more specific. 2010-05-28 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Prevent certain formatting attacks by dissallowing percentage sign in username. * misc/openvas_auth.c (openvas_authenticate): Return -1 (failure) if percentage sign is found in username, adjusted documentation, improved debug message. 2010-05-27 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/CMakeLists.txt: Make library compile again when using BUILD_WITH_LDAP. 2010-05-27 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Made StartTLS requirement configurable, solving 2 todos. The configuration entry is not found in the exemplary .auth.conf as it is highly advised not to use it other for testing purposes. * misc/ldap_auth.h (ldap_auth_info): Added field whether StartTLS is mandatory, adjusted proto. * misc/ldap_auth.c (ldap_auth_info_new): Added parameter whehter StartTLS is required. (ldap_authenticate): Respect new configuration entry. (ldap_auth_info_from_key_file): Read in new configuration entry. * misc/ads_auth.c (ads_authenticate): Use parameter to decide wheter StartTLS initialization success is mandatory. 2010-05-27 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c (openvas_write_config_file): When one of two methods is configured, do not create default entries for the other. Updated doc. 2010-05-27 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Last part of commits for basic support for authentication against an ADS. Authenticator implementation in openvas_auth module. * misc/openvas_auth.c: Include ads_auth header. (authentication_method): Add ADS Method enum. (authentication_methods): Add ADS Mehtod string, made warning more prominent and marked semantically. (add_authenticator): Init and add an ADS authenticator. (openvas_auth_write_config): Add exemplary ADS authentication config. 2010-05-27 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ldap_auth.c (ldap_auth_info_free): Handle case where parameter is NULL, updated doc. (ldap_auth_info_create_dn): Renamed to ldap_auth_info_auth_dn. (ldap_auth_info_auth_dn): Renamed from ldap_auth_info_create_dn. (ldap_authenticate): Updated call. 2010-05-27 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Added basic support for authentication against an ADS (Active Directory Server). Note that to test, a configure switch (BUILD_WITH_LDAP) has to be set and appropriate values have to be entered in the authentication configuration file. * misc/ads_auth.c, misc/ads_auth.h: New module, analogous to the ldap authenticator. * doc/example.auth.conf: Added exemplary ADS authentication configuration. * misc/CMakeLists.txt: Add ads_auth module if BUILD_WITH_LDAP configure switch is set. * MANIFEST: Added new files. 2010-05-27 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ldap_auth.c: Use angle bracket include for ldap header. (ldap_auth_query_rules): Made non-static. (ldap_auth_query_role): Made non-static. (ldap_authenticate): Make connection without StartTLS possible if macro is defined, added todo about usage of configuration entry instead of compile-time-macro. * misc/ldap_auth.h: Include ldap header. Be empty if ENABLE_LDAP_AUTH is undefined. (ldap_auth_query_rules): Expose proto. (ldap_auth_query_role): Expose proto. 2010-05-20 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * base/CMakeLists.txt: Experimental indent target to check whether code conforms to GNU Coding Style as parsed by the indent tool. 2010-05-20 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ldap_auth.c (ldap_authenticate): Require ldap-server to talk LDAPv3 and proper StartTLS initialization. 2010-05-20 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * base/openvas_certificate_file.c (openvas_certificate_file_write): Adressed compiler warning that prevented build on some systems. Open the file, close it directly, set contents with GLib File Utility Functions. 2010-05-19 Michael Wiegand <michael.wiegand@greenbone.net> Post-release version bump. * VERSION: Set to 3.1.0.rc2.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-05-19 Michael Wiegand <michael.wiegand@greenbone.net> Preparing the openvas-libraries 3.1.0.rc1 release. * CHANGES: Updated. * VERSION: Set to 3.1.0.rc1. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-05-19 Michael Wiegand <michael.wiegand@greenbone.net> * omp/omp.h, omp/xml.c, omp/xml.h: Format according to coding style. Command was 'indent --no-tabs --ignore-newlines -l 80 *.c *.h'. 2010-05-19 Michael Wiegand <michael.wiegand@greenbone.net> * base/settings.c, base/openvas_string.c, base/drop_privileges.h, base/credentials.h, base/nvticache.c, base/settings.h, base/openvas_string.h, base/nvticache.h, base/openvas_file.c, base/accessrules.c, base/openvas_certificate_file.c, base/pidfile.c, base/array.c, base/openvas_file.h, base/severity_filter.c, base/nvti.c, base/accessrules.h, base/openvas_certificate_file.h, base/certificate.c, base/array.h, base/severity_filter.h, base/nvti.h, base/hash_table_util.c, base/certificate.h, base/hash_table_util.h, base/drop_privileges.c, base/credentials.c: Format according to coding style. Command was 'indent --no-tabs --ignore-newlines -l 80 *.c *.h'. 2010-05-19 Michael Wiegand <michael.wiegand@greenbone.net> * nasl/strutils.h, nasl/capture_packet.h, nasl/nasl_http.h, nasl/nasl_tcp.h, nasl/nasl_wmi.c, nasl/config.h, nasl/nasl_tree.c, nasl/nasl_signature.c, nasl/nasl_crypto2.c, nasl/nasl_tree.h, nasl/preparse.c, nasl/nasl_signature.h, nasl/nasl_crypto2.h, nasl/preparse.h, nasl/nasl_host.c, nasl/nasl_crypto.c, nasl/nasl_host.h, nasl/nasl_crypto.h, nasl/nasl_debug.c, nasl/nasl_socket.c, nasl/nasl_func.c, nasl/nasl_debug.h, nasl/nasl_socket.h, nasl/nasl_func.h, nasl/nasl_packet_forgery.c, nasl/nasl_text_utils.c, nasl/nasl_scanner_glue.c, nasl/exec.c, nasl/nasl_packet_forgery.h, nasl/nasl_text_utils.h, nasl/nasl_scanner_glue.h, nasl/exec.h, nasl/nasl_ip.h, nasl/nasl_packet_forgery_v6.c, nasl/nasl_smb.c, nasl/nasl_packet_forgery_v6.h, nasl/openvas_smb_interface.h, nasl/nasl_smb.h, nasl/nasl_var.c, nasl/lint.c, nasl/nasl_misc_funcs.c, nasl/nasl_lex_ctxt.c, nasl/nasl_var.h, nasl/nasl_misc_funcs.h, nasl/nasl_lex_ctxt.h, nasl/openvas_wmi_interface.h, nasl/nasl_global_ctxt.h, nasl/nasl_cmd_exec.c, nasl/nasl_cmd_exec.h, nasl/nasl.c, nasl/nasl.h, nasl/wmi_interface_stub.c, nasl/nasl_icmp.h, nasl/nasl_udp.h, nasl/nasl_init.c, nasl/nasl_init.h, nasl/strutils.c, nasl/capture_packet.c, nasl/nasl_http.c: Format according to coding style. Command was 'indent --no-tabs --ignore-newlines -l 80 *.c *.h'. 2010-05-19 Michael Wiegand <michael.wiegand@greenbone.net> * misc/comm.h, misc/harglists.c, misc/openvas_uuid.c, misc/kb.h, misc/store.h, misc/services1.c, misc/harglists.h, misc/openvas_uuid.h, misc/services1.h, misc/resolve.c, misc/openvas_logging.c, misc/pcap.c, misc/services.c, misc/resolve.h, misc/system.c, misc/services.h, misc/plugutils.c, misc/arglists.c, misc/system.h, misc/hash_table_file.c, misc/bpf_share.c, misc/network.c, misc/scanners_utils.c, misc/openvas_auth.c, misc/plugutils.h, misc/arglists.h, misc/hash_table_file.h, misc/bpf_share.h, misc/network.h, misc/openvas_server.c, misc/openvas_auth.h, misc/ldap_auth.c, misc/scanners_utils.h, misc/proctitle.c, misc/openvas_server.h, misc/ldap_auth.h, misc/otp.h, misc/hlst.c, misc/proctitle.h, misc/share_fd.c, misc/hlst.h, misc/openvas_ssh_login.c, misc/share_fd.h, misc/popen.c, misc/www_funcs.c, misc/pcap_openvas.h, misc/rand.c, misc/openvas_ssh_login.h, misc/system_internal.h, misc/popen.h, misc/ftp_funcs.c, misc/www_funcs.h, misc/ids_send.c, misc/rand.h, misc/kb.c, misc/ftp_funcs.h, misc/store.c, misc/ids_send.h: Format according to coding style. Command was 'indent --no-tabs --ignore-newlines -l 80 *.c *.h'. 2010-05-19 Michael Wiegand <michael.wiegand@greenbone.net> * hg/hg_filter.c, hg/hg_debug.c, hg/hg_utils.c, hg/hg_subnet.c, hg/test.c, hg/hosts_gatherer.c, hg/hg_dns_axfr.c, hg/hg_utils.h, hg/hg_subnet.h, hg/hosts_gatherer.h, hg/hg_add_hosts.c, hg/hg_dns_axfr.h, hg/hg_add_hosts.h: Format according to coding style. Command was 'indent --no-tabs --ignore-newlines -l 80 *.c *.h'. 2010-05-19 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/bpf_share.c: Minor doc added. 2010-05-18 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/CMakeLists.txt: Improved check for ldap libraries, be happy with both libldap2 and libldap. 2010-05-17 Preeti Subramanian <spreeti@secpod.com> NTLMSSP feature support. * nasl/smb_signing.c: Added new module. * nasl/smb_signing.h: Added new module. * nasl/byteorder.h: Added new module. * nasl/proto.h: Added new module. * nasl/genrand.c: Added new module. * nasl/time.c: Added new module. * nasl/charset.h: Added new module. * nasl/ntlmssp.c: Added new module. * nasl/ntlmssp.h: Added new module. * nasl/iconv.c: Added new module. * nasl/iconv.h: Added new module. * nasl/md4.c: Added new module. * nasl/md4.h: Added new module. * nasl/charcnv.c: Added new module. * nasl/nasl_misc_funcs.c (nasl_dec2str): Added utility function. * nasl/nasl_misc_funcs.h (nasl_dec2str): Added function declaration. * nasl/nasl_crypto.c (nasl_get_sign) (nasl_ntlmv2_response) (nasl_ntlm2_response) (nasl_ntlm_response) (nasl_keyexchg) (nasl_insert_hexzeros): Added new functions to support NTLMSSP responses. * nasl/nasl_crypto.h: Added new functions to support NTLMSSP responses. * nasl/smb_crypt.c (SMBsesskeygen_ntv1) (SMBOWFencrypt) (SMBencrypt) (SMBencrypt_hash) (SMBNTencrypt_hash) (SMBsesskeygen_lm_sess_key) (E_md5hash) (E_deshash) (SMBsesskeygen_ntv2) (NTLMv2_generate_client_data) (NTLMv2_generate_response) (LMv2_generate_response) (SMBNTLMv2encrypt_hash): Added new functions to support NTLMSSP. * nasl/smb_crypt.h: Added new functions. * nasl/smb_crypt2.c: Added file include. * nasl/smb_crypt.c (SMBOWFencrypt_ntv2): Modified function calls to remove warnings. * nasl/hmacmd5.h (hmac_md5): Added function declaration to remove warning. * nasl/CMakeLists.txt: Added new functions. * nasl/nasl_init.c: Added newly defined functions. * MANIFEST: Added new modules. 2010-05-14 Michael Wiegand <michael.wiegand@greenbone.net> * misc/openvas_auth.c (openvas_set_user_role): Fix glib API call to g_set_file_contents to better conform to the API documentation; passing 0 as length seems to break glib file creation under certain circumstances. Bug found by Michael Meyer. 2010-05-12 Matthew Mundell <matthew.mundell@greenbone.net> Add CVSS base and risk factor to nvti_t. * base/nvti.c (nvti_cvss_base, nvti_risk_factor, nvti_set_cvss_base) (nvti_set_risk_factor): New functions. (nvti_free): Free cvss_base and risk_factor. * base/nvti.h: Add headers accordingly. (nvti_t): Add cvss_base and risk_factor. 2010-05-11 Michael Wiegand <michael.wiegand@greenbone.net> Changed preference file infrastructure to handle file uploads stored in memory instead of on disk. Part of OpenVAS Change Request #47 (http://www.openvas.org/openvas-cr-47.html). * misc/plugutils.c (get_plugin_preference_fname): Changed to write the file contents from memory to a temporary file and return the name of the temporary file. This is currently necessary for NVTs which need to access a file, but will become deprecated soon. (get_plugin_preference_file_content): New. Provides the contents of an uploaded preference file. (get_plugin_preference_file_size): New. Provides the size of an uploaded preference file. * misc/plugutils.h: Updated. * nasl/nasl_scanner_glue.c (script_get_preference_file_content): Changed to serve file from memory instead of from disk. 2010-05-11 Michael Wiegand <michael.wiegand@greenbone.net> * misc/openvas_ssh_login.c: Refactored and added functionality to read ssh login data from a buffer instead of from a file. Patch provided by Felix Wolfsteller. (read_from_keyfile, openvas_ssh_login_file_read_buffer): New. (openvas_ssh_login_file_read): Refactored to use read_from_keyfile. * misc/openvas_ssh_login.h: Updated. 2010-05-10 Matthew Mundell <matthew.mundell@greenbone.net> * misc/openvas_auth.c (openvas_set_user_role): Return -2 if all roles fail to match. 2010-05-07 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c (openvas_auth_init): Use strcmp instead of g_strcmp. 2010-05-07 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Extended openvas-auth module to be able to write and merge its config. Also, added an "enabled" parameter to disable authentication configurations without loosing the details. * misc/openvas_auth.c (openvas_auth_init): Respect enabled parameter, except for file-based authentication which is always enabled. (openvas_auth_write_config): New, interface for changes of the configuration. Added newline before #endif macro. * misc/openvas_auth.h: Unified header comment with implementation file. (openvas_auth_write_config): Added proto. * doc/example.auth.conf: Added exemplary enabled parameters, added comment. 2010-05-06 Michael Meyer <michael.meyer@greenbone.net> * nasl/nasl_packet_forgery_v6.c: Removed unneeded "and not icmp6" from pcap filter string. 2010-05-05 Preeti Subramanian <spreeti@secpod.com> * nasl/nasl_packet_forgery_v6.c (nasl_tcp_v6_ping): Bug Fix. Corrected tcp ping for IPv6 2010-05-04 Matthew Mundell <matthew.mundell@greenbone.net> * base/array.c (free_array): Rename array_free. Update caller. (array_free): New function. Was free_array. * base/array.h: Update header accordingly. 2010-05-04 Matthew Mundell <matthew.mundell@greenbone.net> * misc/pcap.c (getinterfaces): Indent `for' properly. 2010-05-04 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * base/openvas_file.h, base/array.h: Fixed include-guard comments. 2010-05-04 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Added array module, extracted from openvas-manager and openvas-administrator. * base/array.c, base/array.h: New modules, extracted functions from openvas-manager and openvas-administrator. * MANIFEST, base/CMakeLists.txt: Added new module. 2010-05-03 Michael Wiegand <michael.wiegand@greenbone.net> * misc/openvas_server.h: Restored lost include for non-Windows builds. 2010-05-03 Preeti Subramanian <spreeti@secpod.com> Added a function to check if the target is IPv6: * nasl/nasl_host.c (nasl_target_is_ipv6): Added new function * nasl/nasl_host.h: Added new function * nasl/nasl_init.c: Added TARGET_IS_IPV6 as nasl function 2010-05-03 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_uuid.c: Fixed compiler warning by adding missing stdlib include, thanks mwiegand for spotting. 2010-05-02 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Windows support (partial, only what is need to run OMP clients) contributed Raimund Renkert: * base/CMakeLists.txt, omp/CMakeLists.txt, misc/CMakeLists.txt: Add MINGW support and switch off what is not needed for OMP clients. * omp/omp.c: Added support for Windows (just include/define). * misc/openvas_auth.c: Deactivate large parts of the code that is not necessary for Windows support for OMP clients. * misc/openvas_server.c: Deactivate some signal handling for Windows. * misc/openvas_server.h: Include Windows-specific sockets. 2010-04-30 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * doc/test_ipv6_packet_forgery.nasl: New. A test/demonstrator for the IPv6 package forgery. Developed by Preeti Subramanian. 2010-04-30 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * base/openvas_file.c (openvas_file_read_b64_encode): New utility function to read in a file and return its content base64 encoded. * base/openvas_file.h: Added proto. 2010-04-27 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Merge changes to credentials from openvas-manager. * base/credentials.h (struct credentials): Added uuid field. * base/credentials.c (free_credentials): Use easier openvas-manager variant, todo about possible leakage of uuid. 2010-04-27 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Added near-duplicate code from openvas-administrator / openvas-manager. * base/credentials.h, base/credentials.c: New module, moved from openvas-administrator/oap module. * base/CMakeLists.txt: Added header and source files to respective lists. * MANIFEST: Added new files. 2010-04-27 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c (openvas_auth_user_uuid_rules): Emit debug message with g_debug, check parameters passed to strcmp, fix bug where wrong variable is passed as users rules file name parameter. 2010-04-26 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c: Set the log domain. (uuid_file_contents): New function to access file content as uuid. (openvas_user_uuid): Clarified doc. (openvas_auth_user_uuid_rules): New function, reworked rules access for remotely authenticated users. (openvas_auth_user_rules): Deprecated in favor of the new openvas_auth_user_uuid_rules function. * misc/openvas_auth.h: Added proto. * misc/ldap_auth.c: Set the log domain. 2010-04-23 Michael Wiegand <michael.wiegand@greenbone.net> * misc/pcap.c (getinterfaces): Reworked for loop which broke strict-aliasing rules by dereferencing a type-punned pointer. Patch was authored by Matthew Mundell. 2010-04-21 Preeti Subramanian <spreeti@secpod.com> * misc/pcap.c (v6_getinterfaces): Replaced pcap_findalldevs() with getifaddrs(). 2010-04-20 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Mark remotely authenticated Administrators with isadmin flag. Resolved several other minor todos. * misc/ldap_auth.c (ldap_authenticate): Corrected role check, trigger isadmin flag setting / deleting. * misc/ldap_auth.h: Removed todos, which were resolved. Improved documentation. * misc/openvas_auth.c: Improved documentation. (openvas_authenticate_classic): Resolved todo and memleak. (openvas_user_uuid, openvas_user_uuid_method): Handle error case, simplified condition. (openvas_is_user_admin): Clarified todo. (openvas_set_user_role): Added new parameter, doc. Can optionally take the directory where to save the isadmin flag. (openvas_auth_store_user_roles): Made todo visible with doxygen. * misc/openvas_auth.h (openvas_auth_store_user_roles): Adjusted proto. 2010-04-20 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Added initial support for saving rules of users that were remotely authenticated. Rules file will be saved in OPENVAS_STATE_DIR/users-remote/ldap/USERNAME/auth/rules . * misc/openvas_auth.c (openvas_auth_store_user_rules): Improved doc. Expect a directory where to save the rules file (instead of just the username), to circumvent discrimination of locally and remotely authenticated users. * misc/openvas_auth.h (openvas_auth_store_user_rules): Adjusted proto. * misc/ldap_auth.c: Include openvas_auth. (ldap_auth_query_rules): New function, queries and saves the access-rules of a user. (ldap_authenticate): Call ldap_auth_query_rules for users and admins to query and save the access-rules. * doc/example.auth.conf: Added new configuration parameters. 2010-04-20 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c (openvas_auth_store_user_rules): Documented. Do not delete users dir in error case. Return proper. 2010-04-20 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c, misc/openvas_auth.h (openvas_auth_store_user_rules): Moved from openvas-administrator/src/admin module. 2010-04-20 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * base/openvas_string.c: Added missing include, updated copyright. 2010-04-20 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Created new module for file based utility functions, moved some functions from openvas-administrator into it. Also, abort build of libopenvas_base library on compiler warnings. * base/openvas_file.c, base/openvas_file.h (openvas_file_remove_recurse, openvas_file_check_is_dir): Added new module with utility functions moved from openvas-administrator/src/admin.c . * MANIFEST: Added new files. * base/CMakeLists.txt: Added new files, pass -Werror to compiler as in other new modules. 2010-04-19 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c (is_user_admin): Added todo (wrt remote auth). (openvas_auth_user_rules): Fixed call with double pointer. 2010-04-19 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Improved support for ldap based authentication. Therefore expect the configuration to hold the name of an attribute and possible values to qualify a login as user or administrator. Deny access if the attribute is not found in the ldap directory or does not have the specified values. Do this in every ldap authentication trial. Access rules support (which was prepared) will work similar. Kept the module chatty for debugging purpose. Note that to test, you have to enable LDAP support during build time. * misc/ldap_auth.h, misc/ldap_auth.c (ldap_auth_info_new) (ldap_auth_info_free, ldap_auth_info_from_key_file, ldap_authenticate, (ldap_auth_query_role): Added preliminary support for access rules, added support for user roles. * doc/example.auth.conf: Made role-user-values a semicolon separated list. 2010-04-19 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * base/openvas_string.c, misc/openvas_string.h (openvas_strv_contains_str): New method. Checks whether a string vector contains a certain string. 2010-04-19 Geoff Galitz <geoff@eifel-consulting.eu> * doc/wmi-howto.txt: Added a note about recompiling openvas-scanner if adding WMI to an existing deployment. 2010-04-16 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/openvas_auth.c, misc/openvas_auth.h (openvas_auth_user_rules): Moved from openvas-manager/manage_sql.c, access users rules (currently only for locally authenticated users). 2010-04-16 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Fixed wmi/smb support. * Makefile: Fixed building with WMI support. HAVE_WMI definition was not passed correctly. * nasl/CMakeLists.txt: Link openvas-nasl standalone interpretor against WMI, if found. 2010-04-16 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Save uuids of users that are authenticated with a method other than local file based (currently only ldap) in different locations. The API has not settled yet. * misc/openvas_auth.c: Added todo, some need for documentation. (openvas_user_uuid_method): New. Save uuids of users that are "remotely" authenticated in OPENVAS_STATE_DIR/users-remote/[method]/[user]/uuid. (openvas_authenticate_uuid): Use new function. Removed todo. (openvas_user_uuid): Clarified documentation. 2010-04-16 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * misc/ldap_auth.h, misc/ldap_auth.c (ldap_authenticate): Changed signature to overcome compiler warning (likely to be solved differently soon). * misc/openvas_auth.c (openvas_authenticate_method): New function, exposing the authentication method that led to authentication success. (openvas_authenticate_uuid): Use new method, adjusted todo. 2010-04-16 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * MANIFEST: Added misc/ldap_auth module. * misc/CMakeLists.txt: Allow to enable ldap support at configure time - use -DBUILD_WITH_LDAP=ON to activate. Added check for openldap in that case, include ldap_auth module and add definition. 2010-04-16 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * base/CMakeLists.txt, hg/CMakeLists.txt, misc/CMakeLists.txt, nasl/CMakeLists.txt, omp/CMakeLists.txt: Unified formatting of CMakeLists to allow easier reading and extraction of macros. 2010-04-16 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * hg/hg_utils.c (hg_get_name_from_ip): Doc added. Formatting. * misc/bpf_share.h, misc/proctitle.c, nasl/nasl.c, omp/xml.c: Cosmetics. 2010-04-16 Felix Wolfsteller <felix.wolfsteller@greenbone.net> * configure.in: Added check for libuuid. * configure: Regenerated. 2010-04-15 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Moved authentication/uuid code from openvas-manager to openvas_auth module. * misc/openvas_auth.c: Added openvas_uuid include. (openvas_user_uuid): Moved from openvas-manager/manage_sql.c. (openvas_authenticate_uuid): Moved from openvas-manager/manage_sql.c. * misc/openvas_auth.h (openvas_user_uuid, openvas_authenticate_uuid): Added headers accordingly. 2010-04-15 Felix Wolfsteller <felix.wolfsteller@greenbone.net> Moved duplicate code from openvas-manager and openvas-administrator to new module misc/openvas_uuid . * misc/openvas_uuid.h, misc/openvas_uuid.c: New files, containing duplicate code from openvas-manager/manage.c and openvas-administrator/admin.c . Reflect module change in function name change. * MANIFEST: Added new module. * misc/CMakeLists.txt: Added check for uuid library, added new module, install new header. 2010-04-13 Stephan Kleine * hg/CMakeLists.txt: Fix build with no-undefined. * misc/CMakeLists.txt: Fix build with no-undefined. 2010-04-13 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.6.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-04-13 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.5 release. * CHANGES: Updated. * VERSION: Set to 3.0.5. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. * MANIFEST: Updated. 2010-04-12 Preeti Subramanian <spreeti@secpod.com> * nasl/nasl_packet_forgery_v6.c (nasl_tcp_v6_ping): Fixed issue in packet size caluclation. 2010-04-12 Preeti Subramanian <spreeti@secpod.com> Packet forgery support for ICMPv6, UDP, IGMP. * nasl/nasl_packet_forgery.c: Addressed compilation warnings. * nasl/nasl_packet_forgery_v6.c (insert_ipv6_options) (forge_udp_v6_packet) (set_udp_v6_elements) (dump_udp_v6_packet) (get_udp_v6_element) (forge_icmp_v6_packet) (get_icmp_v6_element) (forge_igmp_v6_packet): Added new functions. * nasl/nasl_packet_forgery_v6.c (nasl_tcp_v6_ping): Fixed checksum calculation logic and compiler warnings. * nasl/nasl_packet_forgery_v6.c (nasl_send_v6packet): Fixed compiler warnings. * nasl/nasl_packet_forgery_v6.h (insert_ipv6_options) (forge_udp_v6_packet) (set_udp_v6_elements) (dump_udp_v6_packet) (get_udp_v6_element) (forge_icmp_v6_packet) (get_icmp_v6_element) (forge_igmp_v6_packet): Added new functions. * nasl/nasl_init.c: Added the above new functions. 2010-04-12 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/CMakeLists.txt: Do not include standalone nasl tool object in libraries. Statically link openvas-nasl instead. 2010-04-12 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/CMakeLists.txt: Lowercased cmake commands. 2010-04-12 Stephan Kleine * nasl/CMakeLists.txt: explicitly link against needed libraries so it works also with no-undefined which is e.g. used by Mandriva. 2010-04-08 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/smb_crypt2.c: Replaced include of includes.h by ctype.h. * nasl/includes.h: Removed. * MANIFEST: Updated. 2010-04-08 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/smb_crypt2.c: Use local includes.h. * include/includes.h: Removed. * MANIFEST: Updated. 2010-04-08 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * include/includes.h, misc/pcap.c, misc/plugutils.c, misc/hlst.c, nasl/includes.h: Removed code path for "USE_PTHREADS". It was never active anyway. 2010-04-03 Michael Wiegand <michael.wiegand@intevation.de> * MANIFEST: Added missing files. * ChangeLog: Tidied last entry. 2010-04-02 Preeti Subramanian <spreeti@secpod.com> Packet Forgery support for IPv6. * nasl/capture_packet.c (init_v6_capture_device) (capture_next_v6_packet): Added new functions. * nasl/capture_packet.h (init_v6_capture_device) (capture_next_v6_packet): Added new functions. * nasl/nasl_packet_forgery.c (nasl_tcp_ping, nasl_pcap_next) (nasl_send_capture): Modified to support IPv6. * nasl/nasl_packet_forgery_v6.c: Added new module. * nasl/nasl_packet_forgery_v6.h: Added new. * nasl/CMakeLists.txt: Included nasl_packet_forgery_v6.c. * nasl/nasl_init.c: Updated newly added functions from nasl_packet_forgery_v6.c 2010-03-31 Michael Wiegand <michael.wiegand@intevation.de> * misc/store.c (store_load_plugin): Load tags and xrefs into the arglist if they are set in the NVTi cache. Removed obsolete TODO. 2010-03-25 Tim Brown <timb@openvas.org> * openvas-libraries/misc/ids_send.c: Fixed uninitialised variable. 2010-03-25 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.c (omp_resume_or_start_task_report, omp_resume_or_start_task): New functions. * omp/omp.h: Add headers accordingly. 2010-03-24 Michael Wiegand <michael.wiegand@intevation.de> Moved installation of header files away from top level Makefile and into the CMakeLists.txt of the individual modules. * omp/CMakeLists.txt, misc/CMakeLists.txt, nasl/CMakeLists.txt, hg/CMakeLists.txt, base/CMakeLists.txt: Added handling of header installation. * Makefile: Removed handling of header file installation for individual modules. 2010-03-23 Michael Wiegand <michael.wiegand@intevation.de> Fixed some library paths that broke linking. * omp/CMakeLists.txt: Removed superfluous .libs from link_directories. * nasl/CMakeLists.txt: Fixed IMPORTED_LOCATION for libopenvas_hg and libopenvas_base, corrected order of set_property. * hg/CMakeLists.txt: Removed entirely superfluous link_directories. 2010-03-21 Vlatko Kosturjak <kost@linux.hr> * Makefile: with distclean clean CMakeCache.txt recursively 2010-03-17 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Patch contributed by Mareike Piechowiak <noplant@gmx.de>: * misc/Makefile: Removed. * misc/CMakeLists.txt: New. * Makefile: Run cmake for library misc. * MANIFEST: Updated. * misc/openvas_ssh_login.c, misc/proctitle.c: Change <system.h> to "system.h" to run with CMakeLists.txt. * misc/services.h: Fixed paths. 2010-03-16 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Patch contributed by Mareike Piechowiak <noplant@gmx.de>: * hg/Makefile: Removed. * hg/CMakeLists.txt: New. * Makefile: Run cmake for library hg. * MANIFEST: Updated. 2010-03-16 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Patch contributed by Mareike Piechowiak <noplant@gmx.de>: * nasl/CMakeLists.txt: Get version dynamically from file VERSION. 2010-03-16 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Patch contributed by Mareike Piechowiak <noplant@gmx.de>: * base/CMakeLists.txt, omp/CMakeLists.txt: Fix handling of dynamic VERSION handling. 2010-03-16 Felix Wolfsteller <felix.wolfsteller@intevation.de> Improved remote authentication (ldap), changed config file format. * misc/openvas_auth.c: Use ifdef instead of if != 0 . * misc/ldap_auth.h: Extended ldap_auth_info struct to cover upcoming possible admin/user distinction, replaced two entries for DN to authenticate against with a single entry. * misc/ldap_auth.c (auth_dn_is_good): New function to check auth_dn entry of keyfile. (ldap_auth_dn_new, ldap_info_create_dn): Reflect changes to the ldap_auth_info struct. (ldap_auth_query_role): New function stub to find out role of user. * doc/example.auth.conf: Updated. 2010-03-15 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Patch contributed by Mareike Piechowiak <noplant@gmx.de>: * omp/CMakeLists.txt: Get version dynamically from file VERSION. 2010-03-15 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Patch contributed by Mareike Piechowiak <noplant@gmx.de>: * base/CMakeLists.txt: Get version dynamically from file VERSION. 2010-03-12 Michael Wiegand <michael.wiegand@intevation.de> Added howto for compiling openvas-libraries with WMI support. * doc/wmi-howto.txt: New. 2010-03-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> Add code to add support for remote (ldap) authentication with the openvas_auth module. Authentication methods are somewhat abstracted ("authenticators") and configurable via a file .auth.conf that is expected to be found in the openvas "users" directory. An exemplary .auth.conf file is found in the doc subdirectory. Note that to test ldap authentication modifications to the Makefile are neccessary. * misc/openvas_auth.c (auth_method_from_string): New function to get an authentication type from its string representation. (order_compare): New helper function to sort entries read in from the configuration file. (classic_authenticator_new): New function to create an authenticator that behaves as it is now (authentication against file). (add_authenticator): New function to add authenticators to the list of authenticators. (openvas_auth_init): New function to initialize the list of authenticators from the configuration file. (openvas_auth_tear_down): New stub function to free memory associated to the authenticators. (openvas_authenticate_classic): New, extracted from openvas_authenticate. (openvas_authenticate): Fall back to the extracted openvas_authenticate_classic if authenticators list was not successfully initialized, otherwise use the sorted list of authenticators. * misc/openvas_auth.h (openvas_auth_init) (openvas_auth_tear_down): Added new protos. * doc/example.auth.conf: Exemplary .auth.conf config file for the authentication methods. 2010-03-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/ldap_auth.c, misc/ldap_auth.h: Use angle brackets for non-project include. * misc/openvas_auth.h: Removed yet unneeded prototypes. 2010-03-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/ldap_auth.c, misc/ldap_auth.h, misc/openvas_auth.c, misc/openvas_auth.h, misc/openvas_ssh_login.c, misc/openvas_ssh_login.h: Corrected header (description and module). 2010-03-08 Felix Wolfsteller <felix.wolfsteller@intevation.de> Initial ldap_auth module to enable future ldap authentication support. * misc/ldap_auth.c, misc/ldap_auth.h: Added new files. 2010-03-03 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.5.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-03-03 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.4 release. * CHANGES: Updated. * VERSION: Set to 3.0.4. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. * MANIFEST: Updated. 2010-03-03 Michael Wiegand <michael.wiegand@intevation.de> * base/nvti.c (nvti_to_keyfile): Use g_mkdir_with_parents to create cache directories to handle multiple levels of subdirectories correctly. 2010-03-02 Michael Wiegand <michael.wiegand@intevation.de> * configure.in: Added support for determining the correct libdir early and for library checking in that directory. * configure: Regenerated. 2010-03-01 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * base/CMakeLists.txt: Better naming for VERSION variables. 2010-02-25 Chandrashekhar B <bchandra@secpod.com> * nasl/nasl_wmi.c (nasl_wmi_reg_get_sz, nasl_wmi_reg_enum_value) (nasl_wmi_reg_enum_key, nasl_wmi_reg_get_bin_val, nasl_wmi_reg_get_dword_val) (nasl_wmi_reg_get_ex_string_val, nasl_wmi_reg_get_mul_string_val) (nasl_wmi_reg_get_qword_val): Added REGISTRTY_HIVE as an argument * nasl/openvas_wmi_interface.h: Updated with an additional arg for REGISTRY HIVE * nasl/wmi_interface_stub.c: (nasl_wmi_reg_get_sz, nasl_wmi_reg_enum_value) (nasl_wmi_reg_enum_key, nasl_wmi_reg_get_bin_val, nasl_wmi_reg_get_dword_val) (nasl_wmi_reg_get_ex_string_val, nasl_wmi_reg_get_mul_string_val) (nasl_wmi_reg_get_qword_val): Added REGISTRTY_HIVE as an argument * nasl/nasl_init.c: Updated WMI Registry functions with an additional arg for REGISTRY HIVE 2010-02-24 Michael Wiegand <michael.wiegand@intevation.de> * misc/openvas_server.c (openvas_server_open, openvas_server_connect) (openvas_server_attach): Avoid printing GnuTLS error messages to stderr; they are now handed to g_message so that they can be properly logged if desired. 2010-02-16 Chandrashekhar B <bchandra@secpod.com> * misc/pcap.c (v6_routethrough): Get IPv4/IPv6 routes according to the target IP, whether v4 or v6 and Try connectsockettechnique if procroutetechnique failed. This is to resolve the issues reported with this_host() function. 2010-02-15 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/CMakeLists.txt: Link the standalone nasl interpreter dynamically. Move linkage commands to the static nasl library. * ChangeLog: Corrected path. 2010-02-15 Stephan Kleine * Makefile, base/CMakeLists.txt, hg/Makefile, misc/Makefile, nasl/CMakeLists.txt, omp/CMakeLists.txt: Fix build order and some linking issues to fix builds on Mandriva 2010-02-11 Matthew Mundell <matthew.mundell@intevation.de> * omp/openvas_server.h: Add extern for C++. 2010-02-11 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.h, omp/xml.h: Add externs for C++. 2010-02-04 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/openvas_logging.c (openvas_syslog_func): Applying patch from Stephan Kleine, fixing bug #1272 (http://bugs.openvas.org/1272). 2010-02-04 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.4.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-02-04 Michael Wiegand <michael.wiegand@intevation.de> * MANIFEST: Added missing files. 2010-02-04 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.3 release. * CHANGES: Updated. * VERSION: Set to 3.0.3. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-02-04 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/openvas_auth.c (openvas_authenticate): Minor doc, added TODO about possible memleak. 2010-01-29 Chandrashekhar B <bchandra@secpod.com> * nasl/nasl_crypto.c (nasl_ntlmv1_hash, nasl_lm_owf_gen) (nasl_ntv2_owf_gen, nasl_ntlmv2_hash): Addressed compiler warnings. 2010-01-28 Matthew Mundell <matthew.mundell@intevation.de> * misc/openvas_logging.c: Revert last change. * ChangeLog: Neaten entry, flush whitespace. 2010-01-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> Straightened up log config handling. * misc/openvas_logging.c (openvas_syslog_func): [SYSLOG_SUPPORT] Guarded. (openvas_syslog_func): Changed name of user data parameter and doc. (openvas_log_func): Changed user data parameter, doc, removed looping over list to determine the default (will not be used anyway). (setup_log_handlers): Changed semantics of user data parameter, instead of a more or less unused list, pass the single matching openvas_logging_t struct. Set default handler differently. 2010-01-28 Chandrashekhar B <bchandra@secpod.com> Added new crypto functions and support for SMB NTLMv1 and NTLMv2. Initial patch by Tim Brown <timb@openvas.org> * nasl/nasl_crypto.c (nasl_gcrypt_hash): Addressed compiler warning (nasl_md2, nasl_hmac_md2, nasl_ntlmv1_hash, nasl_nt_owf_gen) (nasl_lm_owf_gen, nasl_ntv2_owf_gen, nasl_ntlmv2_hash): Added new. * nasl/nasl_crypto.h: Included new functions from nasl_crypto.c * nasl/smb_crypt.c: Added new. * nasl/smb_crypt.h: Added new. * nasl/smb_crypt2.c: Added new. * nasl/CMakeLists.txt: Updated to include smb_crypt.c, smb_crypt2.c * nasl/nasl_init.c: Updated to include newly added functions in nasl_crypto.c. 2010-01-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> * omp/xml.c (read_string): Corrected call. 2010-01-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> * omp/xml.c (read_string): New wrapper function, read entity and string, free entity immediately. * omp/xml.h (read_string): Proto added. 2010-01-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/drop_privileges.c (drop_privileges): Prevent error-pile-up. * base/drop_priviliges.h: Define return value for error-pile-up programming mistake. 2010-01-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> Added module for basic support for privilege dropping. * base/drop_privileges.c, base/drop_privileges.h: New module containing basic code to drop privileges. 2010-01-26 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/openvas_logging.c (openvas_syslog_func): New logging function. Plain wrapper to syslog, does not touch the message. (setup_log_handlers) [0]: Register openvas_syslog_func in case the filename is "syslog". 2010-01-26 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/hg_add_hosts.c (range): Doc, renamed parameters. (netmask_to_cidr_netmask): Added doc, minor cosmetic. * hg/hg_filter.c: Minor cosmetics. * hg/hg_subnet.c: Include header file, remove forward declarations, minor cosmetics. (hg_gather_subnet_hosts): Marked a comment about IPv6 as TODO. 2010-01-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> Added functionality to print an xml entity tree to a string. * omp/xml.c (free_entity): Tiny doc change. (foreach_print_entity_to_string, foreach_print_attribute_to_string) (print_entity_to_string, print_entities_to_string): New functions to print an xml entity tree to string. * omp/xml.h (print_entity_to_string, print_entitites_to_string): Protos for new functions. 2010-01-19 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.3.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-01-19 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.2 release. * CHANGES: Updated. * VERSION: Set to 3.0.2. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-01-14 Matthew Mundell <matthew.mundell@intevation.de> Add support for modifying the scanner configuration file. * base/settings.c (settings_init, settings_cleanup, settings_set) (settings_save, init_settings_iterator): New functions. (init_settings_iterator): Move key_file init to settings_init. (cleanup_settings_iterator): Call through to settings cleanup. (settings_iterator_next, settings_iterator_name): Rename iterator param. (settings_iterator_value): Get fields from settings. * base/settings.h: Update headers accordingly. Make header style more standard. (settings_t): New type. (settings_iterator_t): Move file fields to settings_t and include a settings_t. 2010-01-13 Matthew Mundell <matthew.mundell@intevation.de> Switch to using GKeyFile to represent settings. In the process hide this underlying type from the settings user. * base/settings.c (get_all_settings): Remove. (init_settings_iterator, cleanup_settings_iterator) (settings_iterator_next, settings_iterator_name) (settings_iterator_value): New functions. * base/settings.h: Update headers accordingly. Make header check symbol more unique. (settings_iterator_t): New type. 2010-01-11 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.2.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-01-11 Michael Wiegand <michael.wiegand@intevation.de> Committed VERSION file missing from the last commit. * VERSION: Set to 3.0.1. 2010-01-11 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.1 release. * CHANGES: Updated. * VERSION: Set to 3.0.1. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2010-01-11 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/hg_add_hosts.c (hg_add_host), hg/hg_add_hosts.h (hg_add_host): Declared function hg_add_host static and removed from interface. 2010-01-11 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/hg_add_hosts.c, hg/hg_dns_axfr.c, hg/hg_subnet.c: Reformatting, doc and todos added. 2010-01-08 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/hg_add_hosts.c (getaddrfamily, real_ip, range, hg_add_host) (hg_add_comma_delimited_hosts, hg_add_ipv6hos_with_options): Reformatting, doc and comments. (real_ip) Added TODO. This function should at least be renamed into contains_three_dots or the like. Added todo about missing documentation of valid input strings to the whole host resolution mechanisms. * hg/hg_add_hosts.h, hg_debug.c, hg_filter.c, hg_filter.h, hg_subnet.h: Reformatting, doc and comments. 2010-01-07 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/hg_utils.c (hg_resolv): Added TODO about incomplete resolution in case of multiple A Records. 2010-01-07 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/hg_utils.c, hg/hg_utils.h: Formatting and documentation. 2010-01-07 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/host_gatherer.h: Formatting. * hg/Makefile: For clean target, remove test executable. * hg/test.c: Formatted, updated doc. 2010-01-07 Felix Wolfsteller <felix.wolfsteller@intevation.de> * configure.in: Added comments. * hg/host_gatherer.c, hg/host_gatherer.h: Formatting. * hg/Makefile: Adjusted linker flags for the host gatherer test program. * hg/test.c: Formatted, added missing includes. 2009-12-30 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.c (omp_create_lsc_credential): Add login arg for updated OMP. * omp/omp.h: Update header accordingly. 2009-12-23 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/scanners_utils.h: Copied header of implementation file to header file. 2009-12-23 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/hg_utils.c, misc/bpf_share.c, misc/comm.h, misc/network.h, misc/resolve.c, misc/resolve.h, misc/scanners_utils.c, misc/services.c misc/system.c, misc/www_funcs.c, nasl/nasl_crypto.c, nasl/nasl_func.c, nasl/nasl_func.h, nasl/nasl_host.c, nasl/nasl_init.c, nasl/nasl_text_utils.c, nasl/nasl_var.c: Whitespace cleanups, doc * misc/ids_send.h: Fixed typo in doc. * misc/bpf_share.c: Removed undef of DEBUG_FORWARD. Neither defined nor used anywhere. 2009-12-21 Matthew Mundell <matthew.mundell@intevation.de> * misc/openvas_server.c (openvas_server_new): Remove call to gnutls_session_enable_compatibility_mode. 2009-12-18 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.1.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-12-18 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.0 release. * CHANGES: Updated. * VERSION: Set to 3.0.0. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-12-18 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * omp/omp.c (omp_create_agent, omp_delete_agent): New functions. * omp/omp.h: Added protos accordingly. 2009-12-18 Michael Wiegand <michael.wiegand@intevation.de> * base/settings.c (get_all_settings): Make sure hash table contents are correctly freed on hash table destruction as suggested by Felix Wolfsteller. 2009-12-17 Michael Wiegand <michael.wiegand@intevation.de> * MANIFEST: Added new files to manifest. 2009-12-17 Michael Wiegand <michael.wiegand@intevation.de> Added initial support for accessing configuration files in the keyfile format. * base/settings.c: New. * base/settings.h: New. * base/CMakeLists.txt: Updated to include settings.c. * Makefile: Update to ensure installation of settings.h. 2009-12-15 Matthew Mundell <matthew.mundell@intevation.de> * base/pidfile.c: Add missing include. 2009-12-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/openvas_ssh_login.c: Cosmetics (maily spaces). 2009-12-09 Chandrashekhar B <bchandra@secpod.com> * misc/plugutils.c (mark_post): resolved compiler wanring * misc/openvas_server.c (openvas_server_open, openvas_server_connect, openvas_server_attach): resolved compiler warnings. * misc/www_funcs.c (build_encode_URL): Enable IPv6. * misc/ids_send.c (ids_open_sock_tcp): resolved compiler warning. 2009-12-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/plugutils.c: Added TODOs, lead to by compiler warnings of openvas-scanner/cnvts/find_service. 2009-12-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/nasl_host.c: Removed extern function declarations. 2009-12-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/nasl_host.c, nasl/nasl_host.h: Cosmetics, added missing includes. 2009-12-09 Tim Brown <timb@openvas.org> * misc/network.c: Fixed a potential resource leak. 2009-12-07 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/pidfile.c: Added missing include. 2009-12-07 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/pcap.c: Cosmetics and docs. 2009-12-07 Tim Brown <timb@openvas.org> * misc/store.c: Fixed a potential memory leak. 2009-12-07 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.0.rc2.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-12-07 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.0-rc1 release. * CHANGES: Updated. * VERSION: Set to 3.0.0.rc1. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-12-05 Michael Wiegand <michael.wiegand@intevation.de> * nasl/exec.c (exec_nasl_script): Use correct glib function for determining the directory. 2009-12-04 Michael Wiegand <michael.wiegand@intevation.de> * nasl/exec.c (exec_nasl_script): Fixed a potential memory leak, improved error handling, made glib usage more consistent, clarified return value in documentation. 2009-12-04 Michael Wiegand <michael.wiegand@intevation.de> Add support for defining one additional directory on the command line which will be used to look for includes to openvas-nasl. * nasl/nasl.c (main): Introduced the --include-dir / -i command line parameter. 2009-12-04 Michael Wiegand <michael.wiegand@intevation.de> * ChangeLog: Fixed bug # in the last entry. 2009-12-04 Michael Wiegand <michael.wiegand@intevation.de> Solved bug #1101 (http://bugs.openvas.org/1101); openvas-nasl now supports relative paths. * nasl/exec.c (exec_nasl_script): Use glib functions to simplify and extend directory access. Removed todos. * nasl/nasl.c (main): Removed todo. 2009-12-01 Chandrashekhar B <bchandra@secpod.com> * misc/ids_send.c (ids_open_sock_tcp): IPv6 enable. (ids_send): IPv6 enable. (injectv6): Added new. * nasl/nasl_host.c (nasl_this_host): Used proper variable name. 2009-11-25 Michael Wiegand <michael.wiegand@intevation.de> * nasl/nasl_cmd_exec.c (nasl_get_tmp_dir): Use the glib g_get_tmp_dir function to identify the system directory for temporary files. This fixes bug #1170 (http://bugs.openvas.org/1170). 2009-11-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/hg_add_hosts.c, misc/kb.c, misc/plugutils.c, misc/plugutils.h, misc/popen.c, misc/proctitle.h, misc/scanners_utils.c, misc/share_fd.c, misc/store.c, misc/system.c, nasl/nasl_cmd_exec.c, nasl/nasl_misc_funcs.c, nasl/nasl_scanner_glue.c, nasl/nasl_signature.c, nasl/nasl_text_utils.c, nasl/nasl_var.c: Cosmetics. 2009-11-25 Michael Wiegand <michael.wiegand@intevation.de> * base/pidfile.c (pidfile_remove): Make pidfile removal more robust. The contents of the pidfile are now checked before removal to prevent accidental deletion of the file by other processes. Removed now obsolete debug message. 2009-11-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> Cast an int that is passed as an void* explicitely, to avoid issues on 64-bit systems. This should fix bug #1196 (http://bugs.openvas.org/1196). * misc/network.c (ovas_scanner_context_attach): Cast int to pointer using GLib functionality. * ChangeLog: Fixed dates. 2009-11-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/network.c: Minor cosmetics. 2009-11-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/network.c: Major reformatting, docs and comments. 2009-11-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> Pass libdir to CMake based subprojects, fixes bug #1194, installation on 64-bit systems (https://bugs.openvas.org/1194). * Makefile: Pass given libdir to cmake. 2009-11-23 Chandrashekhar B <bchandra@secpod.com> * nasl/nasl_socket.c (nasl_open_privileged_socket): Fixed a possible buffer overflow. 2009-11-23 Felix Wolfsteller <felix.wolfsteller@intevation.de> Applied rest of patch provided by Stephan Kleine (http://lists.wald.intevation.org/pipermail/openvas-devel/2009-November/001907.html) to fix compilation on openSUSE 11.2. * nasl/CMakeList.txt: Moved linker flags to target_link_library command of cmake. 2009-11-23 Felix Wolfsteller <felix.wolfsteller@intevation.de> Applied part of patch provided by Stephan Kleine (http://lists.wald.intevation.org/pipermail/openvas-devel/2009-November/001907.html) to fix compilation on openSUSE 11.2. * base/CMakeList.txt: Added glib linker flags, patch provided by Stephan Kleine. 2009-11-23 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.0.beta8.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-11-23 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.0-beta7 release. * CHANGES: Updated. * VERSION: Set to 3.0.0.beta7. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-11-23 Chandrashekhar B <bchandra@secpod.com> * misc/pcap.c (getipv6routes): Changed the message not to report as error. * hg/hg_utils.c (hg_get_name_from_ip): Bug fixes: - Possible buffer overflow in memcpy() - Seperate v4 and v6 logic so that it resolves to pure IPv4 address and not a v6 mapped v4 address. - Included ':' in the hostname structuring code, ':' is a valid char in v6 address and also trim the resuling hostname. 2009-11-20 Chandrashekhar B <bchandra@secpod.com> * misc/pcap.c (v6_routethrough): Bug fix, segfault when scanner is run as non-root. 2009-11-20 Chandrashekhar B <bchandra@secpod.com> * misc/pcap.c: Fixed compile errors when TCPIP_DEBUGGING is enabled. 2009-11-20 Michael Wiegand <michael.wiegand@intevation.de> * base/pidfile.c (pidfile_remove): Write a debug message to the log on pidfile deletion to help trace premature pidfile deletion. 2009-11-16 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.c (check_response): Make external. Return 1 on OMP fail instead of -1. * omp/omp.h: Add new header. 2009-11-14 Srinivas NL <nl.srinivas@gmail.com> * misc/network.c : Added the following functions to handle ipv4 and ipv6 address lists parsed from -S option socket_get_next_source_v4_addr, socket_get_next_source_v6_addr, _socket_get_next_source_v4_addr, _socket_get_next_source_v6_addr * misc/network.c (socket_source_init): Calls _socket_get_next_source_v4_addr or _socket_get_next_source_v6_addr depending on address family. * misc/network.h : Added prototype declarations for new functions. * misc/pcap.c (v6_getsourceip): Gets either ipv4 or ipv6 source address depending on destination address type. * misc/pcap.c (v6_routethough): Gets either ipv4 or ipv6 source address depending on destination address type. Initialize source address to wild card address in the beginning of the function. * nasl/nasl_host.c (nasl_this_host): Gets either ipv4 or ipv6 source address depending on target address type. 2009-11-10 Felix Wolfsteller <felix.wolfsteller@intevation.de> Fixed typos found by Ryan Schmidt. This change closes bug #1167. (bugs.openvas.org/1167) * configure.in, doc/README.BPF: Fixed typos. * configure: Regenerated 2009-11-10 Chandrashekhar B <bchandra@secpod.com> * misc/pcap.c: Migrating to ipv6, first phase. Implemented new functions, v6_getinterfaces, v6_is_local_ip, v6_get_mac_addr, v6_ipaddr2devname, v6_islocalhost, v6_getinterfaces, v6_getsourceip, getipv4routes, getipv6routes, v6_routethrough, ipv6addrmask. * misc/pcap.c (routethrough): Minor formatting. * misc/pcap_openvas.h: Prototypes declaration of new functions. * nasl/nasl_host.h (nasl_islocalhost, nasl_islocalnet, nasl_this_host): Use new ipv6 enabled functions from misc/pcap.c Coding by Srinivasa NL <nl.srinivas@gmail.com>. 2009-11-09 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.0.beta7.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-11-09 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.0-beta6 release. * CHANGES: Updated. * VERSION: Set to 3.0.0.beta6. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-10-30 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.c (read_entity_and_string): New function. Body from read_entity_and_text, with GString as return param. (read_entity_and_text, read_entity): Call read_entity_and_text to do the work. * omp/omp.h: Add new header. 2009-10-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> * omp/xml.x (print_entity, print_entity_format): Escape text of entities, as otherwise invalid XML might result. 2009-10-26 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.0.beta6.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-10-26 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.0-beta5 release. * CHANGES: Updated. * VERSION: Set to 3.0.0.beta5. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-10-23 Matthew Mundell <matthew.mundell@intevation.de> * base/nvti.c (nvti_category): Correct doc typo. 2009-10-23 Matthew Mundell <matthew.mundell@intevation.de> * tools: New directory. * tools/openvas-lsc-rpm-creator.sh: New file. * Makefile (install-tools): New rule. (install): Depend on install-tools. (clean, distclean): Format like others. * MANIFEST: Add new dir and file. 2009-10-22 Matthew Mundell <matthew.mundell@intevation.de> * base/pidfile.c (pidfile_create, pidfile_remove): Add NULL end args. 2009-10-21 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * base/pidfile.c, base/pidfile.h: New. * base/CMakeLists.txt: Added handling for pidfile.c. * Makefile: Install pidfile.h. * MANIFEST: Updated. 2009-10-20 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/otp.h: Changed author and copyright because absolutely nothing is left of the previous author. 2009-10-20 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * ntp.h: Renamed to otp.h. * Makefile, MANIFEST: Adapted accordingly. 2009-10-20 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/comm.h: Adjusted proto for comm_init. * misc/ntp.h: Removed struct ntp_caps. 2009-10-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> Fixed some FIXMEs about response checking. * omp/omp.c (omp_delete_report, omp_modify_task, omp_modify_task_file): Added response checking. 2009-10-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> Use check_response where response entities have no (interesting) content, avoid duplicate code. * omp/omp.c (omp_delete_task, omp_create_target, omp_delete_target) (omp_create_config, omp_delete_config, omp_create_lsc_credential) (omp_delete_lsc_credential): Call check_response instead of checking response in place. (omp_get_nvt_details_503): Minor cosmetic. 2009-10-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> Refactored "503" calls. * omp/omp.c (get_omp_response_503): New. Extracted from other functions, added todo about possible memleak. (omp_get_nvt_all, omp_get_nvt_feed_checksum, omp_get_rules_503) (omp_get_dependencies_503, omp_get_preferences_503) (omp_get_nvt_details): Call new function, completed doc work. 2009-10-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> Moved omp related functions from openvas-client/openvas/comm.c module. * omp/omp.c (omp_get_nvt_all, omp_get_nvt_feed_checksum, omp_get_rules_503, omp_get_dependencies_503): New. Moved from openvas-client/openvas/comm.c. * omp/omp.h: Added protos for new methods. 2009-10-19 Matthew Mundell <matthew.mundell@intevation.de> * omp/xml.c (compare_entities): Continue to the rest of the comparisons when the attributes are both NULL, instead of claiming equality. 2009-10-19 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.0.beta5.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-10-19 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.0-beta4 release. * CHANGES: Updated. * VERSION: Set to 3.0.0.beta4. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-10-18 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/TODO: Removed old entry and clarified a bit. 2009-10-18 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * include/config.h.in, include/libvers.h.in, include/includes.h, misc/comm.h, misc/resolve.c, misc/pcap.c, misc/resolve.h, misc/services.h, misc/scanners_utils.c, misc/kb.c, nasl/includes.h: Replaced Nessus by OpenVAS. 2009-10-16 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.c (omp_start_task_report): New function. Body of omp_start_task adjusted to return the associated report ID if requested. (omp_start_task): Call omp_start_task_report. * omp/omp.h (omp_start_task_report): New header. 2009-10-16 Felix Wolfsteller <felix.wolfsteller@intevation.de> * omp/xml.c, omp/xml.h (print_entity_format), (foreach_print_attribute_format, print_entity_format), (print_entities_format): New. Very basic pretty printing of xml trees. (foreach_print_attribute, foreach_print_entity): Declared static. 2009-10-15 Matthew Mundell <matthew.mundell@intevation.de> * misc/openvas_server.c (openvas_server_open, openvas_server_close) (openvas_server_connect, openvas_server_attach, openvas_server_send) (openvas_server_free): Drop SIGPIPE during writes. 2009-10-15 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.c (omp_modify_task_file): Change content arg element type to void. Add a content_length arg. * omp/omp.h: Update header. 2009-10-15 Matthew Mundell <matthew.mundell@intevation.de> * misc/openvas_logging.c (openvas_log_silent): New function. * misc/openvas_logging.h: Remove param names. Add #endif comment. (openvas_log_silent): New header. 2009-10-15 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/openvas_certificate_file.c, base/openvas_certificate_file.h: Reverted last commit. 2009-10-15 Felix Wolfsteller <felix.wolfsteller@intevation.de> Refactored openvas_certificate_file to be able to parse text directly (in contrast to reading it from a file). * base/openvas_certificate_file.c: Declared string parameters const. (openvas_certificate_file_from_keyfile): New, extracted from openvas_certificate_file_read. (openvas_certificate_file_read): Call extracted method. (openvas_certificate_file_read_buffer): New. Reads from buffer, instead of from file. base/openvas_certificate_file.h: Adjusted protos. 2009-10-14 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.c (omp_get_report): Add a format arg. (omp_get_report_format): New function. * omp/omp.h: Update headers. 2009-10-14 Felix Wolfsteller <felix.wolfsteller@intevation.de> Refactored hash_table_file to be able to parse text directly (in contrast to reading it from a file). * misc/hash_table_file.c (hash_table_from_gkeyfile): New. Extracted from hash_table_read. (hash_table_read_text): New. Parse some textbuffer as GKeyFile. (hash_table_read): Call extracted method. misc/hash_table_file.h: Adjusted protos. 2009-10-14 Michael Wiegand <michael.wiegand@intevation.de> * nasl/nasl.c (main): Made command line options more consistent with other modules and coding standards. Short option for --version is now -V (was -v). 2009-10-13 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.c (check_response, omp_abort_task): New functions. * omp/omp.h (omp_abort_task): New header. 2009-10-13 Matthew Mundell <matthew.mundell@intevation.de> * include/nvt_categories.h (ACT_UNKNOWN, ACT_STRING_INIT) (ACT_STRING_SCANNER, ACT_STRING_SETTINGS, ACT_STRING_GATHER_INFO) (ACT_STRING_ATTACK, ACT_STRING_MIXED_ATTACK) (ACT_STRING_DESTRUCTIVE_ATTACK, ACT_STRING_DENIAL, ACT_STRING_KILL_HOST) (ACT_STRING_FLOOD, ACT_STRING_END, ACT_STRING_UNKNOWN) (ACT_STRING_LIST_ALL): New defines. 2009-10-10 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.c (omp_modify_task_file): New function. * omp/omp.h: Add header. 2009-10-09 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * omp/omp.c (omp_get_nvt_details_503): New. * omp/omp.h: Extended with proto accordingly. 2009-10-08 Michael Wiegand <michael.wiegand@intevation.de> * nasl/CMakeList.txt: Added defines for _FILE_OFFSET_BITS and LARGEFILE_SOURCE since they are needed by GPGME for key access. 2009-10-07 Matthew Mundell <matthew.mundell@intevation.de> * misc/openvas_server.c (openvas_server_open): Create address with getaddrinfo. 2009-10-06 Tim Brown <timb@openvas.org> * misc/network.c, misc/openvas_auth.c, nasl/nasl_scanner_glue.c base/openvas_certificate_file.c: Fixed a bunch of resource and memory leaks. 2009-10-06 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 3.0.0.beta4.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-10-06 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 3.0.0-beta3 release. * CHANGES: Updated. * VERSION: Set to 3.0.0.beta3. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-10-06 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/store.c, nasl/nasl_scanner_glue.c: Replaced openvasd by openvassd in documentation, minor cosmetics. 2009-10-06 Michael Wiegand <michael.wiegand@intevation.de> * Makefile: Expose $localstatedir and $sysconfdir set during configure time to CMake. 2009-10-06 Michael Wiegand <michael.wiegand@intevation.de> * misc/proctitle.c (setproctitle): Changed start of proctitle to match the new openvas-scanner binary name. 2009-10-05 Felix Wolfsteller <felix.wolfsteller@intevation.de> * include/libopenvas.h: Emptied, except for documentation. * Makefile: Do not install libopenvas.h anymore. 2009-10-05 Felix Wolfsteller <felix.wolfsteller@intevation.de> * include/libopenvas.h: Removed not needed function declarations and includes. * MANIFEST: Updated. 2009-10-05 Felix Wolfsteller <felix.wolfsteller@intevation.de> * includes/nvt_categories.h: New file, contains categories previously declared in libopenvas.h and a todo. * Makefile: Install nvt_categories.h * include/libopenvas.h: Removed definitions now contained in nvti_categories (ACT_*) and in openvas-scanner/pluginscheduler.h (LAUNCH_*). * nasl/nasl_init.c: Include nvt_categories instead of libopenvas. 2009-10-03 Matthew Mundell <matthew.mundell@intevation.de> * omp.c (omp_get_preferences_503): New function. * omp.h (omp_get_preferences_503): New header. 2009-09-30 Matthew Mundell <matthew.mundell@intevation.de> * nasl/openvas_logging.c (openvas_log_func): Pass the correct variable to dirname. 2009-09-30 Matthew Mundell <matthew.mundell@intevation.de> * nasl/openvas_logging.c (openvas_logging_t, load_log_configuration) (free_log_configuration): Change the default_level field to a gint pointer, so that it's possible to reliably tell if the field was present in the log config file. (openvas_log_func): Always set the default level from the config if the level was present in the log config file (including if the level is 0). 2009-09-29 Matthew Mundell <matthew.mundell@intevation.de> * nasl/openvas_logging.c (openvas_log_func): On failure to create the log file, ensure that the directory exists and try open the file again. 2009-09-28 Matthew Mundell <matthew.mundell@intevation.de> * base/CMakeLists.txt, omp/CMakeLists.txt, nasl/CMakeLists.txt: Set cmake minimum required version to 2.6. 2009-09-28 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Post-release version bump. * VERSION: Set to 3.0.0.beta3.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-09-28 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Last minute fix. * MANIFEST: Updated. 2009-09-28 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Preparing the openvas-libraries 3.0.0-beta2 release. * CHANGES: Updated. * VERSION: Set to 3.0.0.beta2. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-09-27 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * Makefile: Removed wrongly placed DESTDIRs. 2009-09-27 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/network.c, misc/services.c: Resolved libopenvas.h by respective single includes. * misc/ids_send.h: Added missing include. 2009-09-26 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.c (omp_create_lsc_credential, omp_delete_lsc_credential): New functions. * omp/omp.h: Add headers. 2009-09-25 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * base/CMakeLists.txt, nasl/CMakeLists.txt, omp/CMakeLists.txt: Setting version for .so library properly. 2009-09-25 Matthew Mundell <matthew.mundell@intevation.de> * misc/openvas_server.c (openvas_server_new): Add arg "end_type" for setting server connection type. Adjust gnutls_certificate_set_x509_key_file return check. Expand warning message a little. * misc/openvas_server.h: Add arg to header. 2009-09-25 Matthew Mundell <matthew.mundell@intevation.de> Add credential setup to openvas server interface. * misc/openvas_server.c (openvas_server_open): Turn off use of /dev/random. (openvas_server_close): Call gnutls_global_deinit. (openvas_server_session_new): Remove. Renamed to openvas_server_new. Add credential file args. Turn off use of /dev/random. Add global init. Setup credential from files. Set request mode. (openvas_server_session_free): Remove. Renamed to openvas_server_free. Call gnutls_global_deinit. (openvas_server_free, openvas_server_new): New functions, renamed from "session" versions. (openvas_server_attach): New function. * misc/openvas_server.h: Update and add headers. 2009-09-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> Removed usage of harglist for file path translations, do not export harglist headers anymore. * Makefile: Do not export harglist headers anymore. * misc/plugutils.c (get_plugin_preference_fname): Use GHashTable instead of harglist. 2009-09-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> * Makefile: Install headers from nasl to openvas/nasl. 2009-09-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/Makefile: Install headers from hg to openvas/hg. 2009-09-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> * Makefile: Install header of omp library to openvas/omp. 2009-09-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/openvas_logging.h, misc/openvas_logging.c: Moved struct openvas_logging_t from header to implementation file. 2009-09-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> Removed base/openvas_certificate module, replaced by base/certificate. * base/openvas_certificate.c, base/openvas_certificate.h: Removed. * Makefile: Do not install openvas_certificate header anymore. * base/CMakeLists.txt: Removed openvas_certificate from files list. * nasl/CMakeLists.txt: Added base as include dir; libopenvas_nasl depends on libopenvas_base. * nasl/nasl.h, nasl/nasl_signature.h: Removed definition of struct openvas_certificate and related functions. * nasl/nasl_signature.c: Adjusted include (openvas_certificate_free, openvas_certificate_new): removed (former duplicates) (nasl_get_pubkey): Switch from emalloc to g_malloc. (nasl_get_all_certificates): Switch from openvas_certificate to certificate_t. 2009-09-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/openvas_certificate_file.c (add_cert_to_file, openvas_certificate_file_read): Cleaned up includes, switch from openvas_certificate to certificate_t implementation. * base/openvas_certificate_file.h: Removed unneeded include, adjusted doc. 2009-09-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/certificate.c: Added todo regarding the set_* methods. (certificate_create_full): New, creates a certificate_t with values. * base/certificate.h (struct certificate_t): Changed types from char to gchar (are freed with g_free). (certificate_create_full): Added proto. 2009-09-24 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * Makefile (distclean): Also remove the libopenvas.pc file. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/openvas_logging.c, misc/openvas_logging.h: Renamed openvasd_logging struct to openvas_logging_t. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/nasl_packet_forgery.c: Added missing include. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * Makefile: Install header of libopenvas_base to openvas/base/. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> Apply convention for libraries, use underscore-separator. * misc/Makefile: Build and install libopenvas_misc* rather than libopenvasmisc*. * hg/Makefile: Build and install libopenvas_hg* rather than libopenvashg*. * libopenvas-config.in, nasl/CMakeLists.txt, misc/README.txt, hg/test.c: Adjusted to changes. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/ids_send.c: Added note about BSD_BYTE_ORDERING coming from config.h. * nasl/exec.c, nasl/nasl.c, nasl/nasl_cmd_exec.c, nasl/nasl_grammar.y, nasl/nasl_packet_forgery.c: Removed inclusion of includes.h, added missing includes. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/scanners_utils.c (getpts): Merged doc, replaced K&R header decl. * misc/network.c: Minor doc. * misc/network.h: Added separating newline. * misc/share_fd.c: Removed unneeded include. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/openvas_ssh_login.c, nasl/capture_packet.c, nasl/exec.c, nasl/nasl_http.c, nasl/nasl_packet_forgery.c, nasl/nasl_scanner_glue.c, nasl/nasl_var.c: Replaced "includes.h" by respective includes where possible. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/openvas_logging.c: Added missing include, corrected doc and type of local variable. * misc/openvas_logging.h: Corrected type of variable. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/hg_filter.c, hg/hg_debug.c, hg/hg_utils.c, hg/hg_subnet.c, hg/test.c, hg/hosts_gatherer.c, hg/hg_dns_axfr.c, hg/hosts_gatherer.h, hg/hg_add_hosts.c: Removed inclusion of includes.h, added missing includes. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/pcap.c: Cosmetics, doc. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/strutils.h, nasl/nasl_tree.c, nasl/nasl_signature.c, nasl/nasl_crypto2.c, nasl/preparse.c, nasl/md5.c, nasl/nasl_host.c, nasl/nasl_crypto.c, nasl/nasl_debug.c, nasl/nasl_socket.c, nasl/nasl_func.c, nasl/hmacmd5.c, nasl/nasl_text_utils.c, nasl/lint.c, nasl/nasl_misc_funcs.c, nasl/nasl_lex_ctxt.c, nasl/nasl_cmd_exec.c, nasl/nasl.c, nasl/nasl.h, nasl/regex.c, nasl/nasl_init.c, nasl/strutils.c, nasl/nasl_regex.h: Resolved "includes.h"-includes. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/nasl_socket.c: Major reformatting. 2009-09-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/comm.h, misc/openvas_logging.h: Whitespace removed. * misc/openvas_logging.c: Adjusted comments, resolved "includes.h"-include. * base/certificate.c: Cosmetics. 2009-09-23 Matthew Mundell <matthew.mundell@intevation.de> * misc/openvas_logging.c (free_log_configuration): Explicitly let go of the IO channel. (openvas_log_func): Change default_level to G_LOG_LEVEL_DEBUG, otherwise g_debug messages are always lost when this function is used for g_log_default_handler. Use a temporary openvasd_logging pointer when searching through the domain list, else the second search could overwrite the log_domain_entry found in the first search. * misc/openvas_logging.h: Add rename @todo. 2009-09-23 Matthew Mundell <matthew.mundell@intevation.de> * misc/openvas_auth.c (openvas_set_user_role): New function. * misc/openvas_auth.h (openvas_set_user_role): New header. 2009-09-22 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * MANIFEST: Updated. 2009-09-22 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * packaging/debian/patches/, packaging/debian/, packaging/: Removed. These directories are now empty anyway. The packaging is kept is separate modules. 2009-09-22 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Post-release version bump. * VERSION: Set to 3.0.0.beta2.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-09-22 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Preparing the openvas-libraries 3.0.0-beta1 release. * CHANGES: Updated. * VERSION: Set to 3.0.0.beta1. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-09-22 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/network.c: Cosmetics, doc. 2009-09-22 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/network.h, misc/network.c: Renamed ovas_server_context to ovas_scanner_context. 2009-09-22 Felix Wolfsteller <felix.wolfsteller@intevation.de> * CHANGES: Minor typo and grammar fix, added missing contributors. * ChangeLog: Fixed date. 2009-09-22 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/nasl.c (init_hostinfos, sighandlers): Removed K&R function decls. Lowercased todo to be included in doxygen generated todo-list. Removed unneeded global variable. * nasl/hmacmd5.h: Removed whitespaces. * nasl/exec.c: Removed some whitespaces, lowercased todo kexwords to be included in doxygen generated todo-list. (exec_nasl_script) Partly reformatted. (init_nasl_library) Added todo. (nasl_exec) Added brief doc. * nasl/CMakeLists.txt: Removed unnecessary lines. 2009-09-21 Matthew Mundell <matthew.mundell@intevation.de> * omp/omp.c (G_LOG_DOMAIN): New define. * omp/xml.c (G_LOG_DOMAIN): New define. (read_entity_and_text): Remove stderr printing left over from manager. * misc/openvas_logging.c (openvas_log_func): Remove the day name from time_format to make the log prefix shorter. Adjust the message tags slightly so the common messages line up nicely in the log. Add a trailing newline to the message, to be consistent with the predefined glib loggers. Flush two trailing whitespaces. (setup_log_handlers): Setup the default handler to openvas_log_func when the [*] group is present. Correct two typos. Neaten a function call. * misc/openvas_auth.c: Flush trailing blank lines. * misc/openvas_server.c: Offset all log messages in the same way. (G_LOG_DOMAIN): New define. 2009-09-21 Matthew Mundell <matthew.mundell@intevation.de> * CHANGES: Correct some typos, improve a bit of grammar. 2009-09-21 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas.pc.in: Raised glib dependency to 2.12. * configure: Updated * MANIFEST: Updated. * CHANGES: Added draft text for 3.0.0-beta1 release. * VERSION: Upgraded to 3.0.0.beta1.SVN 2009-09-21 Vlatko Kosturjak <kost@linux.hr> * configure.in: initial support for pkg-config for generating libopenvas.pc 2009-09-21 Vlatko Kosturjak <kost@linux.hr> * libopenvas.pc.in: new file, support for pkg-config 2009-09-21 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/openvas_certificate_file.c: Commented another show_error, added todo regarding re-enabling of error-reporting. 2009-09-21 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/openvas_certificates.c, base/openvas_certificates.h: Renamed to openvas_certificate (stripped trailing s). * base/openvas_certificates.c, base/openvas_certificates.h (openvas_certificate_file_write): Changed signature and implementation, get GHashTable directly instead of a context containing it. * base/openvas_certificates.c, base/openvas_certificates.h, base/openvas_certificate_file.c, base/openvas_certificate_file.h, base/severity_filter.c: Updated includes, added workaround and todos regarding i18n. * MANIFEST: Updated content. * base/CMakeLists.txt: Updated. * Makefile: Install new headers. 2009-09-21 Felix Wolfsteller <felix.wolfsteller@intevation.de> Moved the openvas_certificate_file module from openvas-client/src/openvas-lib/. * base/openvas_certificate_file.c, base/openvas_certificate_file.h: Moved from openvas-client/src/openvas-lib/. 2009-09-21 Felix Wolfsteller <felix.wolfsteller@intevation.de> Moved the openvas_certificates module from openvas-client/src/openvas-lib/. * base/openvas_certificates.c, base/openvas_certificates.h: Moved from openvas-client/src/openvas-lib/. 2009-09-21 Felix Wolfsteller <felix.wolfsteller@intevation.de> Moved the severity_filter module from openvas-client/src/util. * src/util/severity_filter.c, src/util/severity_filter.h: Moved from openvas-client/src/util. 2009-09-21 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/nasl_misc_funcs.c, nasl/nasl_init.c, misc/services.h, misc/services.c, misc/services1.c, misc/scanners_utils.h, misc/resolve.h, misc/plugutils.h, misc/plugutils.c, misc/network.c, misc/ids_send.h, misc/ids_send.c: Renamed NESSUS to OPENVAS. 2009-09-21 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/nasl_udp.h, nasl/nasl_tcp.h, nasl/nasl_scanner_glue.h, nasl/nasl_raw.h, nasl/nasl_ip.h, nasl/nasl_icmp.h, misc/rand.h, misc/comm.h: Replace NESSUS by OPENVAS. 2009-09-20 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * omp/README.txt, base/README.txt: Fixed dependency info. * misc/services1.c, misc/network.c: Renamed Nessus to OpenVAS. 2009-09-20 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * doc/README.BPF: Moved here from README.BPF. * packaging/fedora/openvas-libraries-1.0.1-1.fc8.openvas.spec, packaging/fedora/openvas-libraries-1.0.1-Makefile.diff, packaging/fedora/openvas-libraries-1.0.1-hg-Makefile.diff, packaging/opensuse/openvas-libraries-1.0.1-1.suse102.openvas.spec, packaging/opensuse/openvas-libraries-1.0.1-Makefile.diff, packaging/opensuse/openvas-libraries-1.0.1-hg-Makefile.diff: Removing hopelessly outdated packaging files. * MANIFEST: Updated. 2009-09-20 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * README.BPF: Replaced "nessusd" by "scanner". * INSTALL_README: Reworked. * configure.in: Upgraded dependency for glib from 2.6 to 2.12 in accordance with CR #38. 2009-09-19 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/openvas_ssh_login.h, misc/openvas_ssh_login.c, nasl/nasl.c, nasl/nasl_signature.c, nasl/nasl_signature.h, nasl/nasl_text_utils.c, nasl/tests/test_blowfish.nasl, nasl/tests/test_bn.nasl, nasl/tests/test_dh.nasl, nasl/tests/test_dsa.nasl, nasl/tests/test_hexstr.nasl, nasl/tests/test_md.nasl, nasl/tests/test_privkey.nasl, nasl/tests/test_rsa.nasl, nasl/tests/testsuiteinit.nasl, nasl/tests/testsuitesummary.nasl: Copyright transfer from Intevation to Greenbone. 2009-09-18 Matthew Mundell <matthew.mundell@intevation.de> Make OMP interface names consistent. * omp/omp.c (omp_delete_task): Remove. (task_status, authenticate, env_authenticate, create_task) (create_task_from_rc_file, start_task, wait_for_task_start) (wait_for_task_end, wait_for_task_stop, wait_for_task_delete): Remove. Rename with omp_ prefix. (omp_task_status, omp_authenticate, omp_authenticate_env) (omp_create_task_rc, omp_create_task_rc_file, omp_start_task) (omp_wait_for_task_start, omp_wait_for_task_end, omp_wait_for_task_stop) (omp_wait_for_task_delete, omp_delete_task): New. Renamed with prefix. * omp/omp.h: Update headers. 2009-09-18 Matthew Mundell <matthew.mundell@intevation.de> * misc/openvas_string.h: Match declaration names to definition names. 2009-09-18 Matthew Mundell <matthew.mundell@intevation.de> * misc/openvas_server.c (openvas_server_connect) (openvas_server_session_new, openvas_server_session_free): New functions. * misc/openvas_server.h: Add headers. 2009-09-17 Matthew Mundell <matthew.mundell@intevation.de> * libopenvas-config.in (--libs): Add -lopenvas_omp. 2009-09-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> Removed last OpenSSL-exception statement. openvas does not link openssl anymore. * nasl/nasl_scanner_glue.h: Removed OpenSSL-exception statement. 2009-09-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> Removed the "OpenSSL-exception" from source files in the 'misc' module (the exception itself allows to do so). openvas does not link against openssl anymore. * misc/hash_table_file.c, misc/hash_table_file.h, misc/openvas_ssh_login.c, misc/openvas_ssh_login.h: Removed the OpenSSL- exception statement. 2009-09-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/bpf_share.c, misc/ftp_funcs.c, misc/harglists.c, misc/hlst.c, misc/hlst.h, misc/network.c, misc/resolve.c: Minor cosmetics * misc/ids_send.c, misc/kb.h, misc/openvas_logging.c, misc/openvas_server.c, misc/plugutils.c, misc/www_funcs.c: Replaced uppercase TODOs by lowercase todos, to be included in the doxygen-generated todo-list. * misc/plugutils.c (get_plugin_preference_fname): Documented, reformatted. 2009-09-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> Removed the "OpenSSL-exception" from source files in the 'nasl' module (the exception itself allows to do so). openvas does not link against openssl anymore. * nasl/capture_packet.h, nasl/exec.h, nasl/nasl_cmd_exec.h, nasl/nasl_crypto2.h, nasl/nasl_debug.h, nasl/nasl_func.h, nasl/nasl_global_ctxt.h, nasl/nasl_host.h, nasl/nasl_http.h, nasl/nasl_init.h, nasl/nasl_lex_ctxt.h, nasl/nasl_misc_funcs.h, nasl/nasl_packet_forgery.h, nasl/nasl_socket.h, nasl/nasl_text_utils.h, nasl/nasl_tree.h, nasl/nasl_var.h, nasl/strutils.h: Removed the OpenSSL-exception statement. 2009-09-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> Removed the "OpenSSL-exception" from source files in the 'base' module (the exception itself allows to do so). openvas does not link against openssl anymore. * base/hash_table_util.c, base/hash_table_util.h: Removed the OpenSSL- exception statement. 2009-09-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/nvti.c, nasl/nasl_cmd_exec.c, nasl/nasl_smb.c, nasl/nasl_wmi.c, nasl/strutils.c: Replaced uppercase TODOs by lowercase todos, to be included in the doxygen-generated todo-list. * nasl/lsearch.c (lfind): Added todo, as this source module seems to be obsolete. * nasl/nasl_socket.c: Cosmetics. 2009-09-17 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas-config.in: Added the top include dir to --cflags, so that #include <openvas/xxx.h> directives will work for the modules using openvas-libraries 2009-09-16 Matthew Mundell <matthew.mundell@intevation.de> Copy string utilities from manager to libs. * Makefile (install): Add openvas_string.h. * base/openvas_string.h, base/openvas_string.c: New files. * base/CMakeLists.txt (FILES): Add openvas_string.c. * MANIFEST: Add new files. 2009-09-16 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/rand.c, misc/network.c, misc/plugutils.c, misc/services1.c, misc/services.c, nasl/nasl_socket.c: Replaced "nessus" by "openvas" in function and struct names. * misc/rand.h, misc/network.h, misc/plugutils.h, misc/services1.h, misc/services.h: Adjusted protos accordingly. 2009-09-15 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * doc/openvas-nasl.1, misc/arglists.c, misc/openvas_ssh_login.c, misc/system.c, nasl/nasl_scanner_glue.c: Renamed nessus to openvas. 2009-09-15 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/network.c: Renaming of nessus to openvas. 2009-09-15 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * nasl/nasl_nessusd_glue.c: Renamed to nasl/nasl_scanner_glue.c. * nasl/nasl_nessusd_glue.h: Renamed to nasl/nasl_scanner_glue.h. * nasl/nasl_init.c, nasl/nasl_scanner_glue.c, nasl/CMakeLists.txt: Adjusted to name change accordingly. * MANIFEST: Updated. 2009-09-15 Matthew Mundell <matthew.mundell@intevation.de> * base/CMakeLists.txt, nasl/CMakeLists.txt: Set project language to C, otherwise building requires a C++ compiler. Improve some formatting. Set policy CMP0005 to OLD. * omp/CMakeLists.txt: Set policy CMP0005 to OLD. 2009-09-15 Matthew Mundell <matthew.mundell@intevation.de> * omp/xml.c.BAK, omp/CMakeLists.txt.BAK, omp/README.txt.BAK, omp/omp.h.BAK, omp/omp.c.BAK, omp/xml.h.BAK: Remove accidentally committed backup files. 2009-09-15 Matthew Mundell <matthew.mundell@intevation.de> * omp/install_manifest.txt, omp/Makefile, omp/cmake_install.cmake, omp/CPackSourceConfig.cmake, omp/CMakeCache.txt, omp/CPackConfig.cmake, omp/CMakeFiles: Remove accidentally committed files. 2009-09-15 Matthew Mundell <matthew.mundell@intevation.de> Copy OMP client interface here from openvas-manager. * omp: New dir. * omp/CMakeLists.txt, omp/README.txt, omp/omp.c, omp/omp.h, omp/xml.c, omp/xml.h: New files. * MANIFEST: Add OMP lib files. * Makefile: Add OMP lib building. Correct typo. Flush trailing whitespace. * doc/Doxyfile, doc/Doxyfile_full: Add omp to include dirs. * misc/openvas_server.c (openvas_server_open): Add const to arg. (openvas_server_send): Check if server closed connection, as in manager. * misc/openvas_server.h: Add include guard. (openvas_server_open): Add const to arg. 2009-09-15 Matthew Mundell <matthew.mundell@intevation.de> * ChangeLog: Flush whitespace. Add spaces to headings. 2009-09-15 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/system.h: Added missing include. Again thanks to Marcus Brinkmann for finding this. 2009-09-14 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Add support for certificates for GNUTLS connections. Developed by Marcus Brinkmann. * misc/network.c (ovas_allocate_connection): Add parameter certcred and handle credentials accordingly. (nessus_register_connection): Added parameter certcred and now handle credential based connections properly. (ovas_server_context_attach): Adapted to API change. * misc/network.h: Adjusted protos accordingly. * nasl/nasl_socket.c (nasl_open_privileged_socket): Adapted to API change. 2009-09-14 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/resolve.c (nn_resolve): memcpy now copies the right size. This was spotted and fixed by Marcus Brinkmann. 2009-09-11 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/nasl_signature.c (determine_gpghome): Fixed, as OPENVAS_SYSCONFDIR already points to a openvas subdir. 2009-09-11 Felix Wolfsteller <felix.wolfsteller@intevation.de> * MANIFEST: Added missing (new) files. 2009-09-11 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * base/nvticache.c: New. Implements a Cache for NVTIs. * base/nvticache.h: New. Accordingy protos. * base/CMakeLists.txt: Add handling of module nvticache. * misc/store.c (store_dir): Replaced by nvti_cache. (store_init): Added parameter "src". Changed Code to create a NVTI Cache object. (store_load_plugin): Don't do any file-based stuff anymore. Just ask the Cache for the NVTI for the given file. (store_plugin): Adaptapted to use the new location of the cache directory. * misc/store.h: Adjusted protos accordingly. * misc/plugutils.c (plug_set_cachefile, plug_get_cachefile): Removed. These are not required anymore since the NVTI Cache knows how to find it. (_plug_get_path): Removed. (plug_get_path): Now adds directly. * misc/plugutils.h: Adjusted protos accordingly. Remove old protos plug_get_fname and plug_set_fname for which no implementation is present. 2009-09-10 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/nasl_signature.c (init_openvas_gpgme_ctx): Removed test-surviving "static" keyword. 2009-09-10 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/nasl_signature.c: Changed uppercase @TODOs to lowercase @todos. 2009-09-10 Felix Wolfsteller <felix.wolfsteller@intevation.de> * doc/Doxyfile, doc/Doxyfile_full: Added alias to generate todo list from both lower and uppercase @TODOs. 2009-09-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> * Makefile: Install base/hash_table_util header, sort installation order of headers from base alphabetically. 2009-09-09 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/hash_table_util.c, base/hash_table_util.h: New. Implements generation of a list of the keys of a GHashTable. * base/CMakeLists.txt: Added new file to the FILEs list. 2009-09-08 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/arglists.h, misc/arglists.c: Moved declaration of struct name_cache to header, expose the cache_dec function. 2009-09-08 Michael Wiegand <michael.wiegand@intevation.de> * configure.in: Make check for libpcap more robust since it relied on a symbol that might be private in some environments. Fix suggested by Jan Wagner. * configure: Regenerated. 2009-09-08 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/plugutils.c (plug_set_cve_id, plug_set_bugtraq_id): NULL guard for parameter "id". * misc/store.c (store_load_plugin): Fix setting of CVE and BID. 2009-09-07 Felix Wolfsteller <felix.wolfsteller@intevation.de> Preparing removal of rest of slightly differing arglists implementation from client by integrating changes into openvas-libraries. * misc/arglists.c (mkhash): Reformatted. * misc/arglists.c (cache_get_name, cache_add_name): Do not calculate hash value inside function, but expect it as parameter. * misc/arglists.c (cache_inc, cache_dec): Updated calls that require new parameter. * misc/arglists.c (arg_init_element, arg_add_value_at_head, arg_del_value): Added functions from clients implementation. Likely to be obsolete soon. * arglist.h: Added new protos. 2009-09-07 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Removing file "plugutils_internal.h". The only function defined there is moved to the only place where it is used. * misc/plugutils_internal.h: Removed. * misc/store.c (_add_plugin_preference): New. Moved here from plugutils.c. * misc/plugutils.c (_add_plugin_preference): Removed. Has gone to store.c. * misc/Makefile: Remove any occurance of plugutil_internal.h. * MANIFEST: Updated. 2009-09-07 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Removing file "store_internal.h". The only proto was about a function that does not exist anymore anyway. * misc/plugutils.c, misc/store.c: Don't include store_internal.h anymore. * misc/Makefile: Remove any occurance of store_internal.h. * misc/store_internal.h: Removed. * nasl/nasl_signature.c (nasl_extract_signature_fprs): Removed comments that is not true anymore. * MANIFEST: Updated. 2009-09-06 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Now by default add all information about NVT in the server arglist structures. This is the first step to further simplify the NVT information handling. * misc/store.c (store_fetch_version, store_fetch_summary, store_fetch_description, store_fetch_copyright, store_fetch_family, store_fetch_cve_id, store_fetch_bugtraq_id, store_fetch_xref, store_fetch_tag): Removed. (store_load_plugin): Always set version, description, copyright, family, cve_id, bugtraq_id, xref, tag and summary for plugin description. (store_plugin): Now uses the direct function for getting plugin attributes instead of the "_"-prefixed ones. * misc/store_internal.h: Adjusted protos accordingly. * misc/plugutils.c (plug_get_version, plug_get_summary, plug_get_description, plug_get_copyright, plug_get_family, plug_get_cve_id, plug_get_bugtraq_id, plug_get_xref, plug_get_tag): Directly deliver from present data. (_plug_get_version, _plug_get_summary, _plug_get_description, _plug_get_copyright, _plug_get_family, _plug_get_cve_id, _plug_get_bugtraq_id, _plug_get_xref, _plug_get_tag): Removed. (plug_set_version, plug_set_path, plug_set_cachefile): Guard NULL. * misc/plugutils_internal.h: Adjusted protos accordingly. 2009-09-06 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/store.c (store_fetch_path, store_fetch_oid, store_fetch_category): Removed. These are not used anywhere. * misc/store_internal.h: Adjusted protos accordingly. 2009-09-06 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/store.c (safe_copy): Removed. It is not used here anymore. 2009-09-06 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/network.c (nessus_perror): Renamed to pid_perror. * misc/services.h (NESSUS_SVC_SORT_FILES): Removed inactive define which is nowhere used anyway. (NESSUS_SVC_READS_ETC_SERVICES): Removed. This should always be used. * misc/services.c (nessus_get_svc_name): NESSUS_SVC_READS_ETC_SERVICES is always true. 2009-09-04 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/popen.c (append_argv, destroy_argv): Removed since the only module that used it is removed meanwhile. 2009-09-04 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/popen.c (nessus_popen4): Renamed to openvas_popen4. (nessus_popen): Removed. It is not used anywhere. (nessus_pclose): Renamed to openvas_pclose. * misc/popen.h: Adjust protos accordingly. * nasl/nasl_cmd_exec.c (nasl_pread): Adjust to new API accordingly. 2009-09-04 Michael Wiegand <michael.wiegand@intevation.de> * misc/openvas_auth.c (openvas_is_user_admin): Added new function to determine whether a user has administrative privileges. * misc/openvas_auth.h: Exposed openvas_is_user_admin. 2009-09-04 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/network.c (nessus_SSL_init): Renamed to openvas_SSL_init. Also removed the unused parameter. (open_SSL_connection, ovas_server_context_new): Adjusted call accordingly. * misc/network.h: Adjusted proto accordingly. * nasl/nasl.c (main): Adjusted to call of openvas_SSL_init. 2009-09-04 Michael Wiegand <michael.wiegand@intevation.de> * configure.in: Removed checks for libl and libfl which caused unnecessary linking against libl. * libopenvas-config.in: Removed handling of llib. * configure: Regenerated. 2009-09-04 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/strutils.c, nasl/strutils.h, nasl/nasl_cmd_exec.c, nasl_debug.c: Cosmetics, major reformatting. Added todos about possible replacement by glib and move to other part of openvas-libraries, doc. * nasl/nasl_var.c: Removed unnecessary include 2009-09-04 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/openvas_logging.c, misc/openvas_server.c, misc/openvas_ssh_login.c: Added todos regarding library reorganisation. 2009-09-04 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/plugutils.c: Removed K&R style function declarations, whitespaces, unused define, added doc and made a TODO indexable. 2009-09-04 Chandrashekhar B <bchandra@secpod.com> * nasl/nasl_host.c: (get_host_ip): Addressed an issue. The function was returning IPv6 mapped IPv4 address, now returns pure IPv4 address. Many applications won't accept v6 mapped v4. 2009-09-04 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas-config.in: Corrected string comparison. 2009-09-04 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/nasl_signature (init_openvas_gpgme_ctx): Added call to gpgme_version_check which apparently initializes parts of gpgme. This might fix bug #972 or #1079 (http://bugs.openvas.org/1079). With help from Michael Wiegand. 2009-09-03 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/hash_table_file.c: Transferred copyright to Greenbone. Replaced includes.h by those needed really. * misc/hash_table_file.h: Transferred copyright to Greenbone. 2009-09-03 Felix Wolfsteller <felix.wolfsteller@intevation.de> * Makefile: Install nasl.h header. 2009-09-03 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas-config.in: Corrected inverted logic: Add -lwmiclient to linker flags if libwmiclient found during configure step. 2009-09-03 Felix Wolfsteller <felix.wolfsteller@intevation.de> * Makefile: Pass HAVE_WMI client to cmake if libwmiclient was found during configure step. * libopenvas-config.in: Add -lwmiclient to linker flags if libwmiclient found during configure step. * nasl/CMakeLists.txt: Link against wmiclient if libwmiclient was found during configure step. 2009-09-03 Michael Wiegand <michael.wiegand@intevation.de> * configure.in, openvas-libraries.tmpl.in: Added support for libwmiclient detection. * configure: Regenerated. 2009-09-03 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/nasl_smb.c, nasl/nasl_wmi.c: Return NULL if no version info is available, as stated in the documentation. This avoid segfaults by unguarded calls strdup and strlen. Minor reformatting. * nasl/nasl_smb.c, nasl/nasl_wmi.c: Added TODOs about possible memleaks. 2009-09-01 Felix Wolfsteller <felix.wolfsteller@intevation.de> * configure: Regenerated. 2009-09-01 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/TODO: copied from openvas-nasl/TODO. * nasl/ChangeLog-pre-09-2009: Copied (soon old ChangeLog entries). * nasl/README.txt: New. 2009-09-01 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/CMakeLists.txt: Added target to build the openvas-nasl standalone interpreter (works at least on debian machines). * MANIFEST: Updated 2009-08-31 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * misc/network.c (auth_send): Removed call of nessus_perror because the respective errno has changed at this moment already anyway. 2009-08-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas-config.1, doc/libopenvas-config.1: Moved libopenvas-config manpage to doc. * Makefile: Install openvas-nasl manpage, adjusted path of libopenvas-config manpage. 2009-08-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> * doc/openvas-nasl.1, doc/signatures-howto.txt: Added, copied from openvas-libnasl/doc. 2009-08-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/tests/, nasl/tests/Makefile, nasl/tests/README.txt, nasl/tests/signed.nasl, nasl/tests/signed_nasl.asc, nasl/tests/test_blowfish.nasl, nasl/tests/test_bn.nasl, nasl/tests/test_db.nasl, nasl/tests/test_dsa.nasl, nasl/tests/test_hexstr.nasl, nasl/tests/md.nasl, nasl/tests/test_privkey.nasl, nasl/tests/test_rsa.nasl, nasl/tests/test_script_signing.sh, nasl/tests/testseuiteinit.nasl, nasl/tests/testsuitesummary.nasl: Added, copied from openvas-libnasl/test. 2009-08-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas-config.in, configure.in: Added lopenvas_nasl and its dependencies (from openvas-libnasl-config) to the linker flags. 2009-08-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas-config.in: Removed lopenvas_nasl from linker flags for now, as it breaks linking. 2009-08-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/network.c: Cosmetics, reformatted nsend, auth_send, nessus_perror and removed K&R styled function decls. 2009-08-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas-config.in: Added lopenvas_nasl to linker flags. * base/README.txt: Corrected. 2009-08-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> * nasl/CMakeLists.txt: Modify output of custom bison target to remove generated files within the "clean" target, split long list over multiple lines. 2009-08-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> According to CR #38 (http://www.openvas.org/openvas-cr-38.html), libopenvas_nasl is now "part of" openvas-libraries. Expecting compilation issues due to skip of the old configure step. * doc/Doxyfile, doc/Doxyfile_full: Added nasl to include dirs. * nasl/CMakeLists.txt: Added not so clean way of compiling the parser. * MANIFEST: Added contents of nasl folder. * Makefile: Added nasl to all, install clean targets. Minor cosmetics. 2009-08-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> Enabled build for the environment where the config was generated, preparing CR #38 (http://www.openvas.org/openvas-cr-38.html). * base/CMakeLists.txt: Removed duplicate (and commented) code. * nasl/CMakeLists.txt: Removed duplicate (and commented) code, added definition for OPENVAS_SYSCONF_DIR. * nasl/nasl_socket.c: Added include. 2009-08-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> Attempts to enable build, preparing CR #38 (http://www.openvas.org/openvas-cr-38.html). * nasl/capture_packet.c: Changed includes. * nasl/capture_packet.h: Added missing include. * nasl/CMakeLists.txt: Added libopenvas include directories, pass through variables. * nasl/nasl.c, nasl/nasl_init.c, nasl/nasl_ip.h, nasl/nasl_packet_forgery.c, nasl_raw.h, nasl_tcp.h: Changed includes. * Makefile: Removed. Is generated by CMake. * nasl/config.h: Added a generated config.h (from openvas-libnasl/includes) to enable compilation. * nasl/nasl_tcp.h, nasl/nasl_raw.h, nasl/nasl_icmp.h, nasl/nasl_ip.h, nasl/nasl_udp.h: Copied from openvas-libnasl/includes. 2009-08-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> Copied contents of openvas-libnasl to openvas-libraries, preparing CR #38 (http://www.openvas.org/openvas-cr-38.html). * nasl/capture_packet.c, nasl/nasl_cmd_exec.c, nasl/nasl_host.c, nasl/nasl_misc_funcs.h, nasl/nasl_socket.h, nasl/preparse.c, nasl/capture_packet.h, nasl/nasl_cmd_exec.h, nasl/nasl_host.h, nasl/nasl_nessusd_glue.c, nasl/nasl_text_utils.c, nasl/preparse.h, nasl/exec.c, nasl/nasl_crypto2.c, nasl/nasl_http.c, nasl/nasl_nessusd_glue.h, nasl/nasl_text_utils.h, nasl/regex.c, nasl/exec.h, nasl/nasl_crypto2.h, nasl/nasl_http.h, nasl/nasl_packet_forgery.c, nasl/nasl_tree.c, nasl/smb_interface_stub.c, nasl/hmacmd5.c, nasl/nasl_crypto.c, nasl/nasl_init.c, nasl/nasl_packet_forgery.h, nasl/nasl_tree.h, nasl/strutils.c, nasl/hmacmd5.h, nasl/nasl_crypto.h, nasl/nasl_init.h, nasl/nasl_regex.h, nasl/nasl_var.c, nasl/strutils.h, nasl/lint.c, nasl/nasl_debug.c, nasl/nasl_lex_ctxt_better.h, nasl/nasl_signature.c, nasl/nasl_var.h, nasl/wmi_interface_stub.c, nasl/lsearch.c, nasl/nasl_debug.h, nasl/nasl_lex_ctxt.c, nasl/nasl_signature.h, nasl/nasl_wmi.c, nasl/md5.c, nasl/nasl_func.c, nasl/nasl_lex_ctxt.h, nasl/nasl_smb.c, nasl/nasl_wmi.h, nasl/md5.h, nasl/nasl_func.h, nasl/nasl_misc_funcs_better.c, nasl/nasl_smb.h, nasl/openvas_smb_interface.h, nasl/nasl.c, nasl/nasl_global_ctxt.h, nasl/nasl_misc_funcs.c, nasl/nasl_socket.c, nasl/openvas_wmi_interface.h: Copied from openvas-libnasl/nasl. * nasl/includes.h, nasl/nasl.h: Copied from openvas-libnasl/include. 2009-08-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> Preparing move of contents of openvas-libnasl to openvas-libraries, according to CR #38 (http://www.openvas.org/openvas-cr-38.html). * nasl/, nasl/CMakeLists.txt: New. 2009-08-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> Create own library for 'base'. * libopenvas-config.in: Added libopenvas_base to linker flags (libopenvas-config --libs). * Makefile: Added base to all, install and clean targets. * misc/Makefile: Removed targets that are now built 'in' base. 2009-08-28 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * base/README: Fixed glib version. * MANIFEST: Updated. 2009-08-27 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/network.h: Added missing include, resolves compiler warnings. 2009-08-27 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/arglists.c (mkhash): Switched to hash algorithm provided by glib. 2009-08-27 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/harglists.c: Added ifdef _WIN32 blocks from clients code. * misc/network.c (recv_line): Reformat and documentation like in clients version of the file. 2009-08-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * hg/hg_add_hosts.h: Removed proto for cmpipv6addrs as there is nowhere a implementation for this function. 2009-08-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * hg/hg_add_hosts.h: Removed proto for convipv4toipv4mappedaddr. * misc/network.h: Added proto for convipv4toipv4mappedaddr. 2009-08-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> First set of changes to openvas-libraries towards IPv6 support. This corresponds to Change Request #27, http://www.openvas.org/openvas-cr-27.html Most work done by Srinivasa NL <nl.srinivas@gmail.com>. * misc/resolve.c (nn_resolve): Use getaddrinfo instead of gethostbyname to resolve hostname. Return ip address in in6_addr structure. host2ip function is not used anymore. * misc/resolve.h: Adapted proto accordingly. * misc/plugutils.c (plug_get_host_ip): Change return type to in6_addr instead of in_addr type. * misc/plugutils.h: Adapted proto accordingly. * misc/network.c (convip4toipv4mappedaddr): New. Converts ipv4 address to ipv4 mapped ipv6 address. (open_socket): Added support for ipv6. (open_sock_opt_hn): Added support for ipv6. (set_socket_src_addr): Added additionaly paramter "family" and added support for ipv6. (open_sock_option): Added support for ipv6. * misc/network.h: Prototype of set_socket_src_addr adapted accordingly. * hg/hg_utils.c (hg_resolv): Added parameters in6addr and family. Use getaddrinfo instead of gethostbyname to resolve hostname. (hg_get_name_from_ip): Parameter ip now a pointer to in6_addr. Added support to handle ipv6 address. (hg_valid_ip_addr): New. Checks whether address is a valid ipv4 or ipv6 address. * hg/hg_utils.h: Modified and added prototype declararions correspondigly. * hg/hg_subnet.c (hg_gather_subnet_hosts): Use new interface of hg_get_name_from_ip. Works only for ipv4 targets. * hg/hosts_gatherer.c (hg_next_host): Changed paramter ip to in6_addr. Added support for ipv6. hg/hosts_gatherer.h: Adapted proto for hg_next_host. (struct hg_host): Added support for ipv6. * hg/hg_dns_axfr.c (hg_dns_fill_ns_addrs): Use newer hg_resolve which returns address of hostname in in6_addr type. Works only for ipv4 hosts. * hg/hg_add_hosts.c (getaddrfamily): New. Gets the family to which the given address belongs. (hg_add_host): Added support for ipv6. (hg_add_comma_delimited_hosts): Added support for ipv6. (hg_add_ipv6host_with_options): New. Adds ipv6 hosts to host list. (hg_add_host_with_options): Store ipv4 address as ipv4 mapped ipv6 address. * hg/hg_add_hosts.h: Extended and apdapted protos accordingly. 2009-08-26 Matthew Mundell <matthew.mundell@intevation.de> * base/CMakeLists.txt: New file. Initial cmake building setup. 2009-08-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/openvas_ssh_login.c, misc/openvas_ssh_login.h: Cosmetics. Files now equal versions from openvas-client/src/openvas-lib again. * misc/system.c (emalloc): Added ifndef WIN_32 blocks from version in openvas-client. Files are otherwise nearly identical. 2009-08-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/arglists.c, misc/system.c: Cosmetics & doc, to increase similarity to arglist implementation in openvas-client. * misc/harglists.c (harg_inct): Added brackets around condition, like in openvas-clients version of this file. * misc/system.h: Removed if(n)defs for HUNT_MEM_LEAKS, as the otherwise defined functions like __hml_free could not be found to be implemented anywhere. * misc/hlst.c (create_hlst, copy_hlst): Added ifdef _WIN32 conditioned code from openvas-client/libness/hlst.c. 2009-08-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * misc/plugutils.c: Added NULL-guard that is done in addslashes.c in openvas-client, equal comments. 2009-08-24 Tim Brown <timb@openvas.org> * base/nvti.c: Further format string fixes from Stephan Kleine. 2009-08-21 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/accessrules.c (accessrule_to_file): New, write a single rule to file (accessrules_to_file): Call accessrule_to_file for each rule (handle_start_element, handle_end_element, handle_text, handle_error): New, stubs for xmlparser (accessrules_from_file): Initialize xml parser. (accessrules_add): Added Null guard. Still incomplete, added TODOs. 2009-08-21 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/accessrules.c (accessrules_to_file, accessrules_from_file): Corrected doc. * base/accessrules.c (accessrule_version, accessrule_ip): Renamed function. 2009-08-21 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * base/accessrules.c: New. New implementation for access rules. Not finished yet. * base/accessrules.h: New. Respective Protos. * misc/Makefile: Added handling for module "accessrules". 2009-08-21 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * base/nvti.c: Fixed a few indentions and incomplete doc strings. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/README.txt: Removed second blank newline at eof. * hg/README.txt, misc/README.txt: New, describe 'state' of the directories. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> * TODO, base/certificate.c, base/certificate.h, base/nvti.c, base/nvti.c, misc/openvas_logging.h: Updated paths in comments. * hg/Makefile: Updated include path for the test target. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> As part of CR #38 (http://www.openvas.org/openvas-cr-38.html), renamed library libopenvas to libopenvasmisc. * misc/Makefile, libopenvas-config.in: Changed library name and output of libopenvas-config. * misc/openvas-logging.c: Changed path in comment. * doc/Doxyfile, doc/Doxyfile_full: Adjusted input path. * hg/Makefile: Changed include path. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> * MANIFEST: Sorted. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> As part of CR #38 (http://www.openvas.org/openvas-cr-38.html), renamed openvas-libraries/libopenvas folder to openvas-libraries/misc. * libopenvas/, misc/: Moved. * Makefile: Adjusted path. * MANIFEST: Adjusted paths. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/hlst.c (_hashqueue): Cosmetics, doc. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> As part of CR #38 (http://www.openvas.org/openvas-cr-38.html), renamed libopenvas_hg to libopenvashg. * libopenvas-config.in: Adjusted output of 'libopenvas-config --libs'. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> * hg/Makefile, include/libopenvas.h, libopenvas/plugutils.h, libopenvas/www_funcs.c, base/certificate.h: Cosmetics and docs. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> As part of CR #38 (http://www.openvas.org/openvas-cr-38.html), renamed libopenvas_hg to libopenvashg. * hg/Makefile, TODO: Renamed library and references to it. * hg/test.c: Renamed library in comment. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> * doc/Doxyfile, doc/Doxyfile_full: Corrected path, libopenvas_hg is now hg. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> As part of CR #38 (http://www.openvas.org/openvas-cr-38.html), renamed openvas-libraries/libopenvas_hg folder to openvas-libraries/hg. * libopenvas_hg/, hg/: Moved. * Makefile: Adjusted path. * MANIFEST: Adjusted paths. 2009-08-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas_hg/hg_add_hosts.c (hg_add_comma_delimited_hosts): Minimal cosmetics/doc. 2009-08-17 Matthew Mundell <matthew.mundell@intevation.de> * ChangeLog: Switch to full email address. 2009-08-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/services1.c (nessus_init_svc): Added RATS:ignore flag where memcopy limit is sane. * libopenvas/openvas_auth.c (get_password_hashes): Added RATS:ignore flag where statically sized buffer is sanely used. 2009-08-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/plugutils.c (nessuslib_version): Added RATS:ignore flag where statically sized char buffer is used in a sane manner. 2009-08-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/plugutils.c (proto_post_wrapped): Removed unused variable i. 2009-08-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/nvti.c (nvti_as_openvas_nvt_cache_entry): Corrected doc. * base/nvti.h (struct nvtpref): Made comments 'available' for doxygen, although these members should not be accessed directly. 2009-08-14 Matthew Mundell <matthew.mundell@intevation.de> * libopenvas/openvas_auth.c (openvas_authenticate): Improve doc. Return 1 on g_file_get_contents fail, as this is most probably an auth failure. 2009-08-14 Matthew Mundell <matthew.mundell@intevation.de> * libopenvas/openvas_logging.c (openvas_log_func): Add log_domain NULL guard. 2009-08-13 Matthew Mundell <matthew.mundell@intevation.de> * libopenvas/openvas_logging.c (setup_log_handlers): Adjust the * check so that the * case also goes on to the next item. 2009-08-13 Felix Wolfsteller <felix.wolfsteller@intevation.de> * doc/Doxyfile, doc/Doxyfile_full: Added 'base' to input paths. 2009-08-13 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/certificate.h (certificate_t, certificates_t): Converted documentation contained in comments of struct members, to be useable by doxygen. * ChangeLog: Improved wording. 2009-08-13 Felix Wolfsteller <felix.wolfsteller@intevation.de> * base/nvti.h: Converted documentation contained in comments of struct members, to be useable by doxygen. 2009-08-12 Laban Mwangi <lmwangi@penguinlabs.co.ke> * libopenvas/openvas_logging.c, libopenvas/openvas_logging.h: Added support for the default group and tidying of comments. Fixed setup_log_handlers to load log domains from the configuration file. 2009-08-12 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * base/README.txt: Updated. 2009-08-12 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> According to CR #38 (http://www.openvas.org/openvas-cr-38.html) to reorganize openvas-libraries, this step prepares the "base" lib. * libopenvascommon: rename to "base". * base: The former directory "libopenvascommon". * Makefile, libopenvas/Makefile: replace all occurances of path "libopenvascommon" by "base". * MANIFEST: Updated. 2009-08-12 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/resolve.c: Removed definition of __u32 because it is not used anyway. Removed code that is deactivated since ever anyway. 2009-07-27 Felix Wolfsteller <felix.wolfsteller@intevation.de> * packaging/debian/control, packaging/debian/libopenvas2-dev.dirs, packaging/debian/compat, packaging/debian/libopenvas2.dirs, packaging/debian/libopenvas2-dev.install, packaging/debian/watch, packaging/debian/changelog, packaging/debian/patches/configure-grypt.dpatch, packaging/debian/patches/00list, packaging/debian/copyright, packaging/debian/libopenvas2.install, packaging/debian/rules: Removed. Was moved to /openvas-packaging/openvas-libraries/debian/trunk. 2009-07-27 Jan Wagner <Waja@cyconet.org> * packaging/debian/changelog, packaging/debian/control, packaging/debian/watch, packaging/debian/patches packaging/debian/patches/configure-grypt.dpatch packaging/debian/patches/00list, packaging/debian/copyright packaging/debian/rules: - relicense packaging to GPL-3 - New upstream release - add configure-grypt.dpatch to get grypt working well - fixing DESTDIR in rules - Add debian/watch to detect when a new version is available at wald.intevation.org - Bump Standards-Version to 3.8.2, no changes needed 2009-07-27 Laban Mwangi <lmwangi@penguinlabs.co.ke> * libopenvas/openvas_logging.c, libopenvas/openvas_logging.h: Consistency in variable names. 2009-07-27 Matthew Mundell <matthew.mundell@intevation.de> * libopenvas/openvas_logging.c (level_int_from_string): New function. (load_log_configuration): Look for level names and integers when parsing the "level" key. 2009-07-27 Matthew Mundell <matthew.mundell@intevation.de> * libopenvas/openvas_logging.c: Improve spacing. Remove @returns from void functions. Make comment formats more consistent. Shorten some comment lines. Space @params as in other modules. * libopenvas/openvas_logging.h: Improve spacing. Remove function descriptions. (openvasd_logging): Doxyfy docs. 2009-07-27 Matthew Mundell <matthew.mundell@intevation.de> * libopenvas/openvas_logging.c, libopenvas/openvas_logging.h: Convert tabs to spaces. 2009-07-27 Laban Mwangi <lmwangi@penguinlabs.co.ke> * libopenvas/openvas_logging.c: Indentation fixes. * libopenvas/openvas_logging.h: Indentation fixes. 2009-07-24 Michael Meyer <mime@gmx.de> * libopenvas/plugutils.c: Added line break to debug message because without it was not realy readable. 2009-07-24 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/Makefile: Thankfully applied patch of Stephan Kleine that closes bug 1037 ( http://bugs.openvas.org/1037 ). 2009-07-20 Matthew Mundell <matthew.mundell@intevation.de> * libopenvas/openvas_logging.c (openvas_log_func): Change the timeformat hour-minute-second separators, so that log_separator is unique. Remove log_separator from the initialisation of "prepend", as prepend_buf always starts with the log separator. Add a NULL guard to the creation of logstr. Remove the newline from the stderr output case, so that it works the same as the channel case. (setup_log_handlers): Remove the openvasmd entry, which belongs in the manager. 2009-07-19 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Add mandatory_keys to plugin arglist structure. This is part of implementing Change Request #39, http://www.openvas.org/openvas-cr-39.html. * libopenvas/store.c (store_load_plugin, store_plugin): Added handling for mandatory_keys. * libopenvas/plugutils.c (plug_mandatory_key): New. Sets mandatory keys. (plug_get_mandatory_keys): New. Gets mandatory keys. * libopenvas/plugutils.h: Added protos for plug_mandatory_key() and plug_get_mandatory_keys(). 2009-07-19 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Add mandatory_keys to NVTI. This is part of implementing Change Request #39, http://www.openvas.org/openvas-cr-39.html. * libopenvascommon/nvti.h: Added manadatory_keys to struct nvti and added respective protos. * libopenvascommon/nvti.c (nvti_free, nvti_add_pref, nvti_from_keyfile): Handle mandatory_keys. (nvti_mandatory_keys): New. Returns mandatory_keys. (nvti_set_mandatory_keys): New. Sets mandatory_keys. 2009-07-17 Matthew Mundell <matthew.mundell@intevation.de> * libopenvas/openvas_logging.c (openvas_log_func): Add log_domain NULL guard. Correct typo. (setup_log_handlers): Add "openvasmd" entry. Correct type in "openvas" entry. 2009-07-17 Matthew Mundell <matthew.mundell@intevation.de> * libopenvas/openvas_logging.c: Flush trailing whitespace. 2009-07-16 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/Makefile, libopenvas/services.h, libopenvas/services1.c: Renamed NESSUS_STATE_DIR to OPENVAS_STATE_DIR. 2009-07-12 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/rand.c: Removed emulation functions for lrand48 and srand48 since they were never exported. Updated comments. (nessus_init_random): Removed useless RATS: ignore statement. 2009-07-10 Michael Wiegand <michael.wiegand@intevation.de> * configure.in: Removed check for rand() since the result is not used anywhere. * configure: Regenerated. * include/config.h.in: Removed handling of HAVE_RAND. 2009-07-06 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * include/config.h.in: Removed NESSUSD_DIR, NESSUSD_REPORTS_DIR, NESSUSD_RULES, NESSUSD_USERS, NESSUSD_MESSAGES, PLUGINS_DIR: not used anywhere. 2009-07-05 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/store_internal.h: Removed protos for non-existant functions store_save_init and store_save_end. 2009-07-03 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/plugutils.c (proto_post_note): Readded a simple version. This needs some more engeneering to get rid of. 2009-07-03 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/plugutils.c (proto_post_wrapped, proto_post_hole, proto_post_info, proto_post_debug): Removed unneeded returns. 2009-07-03 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/plugutils.c (post_note, post_note_udp): Call proto_post_wrapped() directly instead of proto_post_note. (proto_post_note): Removed. This is a compatibility layer for the (ancient nessus-)times when "notes" where not supported (preference "ntp_client_accepts_notes"). 2009-06-29 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/plugutils.h: Added proto for plug_set_port_transport. 2009-06-27 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/plugutils.c (plug_set_family, plug_set_name, plug_set_summary, plug_set_description, plug_set_copyright): Removed superfluous parameter "language". * libopenvas/plugutils.h: Adapted protos accordingly. * libopenvas/store.c (store_load_plugin): Adapted call of plug_set_family accordingly. 2009-06-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/plugutils.c (plug_set_family, plug_set_name, plug_set_summary, plug_set_description, plug_set_copyright): According to CR#36, the language handling is removed. 2009-06-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/store.c (store_fetch_required_udp_ports, store_fetch_required_udp_ports, store_fetch_excluded_keys, store_fetch_required_keys): Removed because never used anywhere. * libopenvas/store_internal.h: Removed corresponding protos. 2009-06-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/store_internal.h (MAX_PREFS, MAGIC, pprefs, plugin): Removed all the uneeded makros and structs. (store_get_plugin): Removed proto for this nonexistant funciton. * libopenvas/store.c (store_load_plugin): Removed unused variable pp. 2009-06-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/store.c(store_init_user, -store_init_sys): Remove these deprecated functions now that this code is heading for the next major release. * libopenvas/store.h: Remove respective protos. 2009-06-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/store.c (store_get_plugin, store_get_plugin_f): Removed. These functions are not needed anymore. 2009-06-23 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvascommon/nvti.c (nvti_from_keyfile): Guard NULL pointer for g_convert. 2009-06-23 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvascommon/nvti.c (nvti_from_keyfile, nvti_to_keyfile): Before writing a copyright, description, name or summary, convert string to UTF8 and convert to latin-1 when reading it. 2009-06-15 Michael Wiegand <michael.wiegand@intevation.de> * ChangeLog: Corrected module name in last entry. 2009-06-15 Michael Wiegand <michael.wiegand@intevation.de> * configure.in: Added check for gcrypt.h which properly sets $LIBS so gcrypt can be correctly linked. This fixes the linker warnings described in Bug #1035 (http://bugs.openvas.org/1035) that occured if openvas-libraries was configured with LDFLAGS="-Wl,-z,defs" (--no-undefined). * configure: Regenerated. 2009-06-12 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Main part of the implementation for Change Request #33 (Change server-side NVT cache from binary dumps to keyfiles), see http://www.openvas.org/openvas-cr-33.html. One important effect of this change is that in the cache directory news files with the suffix ".nvti" will be created. The old ".desc" files will remain there. These can be deleted. * libopenvas/store.c (str2arglist): Apply strchr only if the string is non-empty. (store_load_plugin, store_plugin, store_fetch_path, store_fetch_version, store_fetch_summary, store_fetch_description, store_fetch_copyright, store_fetch_family, store_fetch_oid, store_fetch_cve_id, store_fetch_bugtraq_id, store_fetch_xref, store_fetch_tag, store_fetch_required_keys, store_fetch_excluded_keys, store_fetch_required_ports, store_fetch_required_udp_ports): Replace handling from "desc" files to "nvti" files. 2009-06-11 Michael Wiegand <michael.wiegand@intevation.de> Included patch provided by Ryan Schmidt to remove a build failure on Mac OS X 10.4.11. This solves Bug #1033 (http://bugs.openvas.org/1033). * libopenvas/pcap.c: Changed order of includes. 2009-06-10 Michael Wiegand <michael.wiegand@intevation.de> Post branch version bump. * VERSION: Set to 2.1.0.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-06-10 Michael Wiegand <michael.wiegand@intevation.de> Post release version bump. * VERSION: Set to 2.0.4.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-06-10 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/openvas_logging.c (openvas_log_func): Use g_strdup instead of g_strdup_printf to generate empty sting. 2009-06-10 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 2.0.3 release. * CHANGES: Updated. * VERSION: Set to 2.0.3. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-06-10 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/plugutils.c (post_note): Changed "#if 0" to "#if DEBUG" as recommended by Felix Wolfsteller to make the debug output available when debugging. 2009-06-10 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/plugutils.c (post_note): Changed "#if 1" back to "#if 0" to remove stray debug output that was accidentally enabled in rev 2958. 2009-06-10 Laban Mwangi <lmwangi@penguinlabs.co.ke> * libopenvas/openvas_logging.c, libopenvas/openvas_logging.h: Commenting in doxygen format Compile warning fixes * openvas-libraries.tmpl.in: Fix for an unintended gthread dependency 2009-06-09 Michael Wiegand <michael.wiegand@intevation.de> * libopenvascommon/nvti.c (nvti_to_keyfile): Make sure the string written does not exceed the maximum buffer size. 2009-06-08 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvascommon/nvti.c (nvti_to_keyfile): Added support of subdirectories). 2009-06-08 Michael Wiegand <michael.wiegand@intevation.de> * MANIFEST: Added missing entries. 2009-06-07 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/store.c (store_dump_plugin): Removed. This function was deactivated anyway. 2009-06-05 Matthew Mundell <matthew.mundell@intevation.de> * libopenvas/network.c (open_SSL_connection) (ovas_server_context_attach): Remove EAGAIN and EINTR checks added on 2008-11-17 (revision 1769), as GNU TLS always returns its own error codes. 2009-06-05 Matthew Mundell <matthew.mundell@intevation.de> Improve naming of nvtis functions. * libopenvascommon/nvti.c (nvtis_new, nvtis_free, nvtis_add) (nvtis_lookup): New functions, renamed from make_nvtis, free_nvtis, add_nvti and find_nvti. (make_nvtis, free_nvtis, add_nvti, find_nvti): Remove. * libopenvascommon/nvti.h: Update headers. 2009-06-04 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvas/plugutils.c (plug_set_sign_key_ids): If the key_ids are NULL, then don't add "SIGN_KEY_IDS" to the plugin description at all. 2009-06-04 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvascommon/nvti.c (nvtpref_add_to_keyfile): Removed this callback function as it is not needed anymore. (nvti_to_keyfile): Create generic keys "P1" .. "Pn" instead of using the preferences names, because those can sometimes contain chracters that are invalid for keys. Also, replace fprintf by fputs to avoid interpretation of %. 2009-05-31 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> * libopenvascommon/nvti.h: Added data structure nvtpref_t and associated functionprotos for handling NVT preferences. (nvti_t): Extended to handle its preferences. * libopenvascommon/nvti.c (nvtpref_new, nvtpref_free, nvtpref_name, nvtpref_type, nvtpref_default): New. For handling nvtpref objects. (nvti_free, nvti_from_keyfile, nvti_to_keyfile): Handle preferences accordingly. (nvti_pref_len, nvti_pref, nvti_add_pref, nvtpref_add_to_keyfile): New. (nvti_to_keyfile): Fix bug: release text only when it is really allocated. 2009-05-29 Matthew Mundell <matthew.mundell@intevation.de> Add certificate facilities. * libopenvascommon/certificate.h, libopenvascommon/certificate.c: New files. * libopenvas/Makefile: Add libopenvascommon/certificate. * Makefile: Install libopenvascommon/certificate.h. 2009-05-28 Matthew Mundell <matthew.mundell@intevation.de> * libopenvascommon/nvti.c (nvti_to_keyfile): Rename gerror to error. Free error after use. Add error->message to error message. 2009-05-28 Matthew Mundell <matthew.mundell@intevation.de> Add type nvtis for collections of NVT Infos. * libopenvascommon/nvti.c (free_nvti_for_hash_table, make_nvtis) (free_nvtis, nvtis_size, add_nvti, find_nvti): New functions. * libopenvascommon/nvti.h: Update headers. Add single include guard. * ChangeLog: Add log missed yesterday. 2009-05-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvascommon/nvti.c (nvti_to_keyfile): Fixed mem leak by freeing text, added TODO as function returns 0 also in case of errors. 2009-05-27 Matthew Mundell <matthew.mundell@intevation.de> * Makefile (install): Install libopenvascommon/nvti.h. 2009-05-27 Matthew Mundell <matthew.mundell@intevation.de> * libopenvascommon/nvti.c: Correct function name. 2009-05-27 Matthew Mundell <matthew.mundell@intevation.de> * libopenvascommon/nvti.h, libopenvascommon/nvti.c: Reformat to match standard. 2009-05-27 Matthew Mundell <matthew.mundell@intevation.de> * ChangeLog: Flush trailing whitespace. 2009-05-27 Laban Mwangi <lmwangi@penguinlabs.co.ke> Adding initial support for logging. * libopenvas/openvas_logging.c, libopenvas/openvas_logging.h: New. Shared logging functions. * libopenvas/Makefile openvas-libraries.tmpl.in Makefile: Updated. * MANIFEST: Updated. 2009-05-26 Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net> Adding a initial version for NVT Info objects. * libopenvascommon/, libopenvascommon/nvti.h, libopenvascommon/nvti.c, libopenvascommon/README.txt: New. A module for handling NVT Info objects. * libopenvas/Makefile: Added handling of module "libopenvascommon/nvti". * MANIFEST: Updated. 2009-05-19 Matthew Mundell <matthew.mundell@intevation.de> Add authentication facilities. * libopenvas/openvas_auth.c: New file. Contains functions digest_hex and get_password_hashes from ../config-manager/src/openvascd.c. * libopenvas/openvas_auth.h: New file. * libopenvas/Makefile (openvas_auth.o): New rule. * Makefile (install): Add openvas_auth.h. (doc-full): Fix comment typo. 2009-05-18 Matthew Mundell <matthew.mundell@intevation.de> * doc/Doxyfile (EXTRACT_ALL): Turn off, to enable warnings about missing function docs. 2009-05-13 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/store.c: (store_plugin) Don't try to guess the path of the NVT, this resulted in wrong paths. The filename is enough for the error message built by safe_copy. (safe_copy) Display a more descriptive error message. Clarified documentation, made variable name more fitting. 2009-05-05 Jan Wagner <waja@cyconet.org> * packaging/debian/copyright, packaging/debian/changelog: Added some copyright notices and bumped version number 2009-04-20 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/openvas_server.c (openvas_server_sendf): Fixed forgotten name change. 2009-04-17 Michael Wiegand <michael.wiegand@intevation.de> * packaging/debian/patches/: Removed. It contained a single patch which has already been incorporated into the trunk. 2009-04-16 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/network.c: Removed any code path for conditional NESSUS_CNX_LOCK. This was a "Quick & dirty patch to run Nessus from behind a picky firewall (e.g. FW/1 and his 'Rule 0'): Nessus will never open more than 1 connection at a time." It appears to be deseperately outdated and never used. OpenVAS allows to configure the number of concurrent checks, so this should be the way to go in case of firewall-based problems. 2009-04-16 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/openvas_server.h, libopenvas/openvas_server.c (openvas_server_connect_to_server): Renamed to openvas_server_open. (openvas_server_close_server_connection): Renamed to openvas_server_close. (openvas_server_send_to_server): Renamed to openvas_server_send. (openvas_server_sendf_to_server): Renamed to openvas_server_sendf. 2009-04-15 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/openvas_server.c: Made function names more intuitive, removed superfluous newlines from log messages, added a little documentation. * libopenvas/openvas_server.h: Made function names more intuitive, removed superfluous include. 2009-04-14 Michael Wiegand <michael.wiegand@intevation.de> Added a new library for GnuTLS based communication, based on work done by Matthew Mundell for the openvas-manager module. * libopenvas/openvas_server.c: New. Contains an initial set of function for GnuTLS based communication. * libopenvas/openvas_server.h: New. Header file for the new functionality. * libopenvas/Makefile: Updated. * Makefile: Updated. * MANIFEST: Updated. 2009-04-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/plugutils.c (mark_post): Fixed a probably unintended change in r2958 by Felix. 2009-04-01 Felix Wolfsteller <felix.wolfsteller@intevation.de> Corrected search path for signature files when comparing their timestamps in store module. Declared two parameter of store_load_plugin as const. * libopenvas/store.c, libopenvas/store.h (store_load_plugin): Made parameters const, corrected search path for .asc (signature) files. Was cache dir, now is same dir as plugin. 2009-04-01 Felix Wolfsteller <felix.wolfsteller@intevation.de> Corrected checks when loading plugins from cache, extended documentation, removed debug printf. * libopenvas/store.c (store_load_plugin): Corrected checks and doc. 2009-04-01 Felix Wolfsteller <felix.wolfsteller@intevation.de> More reformatting and documentation work in store module. * libopenvas/store.c: Reformatting, doc. 2009-04-01 Felix Wolfsteller <felix.wolfsteller@intevation.de> Reformatting and documentation work in store module. * libopenvas/store.c: Reformatting, doc. 2009-03-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> Disabled checking for non-printable chars when posting security messages. This allows localizations and support for e.g. german or french characters in the messages text. It is unclear why this behaviour was wished (in order to prevent NTP corruption?). * libopenvas/plugutils.c (proto_post_wrapped): Disabled replacement of non-printable characters by spaces. 2009-03-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/plugutils.c: Reformatting, whitespace-removal, K&R style replacements, doc. 2009-03-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> * Makefile: Phony target doc-dev is actually called doc-full. 2009-03-27 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/Makefile, libopenvas_hg/Makefile: Adjusted libtool calls to remove warnings about deprecated libtool usage during compile. 2009-03-06 Michael Wiegand <michael.wiegand@intevation.de> Post release version bump. * doc/Doxyfile, doc/Doxyfile_full: Set PROJECT_NUMBER to 2.0.3.SVN. * VERSION: Set to 2.0.3.SVN. 2009-03-06 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 2.0.2 release. * CHANGES: Updated. * VERSION: Set to 2.0.2. 2009-03-04 Vlatko Kosturjak <kost@linux.hr> * libopenvas/bpf_share.c: by default, put pcap device in non blocking mode - fixing plugins hang/freeze, fixes #901 2009-02-27 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/openvas_ssh_login.c, libopenvas/openvas_ssh_login.h: Updated to version used in client: Updated ssh_login struct to carry password as well, cosmetics and memleak- fix (done in openvas-client rev 2597 & 2599). 2009-02-22 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvs/www_funcs.c (build_encode_URL): Fixed string length calculation. Thanks to Michael Meyer who spotted this and sent this patch! 2009-02-22 Tim Brown <timb@nth-dimension.org.uk> * packaging/debian/control: Fixed minor typo. 2009-02-22 Tim Brown <timb@nth-dimension.org.uk> * libopenvas/Makefile: Forward ported fix for broken linking. 2009-02-22 Tim Brown <timb@nth-dimension.org.uk> * packaging/debian/changelog: New upstream release. * packaging/debian/control: Updated the control file to take account of translation work as part of the Smith review project. * packaging/debian/patches/00list, packaging/debian/patches/linker-libs.dpatch, packaging/debian/rules: Fixed broken linking (linker-libs.dpatch). 2009-02-14 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/openvas_ssh_login.c (openvas_ssh_login_file_write): Close file descriptor in case of error. 2009-02-10 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * doc/Doxyfile_full: Makes the resulting documentation even more comprehensive. Switch off Latex output. * Makefile: make src doc latex creation conditional to presence of respective directories. 2009-02-06 Michael Wiegand <michael.wiegand@intevation.de> Post release version bump. * VERSION: Set to 2.0.2.SVN. * doc/Doxyfile, doc/Doxyfile_full: Updated PROJECT_NUMBER. 2009-02-06 Michael Wiegand <michael.wiegand@intevation.de> Last minute fixes for the openvas-libraries 2.0.1 release. * MANIFEST: Updated. * Makefile: Fixed targets "clean" and "distclean" to correctly remove generated HTML documentation. 2009-02-06 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 2.0.1 release. * VERSION: Set to 2.0.1. * CHANGES: Updated. * include/libopenvas.h: Added Doxygen directives to include README and COPYING files into HTML documentation. * ChangeLog: Cleanup. * libopenvas/COPYING: Moved to COPYING, a more obvious location. * doc/Doxyfile, doc/Doxyfile_full: Updated version, set EXAMPLE_PATH. * README: Added. 2009-02-06 Felix Wolfsteller <felix.wolfsteller@intevation.de> Minor cosmetics, improved documentation. * libopenvas/kb.h: Documentation & formatting of kb_item struct. * libopenvas/services1.c: Added file flag for doc block, removed whitespaces. * libopenvas/resolve.c (host2ip) : Documented return code. * libopenvas/system.c (emalloc): Converted doc block. * libopenvas/network.c: Converted documentation blocks. * libopenvas/rand.c: Added file flag for doc block. * libopenvas/store.c: Removed structuring comments, function safe_copy documented. 2009-02-06 Felix Wolfsteller <felix.wolfsteller@intevation.de> Copied GPL Header from host_gatherer.c over to host_gatherer.h, cosmetics and doc. * libopenvas_hg/host_gatherer.c: Documentation, K&R function decl. replaced. * libopenvas_hg/host_gatherer.h: Copied GPL header from modules implementation file, doc strings converted. 2009-02-05 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/hash_table_file.c: Documentation improved, newlines. 2009-02-05 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/ids_send.c (which_ttl): Added RATS ignore and a comment explaining the rationale. 2009-02-05 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/system.c (erealloc): Removed misleading comment; the function is indeed defined in libopenvas/system.h and is used in a number of places in openvas-libraries. 2009-02-05 Felix Wolfsteller <felix.wolfsteller@intevation.de> Cosmetics and documentation in kb module. * libopenvas/kb.c: Added empty lines in comment blocks to improve readability (thanks matt), added briefs to comment blocks, removed /* within a comment block to avoid compiler warning (thanks michael), donated return types own line. 2009-02-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * include/config.h.in: Removed define of "DEFAULT_PORT" which is not used anywhere (it defaulted to ancient 3001). Removed define of "CLIENT_TIMEOUT". It is not used anywhere. Removed define of "SERVER_TIMEOUT". It is not used anywhere. Removed define of "LOGMORE". It is not used anywhere. Removed define of "NESSUSD_KEYFILE", "NESSUSD_USRKEYS", "NESSUSD_KEYLENGTH" and "NESSUSD_MAXPWDFAIL". These are not used anywhere. Removed define of "PLUGIN_TIMEOUT". It is not used in this module. Removed define of "LOG_WHOLE_ATTACK". It is not used in this module. 2009-02-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Removed any code path that is conditional to "ENABLE_RHLST". It was never used, especially because it would require a file "rhlst.h" which isn't present at all. * libopenvas/hlst.h: Removed any code path that is conditional to "ENABLE_RHLST". * libopenvas/hlst.c: Removed any code path that is conditional to "ENABLE_RHLST". * include/config.h.in: Removed undef for ENABLE_RHLST. 2009-02-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Some cleanups. Basically removing never-used code. * libopenvas/plugutils.c (is_shell_command_present): Removed. It is not used anywhere except in openvas-plugins/plugins/nmap_wrapper/nmap_wrapper.c for very ancient NASL level. * libopenvas/plugutils.h: Removed proto accordingly. * libopenvas/popen.c (nessus_popen4): Removed unused code that is deaactivcated with "#if 0". (append_argv, destroy_argv): marked as to be deleted eventually. * libopenvas/network.c (nessus_print_SSL_certificate, nessus_print_peer_SSL_certificate): Removed. It is unused code that was deactivcated with "#if 0". (nsend): Removed unused code that was deactivated with "#if 0". 2009-01-28 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/store.c (store_plugin): When creating a cache file for a plugin, now take care a subdirectory is created in the cachefolder - in case the plugin is located in a subfolder of the plugin folder accordingly. 2009-01-27 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/store.c (store_plugin): Fixed a bug: In case of using cache_folder, the wrong filenames for the actual plugin file where written into the cache file. 2009-01-23 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/store.c (store_init): Also handle NULL for its parameter. 2009-01-23 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/store.c (store_dir, store_init): Improved comments and made implementation more robust. store_init will not anymore try to create the directory. 2009-01-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> Changed API (new parameter in openvas_ssh_login_file_read). Fixes build of latest openvas-server. * libopenvas/openvas_ssh_login.c, libopenvas/openvas_ssh_login.h: Changed file headers to indicate that they are part of openvas-libraries. * libopenvas/openvas_ssh_login.c (openvas_ssh_login_file_read): Added parameter check_keyfiles to allow exclusion/inclusion of logins that are lacking pub/private key files, included parameter in documentation. * libopenvas/openvas_ssh_login.h: Adjusted proto for openvas_ssh_login_file_read. 2009-01-21 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/store.h: Applied gcc deprecation marker for deprecated functions. 2009-01-20 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/Makefile: Fixed typo in LO_OBJS which caused the build to fail on amd64. 2009-01-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> Added make targets for openvas_ssh_login module. * libopenvas/Makefile: Included openvas_ssh_login module. 2009-01-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> Inclusion of openvas_ssh_login module (copy from client). * libopenvas/openvas_ssh_login.c, libopenvas/openvas_ssh_login.h: Added. * MANIFEST, Makefile, libopenvas/Makefile: Updated. 2009-01-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> Inclusion of hash_table_file module (copy from client). * libopenvas/hash_table_file.c, libopenvas/hash_table.h: Added. * MANIFEST, Makefile, libopenvas/Makefile: Updated. 2009-01-13 Felix Wolfsteller <felix.wolfsteller@intevation.de> * ChangeLog: Clarified last ChangeLog entry (choice of GPL header). * libopenvas_hg/hg_utils.c: Replaced K&R function declarations, documentation. 2009-01-12 Felix Wolfsteller <felix.wolfsteller@intevation.de> Added GPL header from host_gatherer.c to other constituent files of the host_gatherer library (referenced as "HostLoop2 library" in hg_add_host.c). * libopenvas_hg/hg_debug.c, libopenvas_hg/hg_filter.h, libopenvas_hg/test.c, libopenvas_hg/hg_utils.h, libopenvas_hg/hg_subnet.h, libopenvas_hg/hg_dns_axfr.h, libopenvas/hg_add_hosts.h : Added GPL header. 2009-01-12 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas_hg/hg_filter.c: Replaced K&R function headers, transformed comments to javadoc style, removed some whitespaces. 2009-01-12 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas_hg/hg_add_hosts.c (hg_add_comma_delimited_hosts): Reformatted. 2009-01-08 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/store.c (store_load_plugin): Fixed memory leaks. 2009-01-04 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Name change for cached ("description") files for NVTs. They used to have the suffix ".desc" instead of ".nasl" but they now have the very same name as the corresponding NVT plus additional suffix ".desc", e.g. "x.nasl" will be "x.nasl.desc". This also prevents that e.g. "x.nasl" and "x.nes" (or "x.oval") will overwrite each others' cache. It is recommendable to clean the .desc directory to avoid unnecessary old cache files. * libopenvas/store.c (store_plugin): Added doc string and now uses g_build_filename to assemble filenames instead of doing this on our own. Append ".desc" rather than replace a present suffix. (store_load_plugin): Updated doc string and now uses g_build_filename to assemble filenames instead of doing this on our own. Append ".desc" rather than replace a present suffix. Set the full path as cachefile. (store_get_plugin_f): Aggregated params "dir" and "file" into "desc_file". Thus removed code to assemble name on our own. (store_get_plugin): Adapted call of store_get_plugin_f accordingly, assuming the given desc_file is the full path to the cache file. 2009-01-03 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/store.c (store_plugin): change return value to void, because the function never returns something else than NULL. Also any use of the method does not consider a return value at all. Thus cleaning up this method. * libopenvas/store.h: Updated proto of store_plugin accordingly. 2009-01-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Removing the handling of separate user-specific cache dir. This code are remains of the unsecure feature of plugin upload. Apart from this, the OpenVAS Server should eventually not be responsible anymore for user-specific data storage. * libopenvas/store.c (usr_store_dir, sys_store_dir, current_mode): Removed these static variables as they are not needed anymore. (store_dir): New. Static variable to hold the cache dir. (MODE_SYS, MODE_USR): Removed these macros as they are not needed any more. (store_init, store_init_sys): Use store_dir instead of sys_store_dir. (store_init_user): Removed functionality and marked as deprecated. Now it simply calls store_init_sys(). (store_get_plugin): Reduced functionality to direct call of store_get_plugin_f(), because distinction between user and sys not necessary anymore. (store_plugin): Removed distinction between sys and user. 2009-01-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Further patches by Stjepan Gros in preparation of Change Request #24 (subdirs for NVTs, http://www.openvas.org/openvas-cr-24.html). * libopenvas/store.c (store_init_sys): Marked as deprecated. (store_init): New. Simply sets the "sys_store_dir" without appending ".desc". (store_get_plugin): Renamed param "name" to "desc_file". * libopenvas/store.h: Added proto for store_init. 2009-01-02 Michael Wiegand <michael.wiegand@intevation.de> Added missing includes to enable compilation on Darwin and NetBSD, based on suggestions by Adrian Portelli. This solves parts of bug #860 (http://bugs.openvas.org/860) and bug #862 (http://bugs.openvas.org/862). * libopenvas/pcap.c: Added missing include for netinet/in.h. * libopenvas/plugutils.c: Changed to use sys/wait.h instead of wait.h. * libopenvas/bpf_share.h: Added missing include for sys/types.h. * libopenvas/popen.c: Added missing include for sys/resource.h. 2009-01-02 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/kb.c: Documentation. 2009-01-02 Michael Wiegand <michael.wiegand@intevation.de> * configure: Regenerated to completely remove --enable-debug-store. 2009-01-01 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> More patches by Stjepan Gros in preparation of Change Request #24 (subdirs for NVTs, http://www.openvas.org/openvas-cr-24.html). * libopenvas/store.c: Replaced any call of plug_get_fname by plug_get_cachefile. (store_load_plugin): Replaced call of plug_set_fname by plug_set_cachefile. * libopenvas/plugutils.c (plug_get_fname, plug_set_fname): Removed. 2008-12-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> As Result of CR #20, added two doxygen configuration files and targets to generated source documentation. * doc/Doxyfile: Added. Basic configuration file. * doc/Doxyfile_full: Added. Enables graph generation. * Makefile: Targets 'doc' and 'doc_full' added, 'clean' altered, such that it will remove generated documentation found in doc/generated. 2008-12-31 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * configure.in, include/config.h.in: Removed any remains of DEBUG_STORE as it is not used anywhere in the code. This also removed the configure option "--enable-debug-store". 2008-12-30 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/store.c: Removed OLD_CVE_SZ, OLD_BID_SZ and OLD_XREF_SZ and their use because this is only meant to support rather old version of Nessus. The removed code was conditionally for DEBUG_STORE anyway. 2008-12-30 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Removing unused code. * libopenvas/store.c (store_fetch_dependencies, store_fetch_timeout, store_fetch_name): Removed. This function is never called since a long time. * libopenvas/store_internal.h: Removed proto for store_fetch_dependencies, store_fetch_name and store_fetch_timeout. * libopenvas/plugutils.c (plug_get_deps, plug_get_timeout, plug_get_name): Removed code that is never executed. TODO: Added note on the broken concept of plugutils/store calling each other. 2008-12-30 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/kb.h: Comments. * libopenvas/kb.c: Transformed comments to javadoc, slight doc improvements. 2008-12-30 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Reduced the middle layer of the plugin functions that do not use the cache. * libopenvas/store.c (store_plugin): Replace call of _plug_get_id() by plug_get_id() and dito for several other functions (see below). * libopenvas/plugutils_internal.h: Removed unneeded protos. * libopenvas/plugutils.c (plug_get_id): Moved contents of _plug_get_id here. (_plug_get_id): Removed. (plug_get_oid): Moved contents of _plug_get_oid here. (_plug_get_oid): Removed. (plug_get_required_keys): Moved contents of _plug_get_required_keys here. (_plug_get_required_keys): Removed. (plug_get_excluded_keys): Moved contents of _plug_get_excluded_keys here. (_plug_get_excluded_keys): Removed. (plug_get_required_ports): Moved contents of _plug_get_required_ports here. (_plug_get_required_ports): Removed. (plug_get_required_udp_ports): Moved contents of _plug_get_required_udp_ports here. (_plug_get_required_udp_ports): Removed. (plug_get_deps): Moved contents of _plug_get_deps here. (_plug_get_deps): Removed. (plug_get_timeout): Moved contents of _plug_get_timeout here. (_plug_get_timeout): Removed. (plug_get_name): Moved contents of _plug_get_name here. (_plug_get_name): Removed. (plug_get_fname): Moved contents of _plug_get_fname here. (_plug_get_fname): Removed. (plug_get_category): Moved contents of _plug_get_category here. (_plug_get_category): Removed. * libopenvas/kb.h: Added a note on NEW_KB_MGMT. 2008-12-29 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Some patches by Stjepan Gros in preparation of Change Request #24 (subdirs for NVTs, http://www.openvas.org/openvas-cr-24.html). * libopenvas/plugutils.c (plug_set_cachefile): New. Sets the "CACHEFILE". (plug_get_cachefile): News. Retrieves the "CACHEFILE". * libopenvas/plugutils.h: Added protos for plug_set_cachefile and plug_get_cachefile. 2008-12-20 Tim Brown <timb@nth-dimension.org.uk> * libopenvas_hg/Makefile, libopenvas/Makefile, openvas-libraries.tmpl.in: Honour LDFLAGS. 2008-12-19 Michael Wiegand <michael.wiegand@intevation.de> * configure: Regenerated to include fix for Mac OS X. 2008-12-19 Tim Brown <timb@nth-dimension.org.uk> * configure.in: Improved #761, should now work on Mac OS X where __dn_expand does not exist. 2008-12-17 Michael Wiegand <michael.wiegand@intevation.de> Post release version bump. * VERSION: Set to 2.0.1.SVN. 2008-12-17 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 2.0.0 release. * CHANGES: Updated. * VERSION: Set to 2.0.0. 2008-12-16 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/plugutils_internal.h: Added declaration of _plug_get_tag. 2008-12-16 Michael Wiegand <michael.wiegand@intevation.de> Updated build environment to use an up-to-date libtool version. * config.guess, config.sub, ltmain.sh: Regenerated. 2008-12-10 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/proctitle.c (setproctitle): Reverted one instance of strncpy usage back to strcpy since it causes issue on server startup under certain circumstances. 2008-12-05 Michael Wiegand <michael.wiegand@intevation.de> Post release version bump. * VERSION: Set to 2.0.0.rc2.SVN. 2008-12-05 Michael Wiegand <michael.wiegand@intevation.de> Preparing the openvas-libraries 2.0-rc1 release. * CHANGES: Updated. * VERSION: Set to 2.0.0.rc1. 2008-12-05 Felix Wolfsteller <felix.wolfsteller@intevation.de> * libopenvas/plugutils.c : Changed comment style, added param documentation for plug_set_sign_key_ids. 2008-12-05 Michael Wiegand <michael.wiegand@intevation.de> Checking for potential code quality issues ahead of the 2.0-rc1 release, setting ignore flags for false positives and using more secure functions for certain string manipulations. * libopenvas_hg/test.c (main): Don't warn against getopt usage, it is not critical here since this application is only intended for demonstration purposes. * libopenvas/pcap.c (get_random_bytes): Ignore warning, this random seed is random enough for our purposes. * libopenvas/plugutils.c: (plug_set_cve_id, plug_set_bugtraq_id, plug_set_xref, plug_set_tag, proto_post_wrapped) Ignore warnings regarding strcat since the memory is allocated correctly before calling strcat. (host_add_port_proto, kb_get_port_state_proto, mark_successful_plugin, mark_post, add_plugin_preference, proto_post_wrapped, scanner_add_port, plug_set_port_transport, plug_get_port_transport, plug_set_ssl_item, find_in_path) Ignore warnings regarding snprintf since libc4 (where snprintf is a security issue) is most certainly not present on system able to compile and run openvas-libraries. (plug_get_key, plug_get_host_open_port) Ignore warnings about lrand48 being not random enough; it is random enough for the usage here. (find_in_path) Removed obsolete code, change sprintf usage to snprintf. * libopenvas/network.c: (get_encaps_name, get_encaps_through, open_sock_tcp, auth_printf) Ignore (v)snprintf warnings; see above. (_socket_get_next_source_addr) Ignore warning about lrand48; see above. * libopenvas/network.h: Ignore false positive in function declaration. * libopenvas/proctitle.c: (initsetproctitle) Changed ignore flag to RATS so both flawfinder and RATS honor it. (setproctitle) Ignore snprintf warnings (see above), change strcpy usage to strncpy. * libopenvas/www_funcs.c: (build_encode_URL) Change strcpy usage to strncpy, change sprintf usage to snprintf, ignore snprintf warnings (see above), ignore lrand48 warnings (see above). * libopenvas/rand.c (nessus_init_random, lrand48, srand48): Ignore warnings about insufficient randomness. * libopenvas/ftp_funcs.c (ftp_log_in): Changed remaining sprintf usage to snprintf, ignore snprintf warnings (see above). * libopenvas/store.c: (arglist2str, store_load_plugin, store_plugin, store_get_plugin_f) Change strcat usage to strncat; ignore RATS warnings regarding strncat since sufficient memory is allocate before strncat usage. (safe_copy, store_plugin) Change ignore flag to RATS. (store_init_sys, store_init_user, store_get_plugin_f, store_load_plugin, store_plugin) Ignore snprintf warnings (see above). 2008-12-03 Michael Wiegand <michael.wiegand@intevation.de> Implementing CR #22 (New script_tag Command, http://www.openvas.org/openvas-cr-22.html). * libopenvas/plugutils.c: Added plug_set_tag, plug_get_tag and _plug_get_tag functions. * libopenvas/store_internal.h: Added tag field to struct, incremented magic number, updated function declarations. * libopenvas/plugutils.h: Updated function declarations. * libopenvas/store.c: Added store_fetch_tag function. (store_plugin) Added support for script_tag. 2008-11-18 Tim Brown <timb@nth-dimension.org.uk> * packaging/debian/changelog: Updated. 2008-11-18 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/share_fd.c: Re-added missing include that resulted in recv_fd failing due to missing defines. 2008-11-18 Michael Wiegand <michael.wiegand@intevation.de> Fixing version requirements for glib as pointed out by atomicturtle. * configure.in: Updated glib requirements to >= 2.6.0 * configure: Regenerated. 2008-11-17 Matthew Mundell <matt@mundell.ukfsn.org> * libopenvas/network.c (ovas_get_tlssession_from_connection): Return address instead of value, to match return type. (open_SSL_connection): Check errno for EINTR and EAGAIN after gnutls_handshake. (ovas_server_context_attach): Retry gnutls_handshake if necessary. 2008-11-14 Michael Wiegand <michael.wiegand@intevation.de> Post release version bump. * VERSION: Set to 2.0.0.beta3.SVN. 2008-11-14 Michael Wiegand <michael.wiegand@intevation.de> Preparing the 2.0-beta2 release. * VERSION: Set to 2.0.0.beta2. * MANIFEST: Updated. * CHANGES: Updated. 2008-11-14 Michael Wiegand <michael.wiegand@intevation.de> * openvas-libraries.tmpl.in: Added datarootdir to remove configure warning and to be compatible with autoconf 2.60 (see http://www.gnu.org/software/libtool/manual/autoconf/Changed-Directory-Variables.html). 2008-11-14 Michael Wiegand <michael.wiegand@intevation.de> Applying patch provided by Stjepan Gros. * libopenvas/arglists.c (arg_dump): Minor reformattings, added cast to avoid fprintf format string warning. 2008-11-13 Felix Wolfsteller <felix.wolfsteller@intevation.de> Narrowed down space for fingerprints in servers cache. Attention: Server cache has to be rebuilt! (remove .desc in plugin directory) * libopenvas/store_internal.h : Decreased fingerprint array size. * ChangeLog : Email typo fixed. 2008-11-12 Michael Wiegand <michael.wiegand@intevation.de> Applying patch provided by Stjepan Gros to improve 64-bit cleanliness. * configure.in: Added check for the glib2 library. * configure: Regenerated. * aclocal.m4: Regenerated. * libopenvas/harglists.c, libopenvas/arglists.c, libopenvas/plugutils.c, libopenvas/network.c, libopenvas/Makefile, libopenvas/store.c, libopenvas/scanners_utils.c, libopenvas/kb.c, openvas-libraries.tmpl.in: Introduced glib library. * libopenvas/harglists.c, libopenvas/harglists.h, libopenvas/arglists.c, libopenvas/plugutils.c, libopenvas/network.c, libopenvas/scanners_utils.c, libopenvas/kb.c, libopenvas/store.c: 32/64-bit cleanup. * libopenvas/plugutils.c: Minor reformatings. 2008-11-12 Michael Wiegand <michael.wiegand@intevation.de> * configure.in: Added AC_PREREQ directive to tell autoconf to generate a 2.50-style configure script. 2008-11-11 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/network.c (ovas_get_connection_data): Renamed to ovas_get_tlssession_from_connection and made it return the tls session directly instead of connection data. This way it is avoided to expose the internal data structure "nessus_connection". It remains internal now. * libopenvas/network.h: Updated proto accordingly and added include for now-necessary gnutls.h. 2008-11-11 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/store.c (store_load_plugin): Fixed usage of legacy ID scheme that resulted in an incorrect OID being transmitted to the client when processing NVTs without any legacy ID. 2008-11-10 Michael Wiegand <michael.wiegand@intevation.de> Removed local copies of getopt; the functionality provided by getopt has been replaced with glib as explained in Change Request #9 (http://www.openvas.org/openvas-cr-9.html). * include/config.h.in: Removed obsolete defines for getopt. * configure.in: Removed obsolete checks for getopt. * configure: Regenerated. * libopenvas/getopt.c, libopenvas/getopt.h, libopenvas/getopt1.c: Removed obsolete local copies of getopt. * libopenvas/Makefile: Removed handling of getopt files. * TODO: Removed section regarding getopt copies. * MANIFEST: Updated. * Makefile: Removed handling of getopt files. 2008-11-07 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/network.c, libopenvas/network.h: Added ovas_get_connection_data function provided by Matthew Mundell as support for the upcoming OpenVAS Management functionality. 2008-11-06 Michael Wiegand <michael.wiegand@intevation.de> * INSTALL_README: Updated note regarding gnutls version requirements as pointed out by Toan Nguyen. 2008-11-05 Felix Wolfsteller <felix.wolfsteller@intevation.de> Work on Change Request #17 (http://www.openvas.org/openvas-cr-17.html - "OTP: Make NVT signatures available to OpenVAS-Client"). Replaced sending of dummy certificate key oids by "real" fingerprints. * libopenvas/store.c (store_load_plugin): Fixed tests about signature file, replaced obsolete ID check by OID check, removed dummy string. 2008-10-31 Felix Wolfsteller <felix.wolfsteller@intevation.de> Steps to an implementation of Change Request #17 (http://www.openvas.org/openvas-cr-17.html - "Make NVT signatures available to OpenVAS-Client"). Adds the new field "sign_key_ids" to plugin-structures and the .desc store. Until soon, just a dummy- string will be saved and eventually transmitted by the server. IMPORTANT: Breaks compatibility and renders old server .desc- cache files useless. * libopenvas/plugutils.c (plug_set_sign_key_ids, plug_get_sign_key_ids): Added getter & setter to retrieve key-ids of certificates of a plugin. * libopenvas/plugutils.h: Prototypes for plug_set_sign_key_ids and plug_get_sign_key_ids added. * libopenvas/store_internal.h: Added sign_key_ids field to plugin struct and increased magic number for server-side cache (.desc files) * libopenvas/store.c (store_init_sys, store_init_user): Added comments. * libopenvas/store.c (store_load_plugin): Check if signature file is new than cache (functionality will be moved), set sign_key_ids according to cache, added comments. * libopenvas/store.c (store_plugin): Stores the (dummy) key_id- string. 2008-10-12 Tim Brown <timb@nth-dimension.org.uk> * packaging/debian/changelog: Updated. * packaging/debian/copyright: Updated. * packaging/debian/rules: Cleaned up. * packaging/debian/libopenvas2-dev.dirs, packaging/debian/libopenvas2-dev.install, packaging/debian/libopenvas2.dirs, packaging/debian/libopenvas2.install: Added. 2008-10-09 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/pcap.c: Added missing include for config.h; this fixes a bug caused by a missing #define that led to a segfault on 64bit machines and was discovered by Michael Meyer. 2008-09-23 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/ntp.h: Removed elements "scan_ids", "dns" and "pubkey_auth" from struct ntp_caps. * libopenvas/scanners_utils.c (comm_send_status): Removed unneeded variable declaration. 2008-09-23 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/ntp.h: Removed elements "md5_caching", "ntp_11", "plugins_oid", and "plugins_version" from struct ntp_caps. 2008-09-23 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/scanners_utils.c(comm_send_status): Removed conditional for ntp_11, because this is standard for otp. * libopenvas/plugutils.c (scanner_add_port): Removed conditional for ntp_11, because this is standard for otp. 2008-09-23 Michael Wiegand <michael.wiegand@intevation.de> Post release version bump. * VERSION: Set to 2.0.0.beta2.SVN. 2008-09-23 Michael Wiegand <michael.wiegand@intevation.de> Last minute fix to MANIFEST for 2.0-beta1. * MANIFEST: Updated. 2008-09-23 Michael Wiegand <michael.wiegand@intevation.de> Doing the 2.0-beta1 release. * VERSION: Set to 2.0.0.beta1. * CHANGES: Updated. 2008-09-23 Michael Wiegand <michael.wiegand@intevation.de> Fixed uses of sprintf in libopenvas/plugutils.c that could lead to buffer overflows under certain circumstances. Told RATS and flawfinder to ignore the use of snprintf; we will assume that glibc provides us with an up-to-date snprintf. Changed "flawfinder" ignore statements to "RATS" since the "RATS" keyword is supported by both RATS and flawfinder. * libopenvas/plugutils.c (plug_set_id, _add_plugin_preference, plug_set_replace_key): Replaced sprintf usage with snprintf. 2008-09-22 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/plugutils.c (proto_post_wrapped): escape_crlf is now standard with OTP 1.0. Removed unused variables caps and t. * libopenvas/ntp.h: Removed elements "plugins_xrefs", "plugins_bugtraq_id", "md5_by_name", "fast_login", "dependencies", "plugins_cve_id", "ciphered", "escape_crlf" and "timestamps" from struct ntp_caps. Removed defines for NTP_10, NTP_11 and NTP_12. 2008-09-19 Michael Wiegand <michael.wiegand@intevation.de> Added support for new LOG and DEBUG messages. * libopenvas/plugutils.c (proto_post_log, post_log, post_log_udp, proto_post_debug, post_debug, post_debug_udp): Added functions to support new LOG and DEBUG messages. * libopenvas/plugutils.h: Added function declarations for new functions. 2008-09-16 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/plugutils.c (plug_get_oid): Do not use cached OIDs, use _plug_get_oid instead of store_fetch_oid; otherwise plug_get_oid will return wrong OIDs under certain circumstances, which breaks qsort among others. 2008-09-09 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/plugutils.c (mark_successful_plugin, mark_post): Use OIDs instead of IDs for logging messages and plugin success in KB. 2008-09-09 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/plugutils.c (proto_post_wrapped): Use OIDs instead of IDs, removed obsolete code. 2008-09-02 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/network.c (ovas_server_context_attach): Display gnutls error messages only when DEBUG_SSL is defined. 2008-08-31 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/network.h: Added an explicit include. 2008-08-21 Vlatko Kosturjak <kost@linux.hr> * libopenvas/plugutils.c (plug_set_id): Display "Legacy detected plugin" only if DEBUG is defined 2008-07-31 Tim Brown <timb@nth-dimension.org.uk> * libopenvas/plugutils.c: Fixed duplicate declaration of oldid. * libopenvas/ntp.h: Added definition for ONTP/1.3. 2008-07-30 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/pcap.c (getinterfaces): Added a FIXME reminder about bad programming style with potential of runtime failires as reported by Hanno Böck in order to not forget about this problem. 2008-07-18 Tim Brown <timb@nth-dimension.org.uk> * libopenvas/plugutils.c, libopenvas/plugutils.h: Added additional checks to plug_set_id and plug_set_oid functions, so that setting an OID can not override an a legacy ID. Moreover, setting a legacy ID implictly sets a legacy OID. 2008-07-08 Tim Brown <timb@nth-dimension.org.uk> * ChangeLog, openvas-libraries/libopenvas/store_internal.h, packaging/debian/changelog: Fix typos. 2008-07-07 Jan Wagner <waja@cyconet.org> * packaging/debian/changelog: Set openvas-distro-deb@wald.intevation.org as Debian Maintainer. * packaging/debian/changelog, packaging/debian/copyright, packaging/debian/rules: Remove trailing witespaces at EOL and EOF. * packaging/debian/changelog, packaging/debian/control: Move Section to right place for openvas-libraries in control. * packaging/debian/changelog, packaging/debian/control: Also depend on libgnutls-dev, libpcap-dev for -dev. * packaging/debian/changelog, packaging/debian/libopenvas1.dirs, packaging/debian/libopenvas1-dev.dirs: Remove debian/*.dirs since unneeded. 2008-07-04 Jan Wagner <waja@cyconet.org> * packaging/debian/changelog, packaging/debian/control: New debian package version with some minor changes. Set openvas-distro-debian@wald.intevation.org as Debian Maintainer. 2008-07-04 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas_hg/hg_dns_axfr.c (hg_dns_axfr_add_host) (hg_dns_read_ns_from_answer, hg_dns_axfr_query): Replaced ns_get16 with local copies taken from glibc as ns_get16 proved to be not very portable either and led to problems in the build process for RPMs. 2008-06-30 Michael Wiegand <michael.wiegand@intevation.de> Post-release version bump. * VERSION: Set to 1.0.3.SVN. 2008-06-30 Michael Wiegand <michael.wiegand@intevation.de> Doing the 1.0.2 release. * VERSION: Set to 1.0.2. * CHANGES: Updated. 2008-06-27 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas-config.in: Fix variable replacement problems. Original problem report and initial patch supplied by Ales Nosek. 2008-06-25 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Simplify handling of libopenvas-config: The two-step method is not necessary. * libopenvas-config.pre.in: Removed. Renamed to libopenvas-config.in. * libopenvas-config.in: New. Former libopenvas-config.pre.in. * configure.in: Process libopenvas-config.in instead of libopenvas-config.pre.in. * Makefile: Removed any processing of libopenvas-config. * configure: Updated. * MANIFEST: Updated. 2008-06-25 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Removing handling of "CIPHER" information because the client-server communication is always encrypted. * configure.in: Removed handling of "cipher_cflags" and "use_cipher". This means the option --enable-cipher is not available anymore. * libopenvas-config.pre.in: Removed handling of CIPHER and CIPHER_CFLAGS. * openvas-libraries.tmpl.in: Removed handling of USE_CIPHER and CIPHER_CFLAGS. * INSTALL_README: only slightly improved. Now does not mention anymore --enable-cipher option. * configure: Updated. 2008-06-20 Tim Brown <timb@nth-dimension.org.uk> * libopenvas/hlst.c (sort_hlst): Avoid sorting an hlst if it has no entries since that will lead to an emalloc issue under certain conditions. 2008-06-12 Michael Wiegand <michael.wiegand@intevation.de> * libopenvas/store_internal.h: Increased MAGIC number to reflect changes as suggested by Bernhard Herzog. Deleting /lib/openvas/plugins/.desc/* is no longer neccessary. 2008-06-12 Michael Wiegand <michael.wiegand@intevation.de> Increased the space available to plugins for preferences storage. This resolves an issue with plugins with a large number of radio button options, as they need to store the text for all options in the name field. IMPORTANT: You need to delete the server plugin cache in /lib/openvas/plugins/.desc/* to force the server to create a new cache after compiling with this change. Otherwise the server will send wrong plugin information to the client, resulting in missing options in the preferences. * libopenvas/store_internal.h: Increased size of name field in pprefs struct to allow for plugins with many preferences. 2008-05-06 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/store_internal.h: Increased MAGIC number, lowered size of oid vom 1024 bytes to 100. 2008-05-06 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/ntp.h: New. Contains the definition for ntp_caps (taken from comm.h) and the makros for NTP protocol IDs (taken from ntp.h of package openvas-server) * libopenvas/comm.h: Removed definition of ntp_caps and cleaned up. * Makefile: Install ntp.h as well. * MANIFEST: Updated. 2008-05-06 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * include/nessus-devel.h: Removed. It wasn't included anywhere in OpenVAS. * MANIFEST: Updated. 2008-05-02 Javier Fernández-Sanguino Peña <jfs@computer.org> * libopenvas/Makefile, libopenvas_hg/Makefile, openvas-libraries.tmpl.in: Fix the build process to get the libraries to include their linked libraries. * packaging/debian/control, packaging/debian/changelog: New package version, fixing build-dep 2008-05-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/Makefile: Fixed all dependencies on header files. Removed non-existing module "ptycall". * libopenvas/kb.c: Fixed include method. * libopenvas/store_internal.h: Added missing proto for store_fetch_oid() 2008-04-30 Tim Brown <timb@nth-dimension.org.uk> * libopenvas/comm.h, libopenvas/plugutils.c, libopenvas/store_internal.h, libopenvas/plugutils.h, libopenvas/plugutils_internal.h, libopenvas/store.c: Preliminary support for script_oid function. * packaging/debian/control, packaging/debian/copyright: Minor updates to control and copyright file to fix issues highlighted by jfs in regard to the priority and copyright of the packaging respectively. * packaging/debian/control: Minor update to control to fix differing dependency between openvas-libraries and openvas-libnasl as highlighted by jfs. 2008-04-18 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * packaging/fedora: New. Directory for Fedora RPM files. * fedora/openvas-libraries-1.0.1-1.fc8.openvas.spec, fedora/openvas-libraries-1.0.1-hg-Makefile.diff fedora/openvas-libraries-1.0.1-Makefile.diff: New. * MANIFEST. 2008-04-16 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * packaging/opensuse: New. Directory for OpenSUSE RPM files. * packaging/opensuse/openvas-libraries-1.0.1-1.suse102.openvas.spec, packaging/opensuse/openvas-libraries-1.0.1-Makefile.diff, packaging/opensuse/openvas-libraries-1.0.1-hg-Makefile.diff: New. 2008-04-16 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/network.c (open_socket): Fixed makro name for SSL debugging and thus reactived code execute for debug-ssl mode. 2008-04-16 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * Makefile, libopenvas_hg/Makefile: Add missing DESTDIR for install targets. 2008-04-16 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * INSTALL_README: Remove note about bison as it is not needed anymore. 2008-04-16 Tim Brown <timb@nth-dimension.org.uk> * packaging/debian/*: Minor fixes, now lintian clean. 2008-04-02 Tim Brown <timb@nth-dimension.org.uk> * packaging/debian/changelog: Updated for new upstream release 2008-04-01 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * VERSION: post-release version bump to 1.0.2.SVN 2008-04-01 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Doing the release 1.0.1. * VERSION: Set to 1.0.1. * CHANGES: Updated. 2008-03-27 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * TODO: Added item about Makefile improvements. * MANIFEST: Fixed. 2008-03-27 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * include/libopenvas.h: Removed various declarations that do not appear anywhere else in OpenVAS. 2008-03-27 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * include/libopenvas.h: Moved some declarations for module plugutils to libopenvas/plugutils.h. * libopenvas/plugutils.h: Added some declarations from include/libopenvas.h. 2008-03-27 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/services.c, libopenvas/network.c: Removed "ExtFunc" declarations. 2008-03-27 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * include/libopenvas.h: Removed Windows-Specific ifdef's. * include/includes.h: Removed "ExtFunc". * TODO: Changed entry about include/includes.h 2008-03-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/getopt1.c: Add inclusion of config.h to have openvas-libnasl compile again. 2008-03-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/popen.h: Fixed proto. 2008-03-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/kb.h, libopenvas/store.h, libopenvas/services1.h, libopenvas/system.h, libopenvas/plugutils.h, libopenvas/arglists.h, libopenvas/network.h, libopenvas/bpf_share.h, libopenvas/share_fd.h, libopenvas/pcap_openvas.h, libopenvas/popen.h, libopenvas/www_funcs.h: Changed Author and Copyright to the contents of include/libopenvas.h which is the origin of most of the contents of the new header files. 2008-03-26 Tim Brown <timb@nth-dimension.org.uk> * configure.in: Fix up resolv checks as dn_expand is only a weak alias to __dn_expand. resolv.h #define's it but autoconf never #includes that when making the check. * configure: Updated. 2008-03-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * include/libopenvas.h: Fix up some includes. * Makefile: Don't install includes.h, no one external should be in need of this. 2008-03-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/getopt.c: Replaced inclusion of includes.h by config.h which appears sufficient. 2008-03-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * include/getopt.h: Moved to libopenvas/ * libopenvas/getopt.h: New. Previous include/getopt.h. * libopenvas/getopt1.c: Removed includes.h and adapted according to move of getopt.h * MANIFEST: Updated. * Makefile: Reflected location change of getopt.h. 2008-03-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/ids_send.c: Removed inclusion of includes.h and added FIX() definition from there. 2008-03-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/hlst.c: replace inlusion of "includes.h" by respective single includes. 2008-03-24 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Made openvas-libraries compile after a "make clean". * include/libopenvas.h: Moved various defines to libopenvas/ids_send.h. * libopenvas/ids_send.h: Added some defines moved from libopenvas.h. * libopenvas/plugutils.c: Added missing include. * libopenvas/network.c: replace inlusion of "includes.h" by respective single includes. * libopenvas/ids_send.c: replace inlusion of "includes.h" by respective single includes except that includes.h remains were it is for a missing define ("FIX()"). Removed ExtFunc. * libopenvas/ftp_funcs.h: Added missing include. * TODO: Removed resolved entry. 2008-03-24 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module store. * libopenvas/store.c: replace inlusion of "includes.h" by respective single includes. Replaced PATH_MAX by MAXPATHLEN. * libopenvas/store.h: New. Contains declarations for module "store" (extracted from libopenvas.h) * include/libopenvas.h: Removed declarations for store and replaced by include of store.h. * Makefile: Install libopenvas/store.h. * MANIFEST: Updated. 2008-03-24 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/store.h: Renamed to store_internal.h. * libopenvas/store_internal.h: New. Former store.h. * libopenvas/plugutils.c: Reflect renaming of store.h to store_internal.h. * libopenvas/store.c: Reflect renaming of store.h to store_internal.h and added missing includes. * MANIFEST: Updated. 2008-03-24 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module share_fd. * libopenvas/share_fd.c: removed inlusion of "includes.h". * libopenvas/share_fd.h: New. Contains declarations for module "share_fd" (extracted from libopenvas.h) * include/libopenvas.h: Removed declarations for share_fd and replaced by include of share_fd. * Makefile: Install libopenvas/share_fd.h. * MANIFEST: Updated. 2008-03-23 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for modules services and services1. * libopenvas/services.c: replace inlusion of "includes.h" by respective single includes. * libopenvas/services1.c: replace inlusion of "includes.h" by respective single includes. * libopenvas/services1.h: New. Contains declarations for module "services1" (extracted from libopenvas.h) * libopenvas/services.h: Moved declarations of services1 to services1.h. * include/libopenvas.h: Removed declarations for services1 and replaced by include of services1. * include/popen.h: Added missing include for stdio.h. * Makefile: Install libopenvas/services1.h. * MANIFEST: Updated. 2008-03-23 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module scanners_utils. * libopenvas/scanners_utils.c: replace inlusion of "includes.h" by respective single includes. Removed ExtFunc. * include/libopenvas.h: Removed declarations for scanners_utils and replaced by include of scanners_utils. * include/comm.h: Added missing include for arglists.h. * Makefile: Install libopenvas/scanners_utils.h. 2008-03-23 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module rand. * libopenvas/rand.c: replace inlusion of "includes.h" by respective single includes. * include/libopenvas.h: Removed declarations for rand and replaced by include of proctitle. * Makefile: Install libopenvas/rand.h. 2008-03-23 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module proctitle. * libopenvas/proctitle.c: replace inlusion of "includes.h" by respective single includes. * include/libopenvas.h: Removed declarations for proctitle and replaced by include of proctitle. The declarations were not identical but similar enough. * Makefile: Install libopenvas/proctitle.h. 2008-03-23 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/scanners_utils.c (qsort_compar): Made static. 2008-03-22 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module popen. * libopenvas/popen.h: New. Contains declarations for module "popen" (extracted from libopenvas.h) * libopenvas/popen.c: replace inlusion of "includes.h" by respective single includes. * include/libopenvas.h: Moved any popen declarations to popen.h. * libopenvas/scanner_utils.h: Added missing include. * Makefile: Install libopenvas/popen.h. * MANIFEST: Updated. 2008-03-22 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module www_funcs. * libopenvas/www_funcs.h: New. Contains declarations for module "www_funcs" (extracted from libopenvas.h) * libopenvas/www_funcs.c: replace inlusion of "includes.h" by respective single includes. * include/libopenvas.h: Moved any www_funcs declarations to www_funcs.h. * libopenvas/plugutils.h: Added missing include. * Makefile: Install libopenvas/plugutils.h. * MANIFEST: Updated. 2008-03-21 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module plugutils. * libopenvas/plugutils.h: New. Contains declarations for module "plugutils" (extracted from libopenvas.h) * libopenvas/plugutils.c: replace inlusion of "includes.h" by respective single includes. Removed "ExtFunc". * include/libopenvas.h: Moved any plugutils declarations to plugutils.h. * libopenvas/comm.h, libopenvas/services.h, libopenvas/scanners_utils.h: Remove "ExtFunc" declaration. * Makefile: Install libopenvas/plugutils.h. * MANIFEST: Updated. 2008-03-20 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/plugutils.h: Renamed to plugutils_internal.h. * libopenvas/plugutils_internal.h: New. Former plugutils.h. * libopenvas/store.c: Reflect renaming of plugutils.h to plugutils_internal.h. (store_get_plugin_f): Made static. 2008-03-20 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module system. * libopenvas/system.h: New. Contains declarations for module "system" (extracted from libopenvas.h) * libopenvas/system.c: replace inlusion of "includes.h" by respective single includes. Removed empty "ExtFunc". * include/libopenvas.h: Moved any system declarations to system.h. * Makefile: Install libopenvas/system.h. * MANIFEST: Updated. 2008-03-20 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/system.h: Renamed to system_internal.h * libopenvas/system_internal.h: New. Previous system.h. * libopenvas/harglists.c, libopenvas/pcap.c, libopenvas/system.c, libopenvas/arglists.c, libopenvas/Makefile, libopenvas/kb.c, MANIFEST: Reflect name change from system.h to system_internal.h. 2008-03-20 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module pcap. * libopenvas/pcap_openvas.h: New. Contains declarations for module "pcap_openvas" (extracted from libopenvas.h) * libopenvas/pcap.c: replace inlusion of "includes.h" by respective single includes. * include/libopenvas.h: Moved any pcap declarations to pcap_openvas.h. * Makefile: Install libopenvas/pcap_openvas.h. * MANIFEST: Updated. 2008-03-20 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module kb. * libopenvas/kb.h: New. Contains declarations for module "kb" (extracted from libopenvas.h) * libopenvas/kb.c: replace inlusion of "includes.h" by respective single includes. * include/libopenvas.h: Moved any kb declarations to kb.h. * Makefile: Install libopenvas/kb.h. * MANIFEST: Updated. 2008-03-20 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * include/harglists.h: Removed. Moved to libopenvas/harglists.h. * libopenvas/harglists.h: New. Former include/harglists.h. * Makefile: Reflect move of harglists.h. * libopenvas/harglists.c: replace inlusion of "includes.h" separate ones for the only needed declarations. * MANIFEST: Updated. 2008-03-20 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas_hg/Makefile: Added path to libopenvas/ for include files. This make the library to build again. 2008-03-17 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Cleanup for module bpf_share. * libopenvas/bpf_share.h: New. Contains declarations for module "bpf_share". (extracted from libopenvas.h and removed ExtFunc while we are at it) * libopenvas/bpf_share.c: replace inlusion of "includes.h" by "pcap.h" which is already sufficient. * include/libopenvas.h: Moved any bpf_share declarations to bpf_share.h. * Makefile: Install libopenvas/bpf_share.h. * MANIFEST: Updated. 2008-03-17 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Implementing OpenVAS Change Request #5: Remove BPF sharing feature * configure.in: Remove option "--enable-bpf-sharing" and adapt corresponding messages. * configure: updated. * README.BPF: Renamed Nessus to OpenVAS, added note that there once was a feature for bpf-sharing. * libopenvas/bpf_share.c: Removed the whole alternative block for "HAVE_DEV_BPFN". (main): Also removed the now useless=empty test frame. * libopenvas/Makefile: bpf_sharing does not need to know about the StateDir anymore. * TODO: Removed entry about BPF sharing. 2008-03-17 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * TODO: Added entry describing how the cleanup re header files should be continued. 2008-03-14 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/network.h: New. Contains external header information for module "network". (extracted from libopenvas.h) * libopenvas/ftp_funcs.h: Updated header for OpenVAS, removed "ExtFunc". * libopenvas/ftp_funcs.c: Updated header for OpenVASremoved "ExtFunc", replaced includes.h by actually required includes. * include/libopenvas.h: Moved any ftp_funcs declarations to ftp_funcs.h. Moved most network declarations to network.h. * Makefile: Install libopenvas/network.h and libopenvas/ftp_funcs.h. * libopenvas/arglists.h: Added forgotten ifdef. * MANIFEST: Updated. 2008-03-14 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Removing unsused module "data". It was meant as a future replacement of arglists. However, it does only try the same philosophy with some improvments whereas it makes more sense to leave optimized handling to specialists like glib. * libopenvas/data.c, include/data.h: Removed. * TODO: Removed enty about data.c. * MANIFEST: updated. 2008-03-14 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> A sample cleanup for header files. * libopenvas/arglists.h: New. Contains external header information for module "arglists". (extracted from libopenvas.h) * Makefile: Install libopenvas/arglists.h. * include/libopenvas.h: Converted header block to standard one. Removed any arglists definitions and instead includes arglists.h. * libopenvas/arglists.c: Replace generic include of includes.h by respective required single include statements. Removed any use of "ExtFunc" declaration which is empty anyway. 2008-03-14 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/plugutils.c: Removed include for diff.h. 2008-03-14 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * include/libopenvas.h: Annotated module names, some lines reordered, removed W32 conditional. 2008-03-14 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * TODO: Added entry about data.c 2008-03-13 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/Makefile: Removed handling of module "diff". * libopenvas/diff.c, libopenvas/diff.h: Removed as the only method "banner_diff" isn't used anywhere in OpenVAS. * MANIFEST: updated. 2008-03-10 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Removing the apparently unused module "snprintf". There exists no corresponding proto and thus it could never be used without occuring warnings during compilation. snprintf is part of C99. * libopenvas/Makefile: Remove handling of snprintf module. * MANIFEST: Updated. * libopenvas/snprintf.c: Removed. 2008-03-03 Laban Mwangi <labeneator@gmail.com> * libopenvas/plugutils.c, libopenvas/proctitle.c, libopenvas/store.c, libopenvas/www_funcs.c: Adding FlawFinder ignores to various string operations as discussed on the Mailing List. 2008-02-16 Laban Mwangi <labeneator@gmail.com> * libopenvas/hlst.c (flush_hlst, make_hlst, sort_hlst, unsort_hlst), libopenvas/hlst.h (_hlst): Fixing flawfinder l4 warnings related to flawfinder thinking that a ptr in a linkedlist called access is = the call access(2) 2008-02-15 Bernhard Herzog <bh@intevation.de> * libopenvas/store.c (safe_copy): Cast return value strlen to match format string. Silences a compiler warning 2008-02-15 Bernhard Herzog <bh@intevation.de> * libopenvas/www_funcs.c (http11_get_head): Removed this unused function. Silences a compiler warning. 2008-02-15 Bernhard Herzog <bh@intevation.de> * libopenvas_hg/hg_dns_axfr.c (hg_dns_axfr_add_host) (hg_dns_read_ns_from_answer, hg_dns_axfr_query): Use ns_get16 instead of _getshort. _getshort is defined in glibc but not declared in any headerfile. ns_get16 is a newer API but should be widely available, too. 2008-02-15 Bernhard Herzog <bh@intevation.de> * libopenvas/hlst.c (copy_hlst): Fix Flawfinder issue. 2008-02-15 Bernhard Herzog <bh@intevation.de> * libopenvas/harglists.c (say_creating): Fix format string to match the types that will actually be used (say_closing, message): Fix Flawfinder issues (do_printf): Fix flawfinder issues. Fix gcc warnings about fprintf args, adapting a format string to better match the purpose of printing the value of a pointer. 2008-02-15 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Removal of Flawfinder issues. * libopenvas/system.c (emalloc): replace usleep() by nanosleep(). (estrdup): Set two Flawfinder: ignore, one reported path can not happen (now documented) and whether to use strlen() is a more general question. 2008-02-15 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/system.c, libopenvas/system.h: Applied standard header, added comments on unclear things. 2008-02-15 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/system.c (emalloc, erealloc): Added type cast to get rid of compiler warning. 2008-02-12 Laban Mwangi <labeneator@gmail.com> * INSTALL_README: Added dependent libraries (bug fix for aid #591) 2008-02-12 Tim Brown <timb@nth-dimension.org.uk> * packaging/debian/*: Minor fixes, now includes scripts to allow dependents to build. Also fixed minor typo in packaging/debian/copyright. 2008-02-05 Tim Brown <timb@nth-dimension.org.uk> * packaging/debian/*: Minor changes, now builds lintian clean. * packaging/debian/copyright: More information in the copyright, including a detailed account of holders. 2007-11-07 Tim Brown <timb@nth-dimension.org.uk> * packaging/debian/control, packaging/debian/copyright: Minor changes to fix Homepage and Copyright directives. 2007-10-31 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * MANIFEST: Updated. 2007-10-31 Tim Brown <timb@nth-dimension.org.uk> * packaging, packaging/debian: New directories. * packaging/debian/control, packaging/debian/libopenvas.dirs, packaging/debian/compat, packaging/debian/libopenvas-dev.install, packaging/debian/changelog, packaging/debian/libopenvas.install, packaging/debian/copyright, packaging/debian/rules, packaging/debian/libopenvas-dev.dirs: New. The debian packaging files. 2007-10-12 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * VERSION: post-release version bump to 1.0.1.SVN 2007-10-12 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * MANIFEST: Updated. 2007-10-12 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Doing the release 1.0.0. * VERSION: Set to 1.0.0. * CHANGES: Updated. 2007-10-11 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * README.HPUX: Removed. This information seem to be a leftover from stoneage time. * TODO: More things noted. 2007-10-08 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Some code cleanups. * libopenvas/plugutils(plug_get_fresh_key): Fixed wrong number of arguments for fprintf call. * libopenvas/harglists.c(harg_addt, harg_set_valuet, harg_renamet): Add more ()s to make clear && is to be evaluated before ||. This was suggested by gcc. * libopenvas/www_funcs.c(http_get, http_head, httpver, http10_head, http10_get, http10_get_head, http11_head, http11_get): Removed. These functions have never been used. 2007-10-08 Bernhard Herzog <bh@intevation.de> * libopenvas_hg/Makefile: Install hosts_gatherer.h and hg_utils.h into ${includedir}/openvas. They contain declarations needed by openvas-server and openvas-libnasl 2007-09-25 Tim Brown <timb@nth-dimension.org.uk> Patch to fix two "implicit declaration" gcc-warnings submitted by Hanno Böck on openvas-devel. * include/includes.h: Add include of fnmatch.h. * include/libopenvas.h: Added proto for kb_item_rm_all(). 2007-09-13 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * VERSION: bumped to 0.9.2.SVN 2007-09-13 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Doing the release 0.9.1. * VERSION: Set to 0.9.1. * CHANGES: Updated. 2007-09-13 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * TODO: Removed the entry about separate versioning (it is done now). Also removed the entry about reviewing the Debian patches to nessus-libraries (done). * libopenvas/bpf_share.c, libopenvas/services.h: Fixed paths to state dir to LFSH standard. This make the current Debian patch to the according Makefile in nessus-libraries unnecessary. 2007-08-03 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * configure.in, openvas-libraries.tmpl.in, include/libvers.h.in, libopenvas/plugutils.c: Replaced NESSUS_MAJOR etc. by OPENVASLIBS_MAJOR etc. as well as NL_MAJOR etc. by OPENVASLIBS_MAJOR etc. * configure: updated. 2007-08-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/plugutils.c, libopenvas/scanners_utils.c, libopenvas/store.c: Removed unused variables. 2007-08-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas_hg/Makefile: Fix dependencies for target test. * libopenvas_hg/hosts_gatherer.h: Add missing proto for hg_test_syntax(). * libopenvas_hg/test.c (main): Fix return type. 2007-08-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * VERSION: bumped to 0.9.1.SVN * CHANGES: updated. * libopenvas_hg/hg_dns_axfr.c: Removed CYGWIN part which was not implemented anyway (just a stub). * libopenvas/getopt1.c, libopenvas/getopt.c, libopenvas/harglists.c, libopenvas/hlst.c: Removed handling of _WIN32. * Makefile: Removed target win32. 2007-08-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libhosts_gatherer, libopenvas_hg: renamed libhosts_gatherer to libopenvas_hg. * Makefile: renamed libhosts_gatherer to libopenvas_hg. * MANIFEST: updated. 2007-08-02 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas-config.pre.in, libhosts_gatherer/Makefile, libhosts_gatherer/test.c: Renamed libhost_gatherer by libopenvas_hg. 2007-08-01 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Removed strange handling of CWARN which tries to collect a number of warning wishes for compilation. It didn't really work anyway. Replaced this by: allways give all warnings (-Wall). * configure.in, openvas-libraries.tmpl.in: Removed handling of CWARN[01234] and CWALL. * configure: updated. * libopenvas/Makefile, libhosts_gatherer/Makefile: Added -Wall as compile flag. 2007-07-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * CHANGES: Set release date to 27.7.2007 2007-07-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Doing the release 0.9.0. * VERSION: Set to 0.9.0. 2007-07-25 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/proctitle.c (setproctitle): Change name of daemon from nessusd to openvasd. * include/config.h.in: Removed NESSUSD_USERNAME which is not used anywhere. * libopenvas/services.h: Changed paths from nessus to openvas. 2007-07-25 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * configure.in: replaced AC_HAVE_LIBRARY by AC_CHECK_LIB for gnutls, resolve and pcap and emit error when not found. Also replaced the not-so-helpful message after running configure with some more useful. * configure: updated. * libopenvas/Makefile: Fixed dependencies reg. network.h. 2007-07-25 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * MANIFEST: updated. 2007-07-25 Bernhard Herzog <bh@intevation.de> * libopenvas/network.h: Removed. Everything declared in network.h is also declared in libopenvas.h * libopenvas/pcap.c, libopenvas/network.c, libopenvas/ids_send.c: Remove includes of network.h 2007-07-24 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (ovas_server_context_attach) (read_stream_connection_unbuffered) (write_stream_connection4, internal_send, internal_recv): Remove unused variables 2007-07-24 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c: Add missing include of <gnutls/x509.h> 2007-07-24 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (verify_peer_certificate): Make status an unsigned int so that it matches the signature of gnutls_certificate_verify_peers2 2007-07-24 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (set_gnutls_priorities) (set_gnutls_protocol): Renamed set_gnutls_priorities to set_gnutls_protocol (open_SSL_connection, ovas_server_context_attach): Updated because of set_gnutls_priorities renaming (set_gnutls_priorities): New function that sets the priorities of a session from a bunch of int arrays and handles errors (set_gnutls_sslv23, set_gnutls_sslv3, set_gnutls_tlsv1): Use set_gnutls_priorities to set the priorities instead of calling the gnutls functions directly. Also return an error code properly. 2007-07-24 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (nessus_SSL_init): Return a value (0) if already initialized 2007-07-24 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (nessus_SSL_init): Make sure gnutls_global_init is only called once even if nessus_SSL_init is called multiple times. 2007-07-24 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (load_file, unload_file): Use emalloc and efree to be consistent with the rest of the libopenvas code 2007-07-20 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/services.h: Fixed location of openvas-services. 2007-07-19 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * openvas-libraries.tmpl.in: Removed remains for libcap-nessus and PCAP_-variables 2007-07-19 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> First preparations for release. * include/libopenvas.h, include/config.h.in: Removed last occurances of HAVE_SSL. * MANIFEST: updated. * CHANGES: New. Describes Changes for users. * Makefile: No sbin required for installation of this package. * TODO: Removed item about libpcap which indeed has been removed meanwhile. * INSTALL_README: Added a warning that these instructions might not be uptodate. 2007-07-18 Bernhard Herzog <bh@intevation.de> * include/includes.h: Remove openssl includes 2007-07-18 Bernhard Herzog <bh@intevation.de> * include/libopenvas.h: Removed the declaration of nessus_register_connection that uses a SSL* as the second parameter. The void* variant is still there. 2007-07-17 Bernhard Herzog <bh@intevation.de> * libopenvas/network.h, include/libopenvas.h: Remove declarations of unused and unimplemented functions: stream_get_server_certificate stream_get_ascii_server_certificate 2007-07-17 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (nessus_install_passwd_cb, sslerror) (sslerror2): Removed. They are no longer used anywhere. (stream_get_ssl): Change the return type to void* so that we no longer need openssl.h * include/libopenvas.h: Remove declaration of nessus_install_passwd_cb and sslerror. Update declaration of stream_get_ssl 2007-07-02 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (verify_peer_certificate): If the peer did not send a certificate, treat it as valid. 2007-07-02 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (OVAS_CONNECTION_FROM_FD): New. Macro to determine the nessus_connection* given a nessus file descriptor (nessus_register_connection, ovas_allocate_connection): Most of nessus_register_connection is now in the new function ovas_allocate_connection. (set_gnutls_priorities): New. Frontend for the other set_gnutls_* functions. (verify_peer_certificate): New. Function to verify the peer certificate (open_SSL_connection): Use set_gnutls_priorities. (ovas_server_context_new): New. Function to allocate an ovas_server_context_t (ovas_server_context_free): New. Function to free an ovas_server_context_t (ovas_server_context_attach): New. Functin to set up SSL/TLS on a socket with parameters from a ovas_server_context_t * include/libopenvas.h: Add declarations for the new functions and types. Always declare nessus_SSL_init. 2007-06-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libhosts_gatherer/hg_add_hosts.c: Backported patch from original nessus-libraries branch NESSUS_2_2 as committed by Renaud Deraison June, 25 2007. Original commit message there: "bugfix". 2007-06-22 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (nessus_SSL_password_cb): Removed because it's not used anymore. 2007-06-22 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (nessus_SSL_init): Handle errors. 2007-06-22 Bernhard Herzog <bh@intevation.de> * libopenvas-config.pre.in: remove the @pcap_flag@ substitution from the --libs output. The pcap options are now in EXTRA anyway and @pcap_flag@ is no longer substituted. 2007-06-21 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Removed local copy of pcap library. * configure.in, Makefile, libopenvas-config.pre.in: Removed any handling of libpcap-nessus * configure: updated with new autoconf version as of Debian etch * libpcap-nessus/: Removed entire directory. 2007-06-21 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (nessus_install_passwd_cb): Use correct function name in error message 2007-06-21 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (sslerror2, sslerror) (nessus_install_passwd_cb): Get rid of the last actual OpenSSL calls. The implementations now simply print an error message and do nothing. 2007-06-20 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (open_SSL_connection): Better error handling for the gnutls function calls. 2007-06-20 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c: Keep a pointer to the gnutls credentials struct so that it can be freed properly: (struct nessus_connection): New member tls_cred (release_connection_fd): Free tls_cred (open_SSL_connection): Store the credentials in the tls_cred member 2007-06-20 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (load_file, unload_file): New. Helper functions to load certificates and keys. (load_cert_and_key): New. Loads certificate and key files into the gnuTLS credentials object. This function supports decryption of private keys. (open_SSL_connection): use load_cert_and_key to load the certificate and key. Remove the warnign about unsupported key decryption. Load the CA files if given. 2007-06-14 Bernhard Herzog <bh@intevation.de> First step in the code to move from OpenSSL to GnuTLS. The code in network.c now uses GnuTLS instead of OpenSSL for stream connections. There are still a few remnants of the OpenSSL code, though and code using the library will still need to link -lssl. * libopenvas/network.c (struct nessus_connection) (release_connection_fd, nessus_register_connection, sslerror) (nessus_SSL_init, open_SSL_connection, open_stream_connection) (open_stream_connection_unknown_encaps5) (read_stream_connection_unbuffered, write_stream_connection4) (stream_pending): Use GnuTLS instead of OpenSSL. (stream_get_ssl): Now always returns NULL since there's no SSL* associated with a stream anymore. See the comments in the code for some of the implications of this. (tlserror, set_gnutls_sslv23, set_gnutls_sslv3, set_gnutls_tlsv1): New functions for the GnuTLS support. 2007-06-04 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (struct nessus_connection) (open_SSL_connection, write_stream_connection4): Remove nessus_connection member last_ssl_err because it's only assigned to, but never used. 2007-05-25 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * VERSION: Renamed from CVS to SVN. * TODO: Some more open questions. * include/includes.h: Removed a nessus header file. 2007-05-23 Bernhard Herzog <bh@intevation.de> * libopenvas/network.c (data_left): Removed. The function was commented out and never used. 2007-05-14 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/network.c: Renamed all closesocket() to close(). closesocket() was a remain from trying to be NT compatible. 2007-05-14 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * configure: updated. 2007-05-14 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * Makefile: Fixed dependencies for target install. This way now also libopenvas-config gets created during install from libopenvas-config.tmpl which wasn't the case before. 2007-05-14 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * Makefile: Fixed name for libopenvas-config man page for installation. 2007-05-14 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * Makefile: installation target for headerfiles renamed from nessus to openvas. 2007-05-09 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Introduce "make dist" to create a tar-ball. * VERSION: Set to .CVS. * MANIFEST: New. List of source files for dist. * Makefile: New target "dist". 2007-05-09 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * nessus-config.pre.in: Removed. * libopenvas-config.pre.in: New. Replaces nessus-config.pre.in. * nessus-config.1: Removed. * libopenvas-config.1: New. Replaces nessus-config.1. * configure.in, Makefile: Replace nessus-config by libopenvas-config. 2007-05-09 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * nessus-config.pre.in, Makefile: Removed DESTDIR. It looks pretty useless as it needs to be set in the shell. It was introduced in Nessus 1.3.1. 2007-05-09 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libopenvas/plugutils.c: Removed any conditional alternatives for HAVE_SSL (ssl is mandatory now) 2007-05-09 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> First, intermediate step of migrating from OpenSSL to GNUTLS: Remove the all old stuff at the configure-level. * configure.in: Removed any handling of OpenSSL and the conditional handling of SSL support. Inserterted mandatory requirement of GNUTLS. * configure: Updated. * openvas-libraries.tmpl.in, nessus-config.pre.in: Removed any OpenSSL handling. 2007-04-26 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * configure.in: Removed cygwin stuff. 2007-04-24 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * configure.in, Makefile, INSTALL_README: Removed handling of "uninstall-nessus". * uninstall-nessus.in: Removed. 2007-04-12 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> Removing various Windows related files. * README.WINDOWS, nmake.w32, nmake.bat, nessus.def, include/config.w32, include/ntcompat.h: Removed. * include/includes.h: Removed some W32-specific elements. 2007-03-29 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * Makefile, libopenvas/Makefile: Renaming libnessus to libopenvas. Fixing header from GPL to LGPL. * libopenvas/store.c, libopenvas/plugutils.c, libopenvas/ids_send.c, libopenvas/arglists.c, libopenvas/data.c, libopenvas/network.c, libopenvas/services.c, uninstall-nessus.in, include/includes.h: Added header. Renaming libnessus to libopenvas. * include/libnessus.h: Renamed to libopenvas.h. * include/libopenvas.h: New. Former libnessus.h. 2007-03-29 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * libnessus: Renamed to libopenvas. * libopenvas: New. Former libnessus. 2007-03-28 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * TODO: New. Keep a list of issues/ideas/plans for this module. 2007-03-28 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * openvas-libraries.tmpl.in: Added header. * Makefile, libhosts_gatherer/Makefile, libnessus/Makefile: Added header. Renamed nessus.tmpl to openvas-libraries.tmpl. * libpcap-nessus/Makefile.in: Renamed nessus.tmpl to openvas-libraries.tmpl. * configure: updated. 2007-03-28 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * nessus.tmpl.in: Removed (replaced by openvas-libraries.tmpl.in) * openvas-libraries.tmpl.in: Former nessus.tmpl * configure.in: Name change for .tmpl file. 2007-03-28 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * configure.in: Added header information. * ChangeLog: New. Summary of changes. 2007-03-28 Jan-Oliver Wagner <jan-oliver.wagner@intevation.de> * VERSION: Changed version number to 0.9.0 to not confuse with nessus versioning and to make clear that for OpenVAS this is not yet stable.