summaryrefslogtreecommitdiff
path: root/src/ethernet-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ethernet-dialog.c')
-rw-r--r--src/ethernet-dialog.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ethernet-dialog.c b/src/ethernet-dialog.c
index 17799350..26d0053b 100644
--- a/src/ethernet-dialog.c
+++ b/src/ethernet-dialog.c
@@ -33,6 +33,7 @@
#include "ethernet-dialog.h"
#include "wireless-security.h"
#include "applet-dialogs.h"
+#include "eap-method.h"
static void
stuff_changed_cb (WirelessSecurity *sec, gpointer user_data)
@@ -105,6 +106,9 @@ nma_ethernet_dialog_new (NMConnection *connection)
gtk_window_set_icon_name (GTK_WINDOW (dialog), "dialog-password");
dialog_set_network_name (connection, GTK_ENTRY (gtk_builder_get_object (builder, "network_name_entry")));
+ /* Handle CA cert ignore stuff */
+ eap_method_ca_cert_ignore_load (connection);
+
security = dialog_set_security (connection, builder, GTK_BOX (gtk_builder_get_object (builder, "security_vbox")));
wireless_security_set_changed_notify (security, stuff_changed_cb, GTK_WIDGET (gtk_builder_get_object (builder, "ok_button")));
g_object_set_data_full (G_OBJECT (dialog),
@@ -155,6 +159,9 @@ nma_ethernet_dialog_get_connection (GtkWidget *dialog)
s_8021x = nm_connection_get_setting (tmp_connection, NM_TYPE_SETTING_802_1X);
nm_connection_add_setting (connection, NM_SETTING (g_object_ref (s_8021x)));
+ /* Save new CA cert ignore values to GSettings */
+ eap_method_ca_cert_ignore_save (tmp_connection);
+
g_object_unref (tmp_connection);
return connection;