g_free (secret->prop_name);
g_free (secret->value);
g_free (secret->vpn_property);
+ g_free (secret->vpn_type);
g_free (real->property);
g_clear_object (&real->setting);
NMSetting *setting,
const char *property,
const char *vpn_property,
+ const char *vpn_type,
gboolean password)
{
NMSecretAgentSimpleSecretReal *real;
g_strdup_printf ("%s.%s.%s", nm_setting_get_name (setting), property, vpn_property) :
g_strdup_printf ("%s.%s", nm_setting_get_name (setting), property);
real->base.vpn_property = g_strdup (vpn_property);
+ real->base.vpn_type = g_strdup (vpn_type);
real->base.password = password;
if (setting) {
NM_SETTING (s_8021x),
NM_SETTING_802_1X_IDENTITY,
NULL,
+ NULL,
FALSE);
g_ptr_array_add (secrets, secret);
secret = nm_secret_agent_simple_secret_new (_("Password"),
NM_SETTING (s_8021x),
NM_SETTING_802_1X_PASSWORD,
NULL,
+ NULL,
TRUE);
g_ptr_array_add (secrets, secret);
return TRUE;
NM_SETTING (s_8021x),
NM_SETTING_802_1X_IDENTITY,
NULL,
+ NULL,
FALSE);
g_ptr_array_add (secrets, secret);
secret = nm_secret_agent_simple_secret_new (_("Private key password"),
NM_SETTING (s_8021x),
NM_SETTING_802_1X_PRIVATE_KEY_PASSWORD,
NULL,
+ NULL,
TRUE);
g_ptr_array_add (secrets, secret);
return TRUE;
NM_SETTING (s_wsec),
NM_SETTING_WIRELESS_SECURITY_PSK,
NULL,
+ NULL,
TRUE);
g_ptr_array_add (secrets, secret);
return TRUE;
NM_SETTING (s_wsec),
key,
NULL,
+ NULL,
TRUE);
g_free (key);
NM_SETTING (s_wsec),
NM_SETTING_WIRELESS_SECURITY_LEAP_PASSWORD,
NULL,
+ NULL,
TRUE);
g_ptr_array_add (secrets, secret);
return TRUE;
NM_SETTING (s_pppoe),
NM_SETTING_PPPOE_USERNAME,
NULL,
+ NULL,
FALSE);
g_ptr_array_add (secrets, secret);
secret = nm_secret_agent_simple_secret_new (_("Service"),
NM_SETTING (s_pppoe),
NM_SETTING_PPPOE_SERVICE,
NULL,
+ NULL,
FALSE);
g_ptr_array_add (secrets, secret);
secret = nm_secret_agent_simple_secret_new (_("Password"),
NM_SETTING (s_pppoe),
NM_SETTING_PPPOE_PASSWORD,
NULL,
+ NULL,
TRUE);
g_ptr_array_add (secrets, secret);
return TRUE;
NM_SETTING (s_vpn),
NM_SETTING_VPN_SECRETS,
name,
+ nm_setting_vpn_get_service_type (s_vpn),
TRUE);
g_ptr_array_add (secrets, secret);
}
NM_SETTING (s_con),
NM_SETTING_CONNECTION_ID,
NULL,
+ NULL,
FALSE);
g_ptr_array_add (secrets, secret);
ok = add_8021x_secrets (request, secrets);
secret = nm_secret_agent_simple_secret_new (_("PIN"),
NM_SETTING (s_gsm),
NM_SETTING_GSM_PIN,
+ NULL,
NULL,
FALSE);
g_ptr_array_add (secrets, secret);
NM_SETTING (s_gsm),
NM_SETTING_GSM_PASSWORD,
NULL,
+ NULL,
TRUE);
g_ptr_array_add (secrets, secret);
}
NM_SETTING (s_cdma),
NM_SETTING_CDMA_PASSWORD,
NULL,
+ NULL,
TRUE);
g_ptr_array_add (secrets, secret);
} else if (nm_connection_is_type (request->connection, NM_SETTING_BLUETOOTH_SETTING_NAME)) {
setting,
"password",
NULL,
+ NULL,
TRUE);
g_ptr_array_add (secrets, secret);
} else if (nm_connection_is_type (request->connection, NM_SETTING_VPN_SETTING_NAME)) {