mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 22:10:14 +01:00
libnm/keyfile/trivial: rename VPN_SECRETS_GROUP define to NM_KEYFILE_GROUP_VPN_SECRETS
It is a define from an internal header. Still, all defines in headers should be named with a NM prefix.
This commit is contained in:
parent
b9bb1c793d
commit
afaa27ddbb
3 changed files with 5 additions and 5 deletions
|
|
@ -1538,11 +1538,11 @@ read_vpn_secrets (KeyfileReaderInfo *info, NMSettingVpn *s_vpn)
|
|||
{
|
||||
char **keys, **iter;
|
||||
|
||||
keys = nm_keyfile_plugin_kf_get_keys (info->keyfile, VPN_SECRETS_GROUP, NULL, NULL);
|
||||
keys = nm_keyfile_plugin_kf_get_keys (info->keyfile, NM_KEYFILE_GROUP_VPN_SECRETS, NULL, NULL);
|
||||
for (iter = keys; *iter; iter++) {
|
||||
char *secret;
|
||||
|
||||
secret = nm_keyfile_plugin_kf_get_string (info->keyfile, VPN_SECRETS_GROUP, *iter, NULL);
|
||||
secret = nm_keyfile_plugin_kf_get_string (info->keyfile, NM_KEYFILE_GROUP_VPN_SECRETS, *iter, NULL);
|
||||
if (secret) {
|
||||
nm_setting_vpn_add_secret (s_vpn, *iter, secret);
|
||||
g_free (secret);
|
||||
|
|
@ -1620,7 +1620,7 @@ nm_keyfile_read (GKeyFile *keyfile,
|
|||
length = 0;
|
||||
for (i = 0; i < length; i++) {
|
||||
/* Only read out secrets when needed */
|
||||
if (!strcmp (groups[i], VPN_SECRETS_GROUP)) {
|
||||
if (!strcmp (groups[i], NM_KEYFILE_GROUP_VPN_SECRETS)) {
|
||||
vpn_secrets = TRUE;
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include <glib.h>
|
||||
|
||||
#define VPN_SECRETS_GROUP "vpn-secrets"
|
||||
#define NM_KEYFILE_GROUP_VPN_SECRETS "vpn-secrets"
|
||||
|
||||
const char *nm_keyfile_plugin_get_alias_for_setting_name (const char *setting_name);
|
||||
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ write_hash_of_string (GKeyFile *file,
|
|||
|
||||
/* Write VPN secrets out to a different group to keep them separate */
|
||||
if (NM_IS_SETTING_VPN (setting) && !strcmp (key, NM_SETTING_VPN_SECRETS)) {
|
||||
group_name = VPN_SECRETS_GROUP;
|
||||
group_name = NM_KEYFILE_GROUP_VPN_SECRETS;
|
||||
vpn_secrets = TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue