implemented save_secrets hook to avoid crash
authorMartin Willi <martin@strongswan.org>
Fri, 15 May 2009 14:02:11 +0000 (16:02 +0200)
committerMartin Willi <martin@strongswan.org>
Fri, 15 May 2009 14:04:07 +0000 (16:04 +0200)
src/charon/plugins/nm/gnome/properties/nm-strongswan.c

index 828ff50..544592e 100644 (file)
@@ -362,6 +362,14 @@ update_connection (NMVpnPluginUiWidgetInterface *iface,
        return TRUE;
 }
 
+static gboolean
+save_secrets (NMVpnPluginUiWidgetInterface *iface,
+              NMConnection *connection, GError **error)
+{
+       /* no secrets to save */
+       return TRUE;
+}
+
 static NMVpnPluginUiWidgetInterface *
 nm_vpn_plugin_ui_widget_interface_new (NMConnection *connection, GError **error)
 {
@@ -443,6 +451,7 @@ strongswan_plugin_ui_widget_interface_init (NMVpnPluginUiWidgetInterface *iface_
        /* interface implementation */
        iface_class->get_widget = get_widget;
        iface_class->update_connection = update_connection;
+       iface_class->save_secrets = save_secrets;
 }
 
 static guint32