[gnome-control-center] network: Remember "Ignore CA certificate"



commit 8f359fbe5e8551f64319e28d7e8fe6747bccbae1
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jun 7 18:42:31 2016 +0200

    network: Remember "Ignore CA certificate"
    
    The CA certificate, when not needed, is saved somewhere in the same
    GSettings schema used by nm-connection-editor.

 .../connection-editor/net-connection-editor.c      |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/connection-editor/net-connection-editor.c 
b/panels/network/connection-editor/net-connection-editor.c
index 930d631..2945947 100644
--- a/panels/network/connection-editor/net-connection-editor.c
+++ b/panels/network/connection-editor/net-connection-editor.c
@@ -39,6 +39,7 @@
 #include "ce-page-8021x-security.h"
 #include "ce-page-vpn.h"
 #include "vpn-helpers.h"
+#include "eap-method.h"
 
 enum {
         DONE,
@@ -142,6 +143,8 @@ apply_edits (NetConnectionEditor *editor)
 {
         update_connection (editor);
 
+        eap_method_ca_cert_ignore_save (editor->connection);
+
         if (editor->is_new_connection) {
                 nm_client_add_connection_async (editor->client,
                                                 editor->orig_connection,
@@ -549,6 +552,8 @@ net_connection_editor_set_connection (NetConnectionEditor *editor,
 
         net_connection_editor_update_title (editor);
 
+        eap_method_ca_cert_ignore_load (editor->connection);
+
         sc = nm_connection_get_setting_connection (connection);
         type = nm_setting_connection_get_connection_type (sc);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]