network: Remember "Ignore CA certificate"

The CA certificate, when not needed, is saved somewhere in the same
GSettings schema used by nm-connection-editor.
This commit is contained in:
Bastien Nocera 2016-06-07 18:42:31 +02:00
parent 9d4800b5b2
commit 8f359fbe5e

View file

@ -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);