ifcfg: add support for "802-1x.system-ca-certs" setting

This commit is contained in:
Thomas Haller
2019-11-22 11:23:09 +01:00
parent 87af96a9d6
commit 2a4fb75d3b
2 changed files with 9 additions and 0 deletions

View File

@@ -3506,6 +3506,11 @@ next:
return NULL;
}
g_object_set (s_8021x,
NM_SETTING_802_1X_SYSTEM_CA_CERTS,
svGetValueBoolean (ifcfg, "IEEE_8021X_SYSTEM_CA_CERTS", FALSE),
NULL);
nm_clear_g_free (&value);
v = svGetValueStr (ifcfg, "IEEE_8021X_SUBJECT_MATCH", &value);
g_object_set (s_8021x, NM_SETTING_802_1X_SUBJECT_MATCH, v, NULL);

View File

@@ -419,6 +419,10 @@ write_8021x_setting (NMConnection *connection,
nm_setting_802_1x_get_password_raw_flags (s_8021x));
g_free (tmp);
svSetValueBoolean_cond_true (ifcfg,
"IEEE_8021X_SYSTEM_CA_CERTS",
nm_setting_802_1x_get_system_ca_certs (s_8021x));
/* PEAP version */
value = nm_setting_802_1x_get_phase1_peapver (s_8021x);
svUnsetValue (ifcfg, "IEEE_8021X_PEAP_VERSION");