[Openvas-commits] r2354 - in trunk/openvas-client: . nessus nessus/prefs_dialog src/gui
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Feb 2 09:48:01 CET 2009
Author: felix
Date: 2009-02-02 09:48:00 +0100 (Mon, 02 Feb 2009)
New Revision: 2354
Modified:
trunk/openvas-client/ChangeLog
trunk/openvas-client/nessus/attack.c
trunk/openvas-client/nessus/prefs_dialog/prefs_dialog.c
trunk/openvas-client/nessus/prefs_dialog/prefs_target.c
trunk/openvas-client/src/gui/nvt_pref_sshlogin.c
trunk/openvas-client/src/gui/nvt_pref_sshlogin.h
Log:
As sshlogin selection per host is represented in memory, file saving is
only when neccessary at initialization, before an attack and before quit.
'Before quit' awaits patch, as the client does not reliably handles
signals.
Allows number of simplifications (e.g. to receive settings no search
through GUI elements has to be done anymore, less file reading and
writing).
* nessus/attack.c (attack_host): Update the .host_sshlogin file before
starting an attack. K&R function declaration replaced.
* nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_apply_plugin_prefs):
No need to 'apply' ssh login selections or save file anymore. But set
a dummy value to enable logins-per-target selections being visible in
an unconnected scope, too.
* src/gui/nvt_pref_sshlogin.c (sshlogin_selected_cb): New. Updates
Contexts hashtable in combobox change callback.
* src/gui/nvt_pref_sshlogin.c (add_host_login_row): New (extracted).
Adds a row with label and combobox to the GtkTable defining the
login-per-target GUI, selects the correct value and registeres the
callbacks for changes in combobox selections.
* src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_rebuild_gui): New.
Rebuilds the GUI and populates it according to current contexts
map_target_sshlogin.
* src/gui/nvt_pref_sshlogin.c (str_hash_table_has_value): New.
Workaround to be used with g_hash_table_find to check if a certain value
is present in a hashtable.
* src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_is_in_use): Reformed
to work with contexts hashtable rather than with the gtk widgets.
* src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_save_file): Removed,
not needed anymore.
* src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_add): Use new function.
* src/gui/nvt_pref_sshlogin.h: Adjusted protos.
* nessus/prefs_dialog/prefs_target.c (targets_changed): Updated call
of nvt_pref_sshlogins gui rebuilding function.
Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog 2009-02-02 08:45:48 UTC (rev 2353)
+++ trunk/openvas-client/ChangeLog 2009-02-02 08:48:00 UTC (rev 2354)
@@ -1,5 +1,52 @@
2009-02-02 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+ As sshlogin selection per host is represented in memory, file saving is
+ only when neccessary at initialization, before an attack and before quit.
+ 'Before quit' awaits patch, as the client does not reliably handles
+ signals.
+ Allows number of simplifications (e.g. to receive settings no search
+ through GUI elements has to be done anymore, less file reading and
+ writing).
+
+ * nessus/attack.c (attack_host): Update the .host_sshlogin file before
+ starting an attack. K&R function declaration replaced.
+
+ * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_apply_plugin_prefs):
+ No need to 'apply' ssh login selections or save file anymore. But set
+ a dummy value to enable logins-per-target selections being visible in
+ an unconnected scope, too.
+
+ * src/gui/nvt_pref_sshlogin.c (sshlogin_selected_cb): New. Updates
+ Contexts hashtable in combobox change callback.
+
+ * src/gui/nvt_pref_sshlogin.c (add_host_login_row): New (extracted).
+ Adds a row with label and combobox to the GtkTable defining the
+ login-per-target GUI, selects the correct value and registeres the
+ callbacks for changes in combobox selections.
+
+ * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_rebuild_gui): New.
+ Rebuilds the GUI and populates it according to current contexts
+ map_target_sshlogin.
+
+ * src/gui/nvt_pref_sshlogin.c (str_hash_table_has_value): New.
+ Workaround to be used with g_hash_table_find to check if a certain value
+ is present in a hashtable.
+
+ * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_is_in_use): Reformed
+ to work with contexts hashtable rather than with the gtk widgets.
+
+ * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_save_file): Removed,
+ not needed anymore.
+
+ * src/gui/nvt_pref_sshlogin.c (nvt_pref_sshlogin_add): Use new function.
+
+ * src/gui/nvt_pref_sshlogin.h: Adjusted protos.
+
+ * nessus/prefs_dialog/prefs_target.c (targets_changed): Updated call
+ of nvt_pref_sshlogins gui rebuilding function.
+
+2009-02-02 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
Moving from purely file- and gui- based representation of the mapping
'target --> sshlogin' to storing choices in memory in a hashtable.
Modified: trunk/openvas-client/nessus/attack.c
===================================================================
--- trunk/openvas-client/nessus/attack.c 2009-02-02 08:45:48 UTC (rev 2353)
+++ trunk/openvas-client/nessus/attack.c 2009-02-02 08:48:00 UTC (rev 2354)
@@ -34,7 +34,11 @@
#include "attack.h"
#include "context.h"
#include "preferences.h"
+#include "error_dlg.h"
+#include "nessus_i18n.h"
+#include "hash_table_file.h"
+
static void setup_plug_list(struct nessus_plugin *,struct nessus_plugin *, char *);
@@ -104,9 +108,7 @@
* @param context Context to use.
*/
int
-attack_host(hostname, context)
- char * hostname;
- struct context *context;
+attack_host (char* hostname, struct context* context)
{
struct arglist * preferences = context->prefs;
char * plug_list, * old_plug_list;
@@ -116,6 +118,18 @@
int num_plug = 0;
int num_scanners = 0;
+ // Save the .host_sshlogin file so that the current selection will be sent to
+ // the server (in comm.c:send_ssh_credential_files)
+ // FIXME: Should be bundled somewhere when signal handling is fixed. (e.g. context_save_recurse)
+ if (Context->map_target_sshlogin != NULL)
+ {
+ char* fileloc = g_build_filename (Context->dir, ".host_sshlogins", NULL);
+ gboolean success = hash_table_file_write (Context->map_target_sshlogin, fileloc);
+ if (success == FALSE)
+ show_warning (_("Could not update Login selection per target - file.\n"));
+ efree (&fileloc);
+ }
+
/* Count how many plugins we have */
while(plugs != NULL ){
num_plug++;
Modified: trunk/openvas-client/nessus/prefs_dialog/prefs_dialog.c
===================================================================
--- trunk/openvas-client/nessus/prefs_dialog/prefs_dialog.c 2009-02-02 08:45:48 UTC (rev 2353)
+++ trunk/openvas-client/nessus/prefs_dialog/prefs_dialog.c 2009-02-02 08:48:00 UTC (rev 2354)
@@ -1430,9 +1430,9 @@
}
else if (!strcmp(type, PREF_SSH_CREDENTIALS))
{
- /* FIXME: Save file only if changes in GUI were done. */
- // Just save the selection to file
- nvt_pref_sshlogin_save_file (pref->value);
+ // Workaround to trigger display of this NVT (otherwise invisible
+ // when not connected)
+ arg_set_value(pref->value, "value", strlen("ignored"), "ignored");
}
}
pref = pref->next;
Modified: trunk/openvas-client/nessus/prefs_dialog/prefs_target.c
===================================================================
--- trunk/openvas-client/nessus/prefs_dialog/prefs_target.c 2009-02-02 08:45:48 UTC (rev 2353)
+++ trunk/openvas-client/nessus/prefs_dialog/prefs_target.c 2009-02-02 08:48:00 UTC (rev 2354)
@@ -43,6 +43,7 @@
#include <gtk/gtk.h>
#include "read_target_file.h"
#include "nessus_i18n.h"
+#include "nvt_pref_sshlogin.h"
/**
* Access to the currently active Scope- GUI- arglist.
@@ -71,9 +72,9 @@
// Add a "Default" entry.
const char* targets = g_strconcat ("Default,", target_translate (targets_text), NULL);
-
+
// Force necessary rebuilding of gui elements.
- nvt_pref_sshlogin_targets_update (targets);
+ nvt_pref_sshlogin_rebuild_gui (targets);
return FALSE;
}
Modified: trunk/openvas-client/src/gui/nvt_pref_sshlogin.c
===================================================================
--- trunk/openvas-client/src/gui/nvt_pref_sshlogin.c 2009-02-02 08:45:48 UTC (rev 2353)
+++ trunk/openvas-client/src/gui/nvt_pref_sshlogin.c 2009-02-02 08:48:00 UTC (rev 2354)
@@ -48,6 +48,7 @@
#include "arglists.c"
#include "context.h"
#include "comm.h" // for PREF_SSH_CREDENTIALS only
+#include "error_dlg.h"
#include "hash_table_file.h"
#include "nessus_i18n.h"
#include "nessus_plugin.h"
@@ -114,24 +115,31 @@
}
/**
- * @brief Fills the ssh_key_info_form form with values from an openvas_ssh_login.
+ * @brief Callback when the selection of a combobox showing ssh logins changed.
*
- * The openvas_ssh_login is referenced by its name, which is the selected item
- * of a combobox. The information is then gathered ftom the Global contexts
- * sshkeys Hashtable. To be used as a "change" signal callback of a combobox.
+ * Updates the Contexts map target->sshlogins.
*
- * @param combobox Combobox to read active item from.
- * @param form The ssh_key_info_form to update.
+ * @param combobox Combobox whose selection changed.
+ * @param target Target name (key in Context->map_target_sshlogin).
*/
static void
-show_sshinfo_cb (GtkWidget* combobox, ssh_key_info_form* form)
+sshlogin_selected_cb (GtkWidget* combobox, char* target)
{
- openvas_ssh_login* sellogin = g_hash_table_lookup (Global->sshkeys,
- gtk_combo_box_get_active_text(GTK_COMBO_BOX(combobox)));
- ssh_key_info_form_fill (form, sellogin);
+ if (combobox == NULL || target == NULL)
+ return;
+
+ char* login_name = gtk_combo_box_get_active_text (GTK_COMBO_BOX (combobox));
+ g_hash_table_insert (Context->map_target_sshlogin, g_strdup(target), login_name);
+
+ // FIXME: Following (saving the map) only needs to be done when client is quit/killed.
+ // Should be moved to quit() function or signal handler, once that part got repaired.
+ char* fileloc = g_build_filename (Context->dir, ".host_sshlogins", NULL);
+ gboolean success = hash_table_file_write (Context->map_target_sshlogin, fileloc);
+ if (success == FALSE)
+ show_warning (_("Could not update Login selection per target - file.\n"));
+ efree (&fileloc);
}
-
/**
* @brief Callback to add a key from a GHashTable to a Combobox.
*
@@ -146,146 +154,126 @@
/**
- * @brief Loads the file that defines the mapping of key to host and applies it
- * to the GUI.
+ * @brief Adds label (target) and combobox (sshlogin name) to a row of the
+ * current contexts ssh-per-target GUI.
*
- * The file ('.host_sshlogins') is searched in the current Contexts directory.
- * It is first transformed into a GHashTable. Then for each label
- * (=target, value e.g. "localhost") in the table in the GUI the corresponding
- * combobox entry (=key, e.g. "user1") is set active.
- *
- * @param prefgui Arglist with Preference GUIs GTkWidgets.
+ * @param target Target name.
+ * @param login User-defined name of login.
+ * @param row Index of the row in the contexts gtktable.
*/
static void
-nvt_pref_sshlogin_apply_file (struct arglist* prefgui)
+add_host_login_row (char* target, char* login, int* row)
{
- char* fileloc;
- GHashTable* host_keys;
- GtkTable* table;
- GList* tablechildren;
- char* key = NULL;
- char* value = NULL;
-
- if (prefgui != NULL)
- table = GTK_TABLE (arg_get_value(prefgui, GUI_KEY_NVT_PREF_SSHLOGIN_GTKTABLE));
- else
- table = Context->gui_sshlogins_per_target;
-
- // If no GUI found, no changes
- if (table == NULL)
+ GtkWidget* label = gtk_label_new (target);
+ GtkWidget* combobox = gtk_combo_box_new_text ();
+ gtk_combo_box_append_text (GTK_COMBO_BOX(combobox), NO_SSH_LOGIN_SELECTED);
+ gtk_combo_box_set_active (GTK_COMBO_BOX(combobox), 0);
+ if(Global->sshkeys != NULL)
{
- return;
+ // TODO: If entries should be added sorted, we can generate a list of keys
+ // (either update gtk or generate by hand) or consistently use a treemodel
+ g_hash_table_foreach(Global->sshkeys, (GHFunc) add_key_to_combobox_cb, combobox);
+ //text_combobox_set_active_text(lcombobox, value);
}
+ gtk_table_attach (GTK_TABLE (Context->gui_sshlogins_per_target), label, 0, 1,
+ (*row), (*row)+1, GTK_EXPAND, GTK_SHRINK, 5, 5);
+ gtk_table_attach (GTK_TABLE (Context->gui_sshlogins_per_target), combobox, 1, 2,
+ (*row), (*row)+1, GTK_EXPAND, GTK_SHRINK, 5, 5);
- fileloc = g_build_filename (Context->dir, ".host_sshlogins", NULL);
- host_keys = hash_table_file_read (fileloc);
- efree (&fileloc);
-
- // If no file found, return
- if (host_keys == NULL)
- {
- return;
- }
-
- // Note that the child widgets are stored as they were added ("reverse")
- tablechildren = g_list_last (table->children);
+ text_combobox_set_active_text (combobox, login);
- // For all child widgets read the labels text (=target) and set the combobox
- // entry (=key, according to value in hashtable)
- while (tablechildren != NULL)
- {
- GtkTableChild* child = (GtkTableChild*) tablechildren->data;
- GtkWidget* childwidget = child->widget;
+ g_signal_connect (GTK_OBJECT(combobox), "changed",
+ (GtkSignalFunc) sshlogin_selected_cb, g_strdup(target));
- // Use key as a toggle, if NULL we are looking at a label
- if (key == NULL)
- {
- // Returns internal data
- key = estrdup (gtk_label_get_text (GTK_LABEL(childwidget)));
- value = g_hash_table_lookup (host_keys, key);
- }
- else
- {
- // Get active text (returns a copy)
- text_combobox_set_active_text (childwidget, value);
- key = NULL;
- }
-
- tablechildren = tablechildren->prev;
- } /* while (tablechildren) */
+ (*row)++;
}
/**
- * @brief Sets up the table of the current context with hostnames and sshlogin-
- * comboboxes.
+ * @brief Rebuilds the GUI of the current context or sets it up of if it does
+ * @brief not exist yet.
*
- * Eventual content will be removed first, so that this function might also be
+ * Rebuilds the table with hostnames and sshlogin- comboboxes and selects the
+ * entries to match those in Context->map_targets_sshlogins.
+ *
+ * Eventual content will be removed first, so that this function might be
* called to rebuilt the gui when the target definition might have changed.
*
* @param targets String of comma-separated targets.
*/
void
-nvt_pref_sshlogin_targets_update (const char* targets)
+nvt_pref_sshlogin_rebuild_gui (const char* targets)
{
- GtkTable* host_key_table = Context->gui_sshlogins_per_target;
- GList* tablecontent = NULL;
- int n_entry = 0;
+ GtkTable* gui_table = Context->gui_sshlogins_per_target;
+ GHashTable* old_map = NULL;
+ GHashTable* new_map = NULL;
+ GList* tablecontent = NULL;
+ gchar** targets_strv = NULL;
+ gchar** targets_list = NULL;
+ int n_entry = 0;
- if (host_key_table == NULL || targets == NULL)
+ if (gui_table == NULL || targets == NULL)
return;
- // Clear the table, remove all table children
- tablecontent = gtk_container_get_children (GTK_CONTAINER (host_key_table));
+ // First, clear GUI, remove any element in table
+ tablecontent = gtk_container_get_children (GTK_CONTAINER (gui_table));
while (tablecontent != NULL)
{
- gtk_container_remove (GTK_CONTAINER (host_key_table), tablecontent->data);
+ gtk_container_remove (GTK_CONTAINER (gui_table), tablecontent->data);
tablecontent = g_list_next (tablecontent);
}
-
- // Repopulate table with children.
- gchar** targets_strv = g_strsplit (targets, ",", 0);
- gchar** targets_list = targets_strv;
- // For each string in target, until empty one.
+ // Then sync the Contexts map with the new targets.
+ old_map = Context->map_target_sshlogin;
+ if (old_map == NULL)
+ old_map = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
+
+ // Sync keys in contexts Hash Table with targets
+ targets_strv = g_strsplit (targets, ",", 0);
+ targets_list = targets_strv;
+ new_map = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
+ // Add all targets and set value, if it was set already
while ( (*targets_list) && strcmp((*targets_list),"") != 0 )
{
- // Add a row to the table with target name in the left and key selection
- // combobox in the right column
- GtkWidget* label = gtk_label_new (*targets_list);
- GtkWidget* combobox = gtk_combo_box_new_text ();
- gtk_combo_box_append_text (GTK_COMBO_BOX(combobox), NO_SSH_LOGIN_SELECTED);
- gtk_combo_box_set_active (GTK_COMBO_BOX(combobox), 0);
- if(Global->sshkeys != NULL)
- {
- // TODO: If entries should be added sorted, we can generate a list of keys
- // (either update gtk or generate by hand) or consistently use a treemodel
- g_hash_table_foreach(Global->sshkeys, (GHFunc) add_key_to_combobox_cb, combobox);
- //text_combobox_set_active_text(lcombobox, value);
- }
- gtk_table_attach (GTK_TABLE (host_key_table), label, 0, 1,
- n_entry, n_entry+1, GTK_EXPAND, GTK_SHRINK, 5, 5);
- gtk_table_attach (GTK_TABLE (host_key_table), combobox, 1, 2,
- n_entry, n_entry+1, GTK_EXPAND, GTK_SHRINK, 5, 5);
+ char* selected_login = g_hash_table_lookup (old_map, (*targets_list));
+ if (selected_login == NULL)
+ selected_login = NO_SSH_LOGIN_SELECTED;
+ g_hash_table_insert (new_map, estrdup(*targets_list), estrdup(selected_login));
++(targets_list);
- ++n_entry;
}
+ // Replace Contexts hashtable
+ Context->map_target_sshlogin = new_map;
+ g_hash_table_destroy (old_map);
+
+ // Repopulate table with children and do the selection
+ g_hash_table_foreach (new_map, (GHFunc) add_host_login_row, &n_entry);
if(targets_strv!= NULL)
g_strfreev(targets_strv);
-
- gtk_widget_show_all ( GTK_WIDGET(host_key_table));
-
- // Restore the selections
- nvt_pref_sshlogin_apply_file (NULL);
+
+ gtk_widget_show_all ( GTK_WIDGET(gui_table));
}
/**
+ * @brief To be used as a GHFunc to ask if a hashtable contains a certain value.
+ *
+ * Becomes obsolete with GLib >= 2.12, which defines iterators over hash table
+ * values.
+ *
+ * @return TRUE if value equals constvalue.
+ */
+static gboolean
+str_hash_table_has_value (char* key, char* value, char* constvalue)
+{
+ return !strcmp (value, constvalue);
+}
+
+/**
* @brief Checks whether a ssh account is selected as login for any target.
*
* @param ctx Context to inspect (including children and nexts).
- * @param login The login to search in any (shown) login- comboboxes.
+ * @param login The login to search in any contexts map_target_sshlogins.
*
- * @return TRUE if any combobox shows as label the name of the parameter login.
+ * @return TRUE if any map_targets_sshlogins contains login_name as a value.
*/
gboolean
nvt_pref_sshlogin_is_in_use (struct context* ctx, char* login_name)
@@ -297,41 +285,20 @@
while (ctx && ctx->type < CONTEXT_REPORT)
{
gboolean in_use = nvt_pref_sshlogin_is_in_use (ctx->children, login_name);
-
+
+ // "Early" stop
if (in_use == TRUE)
return TRUE;
if (ctx->type == CONTEXT_SCOPE || ctx->type == CONTEXT_GLOBAL)
{
// Get the ssh per-target gui of this context
- GtkTable* table = ctx->gui_sshlogins_per_target;
- GList* children = NULL;
+ GHashTable* map = ctx->map_target_sshlogin;
- // If no interest in ssh logins in this context, search other contexts.
- if (table != NULL)
- children = g_list_last (table->children);
-
- // Retrieve every other children (combobox)
- // List starts with a label, skip it!
- if (children != NULL)
- children = children->prev;
- while (children != NULL)
- {
- GtkTableChild* child = (GtkTableChild*) children->data;
- GtkWidget* childwidget = child->widget;
-
- // If 'login' is selected, return TRUE;
- if (!strcmp (gtk_combo_box_get_active_text (GTK_COMBO_BOX (childwidget)), login_name))
- {
- return TRUE;
- }
-
- // Ignore the next label (we just want comboboxes)
- children = children->prev;
- if (children != NULL)
- children = children->prev;
- } /* while (children) */
-
+ // Slowly search value (a g_hash_table_get_values exists in GLib >= 2.12)
+ if ( map != NULL
+ && g_hash_table_find (map, (GHRFunc) str_hash_table_has_value, login_name) != NULL)
+ return TRUE;
}
ctx = ctx->next;
}
@@ -397,73 +364,6 @@
}
/**
- * @brief Saves the preference selection to a file.
- *
- * The mapping of keys to targets is first transformed into a GHashTable.
- * This GHashTable can then be saved into the scopes directory using the
- * hash_table_file functionality. Filename will be '.host_sshlogins'.
- *
- * @param prefgui Arglist of this preferences GUI.
- *
- * @return TRUE in case of success, FALSE otherwise
- */
-gboolean
-nvt_pref_sshlogin_save_file (struct arglist* prefgui)
-{
- GtkWidget* tablearg = arg_get_value (prefgui, GUI_KEY_NVT_PREF_SSHLOGIN_GTKTABLE);
-
- if (tablearg)
- {
- // Get table children (alternating labels and comboboxes as created in)
- GtkTable* table = GTK_TABLE(tablearg);
- if (table == NULL)
- return FALSE;
-
- // Note that the child widgets are stored as they were added ("reverse")
- GList* children = g_list_last (table->children);
-
- GHashTable* host_keys;
- char* key = NULL;
-
- // Create a HashTable for the values
- host_keys = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
-
- // For all child widgets read the value (label/ active text in combobox)
- while (children != NULL)
- {
- GtkTableChild* child = (GtkTableChild*) children->data;
- GtkWidget* childwidget = child->widget;
-
- // Use key as a toggle, if NULL we are looking at a label
- if (key == NULL)
- {
- // Returns internal data
- key = estrdup(gtk_label_get_text (GTK_LABEL(childwidget)));
- }
- else
- {
- // Get active text (returns a copy)
- char* value = gtk_combo_box_get_active_text (GTK_COMBO_BOX(childwidget));
- g_hash_table_insert (host_keys, estrdup(key), value);
- // Next will be a label again
- key = NULL;
- }
-
- children = children->prev;
- } /* while (children) */
-
- // Create the file
- char* fileloc = g_build_filename (Context->dir, ".host_sshlogins", NULL);
- gboolean success = hash_table_file_write (host_keys, fileloc);
- efree (&fileloc);
- return success;
- }
-
- /* SSHLOGINSTABLE not in prefgui */
- return FALSE;
-}
-
-/**
* @brief Function to add a "ssh-credentials" area that allows the user to
* select a ssh key for each target.
*
@@ -506,5 +406,5 @@
const char* targets = g_strconcat ("Default,", target_translate (targets_text), NULL);
// Populate the table and restore the selection
- nvt_pref_sshlogin_targets_update(targets);
+ nvt_pref_sshlogin_rebuild_gui (targets);
}
Modified: trunk/openvas-client/src/gui/nvt_pref_sshlogin.h
===================================================================
--- trunk/openvas-client/src/gui/nvt_pref_sshlogin.h 2009-02-02 08:45:48 UTC (rev 2353)
+++ trunk/openvas-client/src/gui/nvt_pref_sshlogin.h 2009-02-02 08:48:00 UTC (rev 2354)
@@ -40,13 +40,11 @@
void nvt_pref_sshlogin_add (GtkWidget* vbox, struct arglist* pref);
-void nvt_pref_sshlogin_targets_update (const char* targets);
+void nvt_pref_sshlogin_rebuild_gui (const char* targets);
void nvt_pref_sshlogin_update_all_comboboxes (struct context* ctx,
char* newentry);
gboolean nvt_pref_sshlogin_is_in_use (struct context* ctx, char* login_name);
-gboolean nvt_pref_sshlogin_save_file (struct arglist* prefgui);
-
#endif
More information about the Openvas-commits
mailing list