summaryrefslogtreecommitdiff
path: root/src/supplicant/nm-supplicant-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/supplicant/nm-supplicant-config.c')
-rw-r--r--src/supplicant/nm-supplicant-config.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/supplicant/nm-supplicant-config.c b/src/supplicant/nm-supplicant-config.c
index 2e16f278e1..53b6d360f2 100644
--- a/src/supplicant/nm-supplicant-config.c
+++ b/src/supplicant/nm-supplicant-config.c
@@ -88,10 +88,6 @@ nm_supplicant_config_init (NMSupplicantConfig * self)
g_free,
(GDestroyNotify) config_option_free);
- priv->blobs = g_hash_table_new_full (nm_str_hash, g_str_equal,
- g_free,
- (GDestroyNotify) g_bytes_unref);
-
priv->ap_scan = 1;
priv->dispose_has_run = FALSE;
}
@@ -224,6 +220,11 @@ nm_supplicant_config_add_blob (NMSupplicantConfig *self,
nm_log_info (LOGD_SUPPLICANT, "Config: added '%s' value '%s'", key, opt->value);
g_hash_table_insert (priv->config, g_strdup (key), opt);
+ if (!priv->blobs) {
+ priv->blobs = g_hash_table_new_full (nm_str_hash, g_str_equal,
+ g_free,
+ (GDestroyNotify) g_bytes_unref);
+ }
g_hash_table_insert (priv->blobs,
g_strdup (blobid),
g_bytes_ref (value));
@@ -259,7 +260,7 @@ nm_supplicant_config_finalize (GObject *object)
NMSupplicantConfigPrivate *priv = NM_SUPPLICANT_CONFIG_GET_PRIVATE (object);
g_hash_table_destroy (priv->config);
- g_hash_table_destroy (priv->blobs);
+ nm_clear_pointer (&priv->blobs, g_hash_table_destroy);
G_OBJECT_CLASS (nm_supplicant_config_parent_class)->finalize (object);
}
@@ -1328,6 +1329,14 @@ nm_supplicant_config_add_setting_8021x (NMSupplicantConfig *self,
if (!add_string_val (self, value, "domain_suffix_match2", FALSE, NULL, error))
return FALSE;
+ /* domain match */
+ value = nm_setting_802_1x_get_domain_match (setting);
+ if (!add_string_val (self, value, "domain_match", FALSE, NULL, error))
+ return FALSE;
+ value = nm_setting_802_1x_get_phase2_domain_match (setting);
+ if (!add_string_val (self, value, "domain_match2", FALSE, NULL, error))
+ return FALSE;
+
/* Private key */
added = FALSE;
switch (nm_setting_802_1x_get_private_key_scheme (setting)) {