diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2015-11-10 14:36:20 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2015-11-20 10:35:10 +0100 |
commit | b41b32cb7b503ae189e53bc410748d08eb7c96ae (patch) | |
tree | c2b39768fb627fe7d4d9b934efccfe579f19563b /libnm-core/nm-setting.h | |
parent | fc758cb4eaa378ecc0e48922b39c9ceee06eb02a (diff) | |
download | NetworkManager-b41b32cb7b503ae189e53bc410748d08eb7c96ae.tar.gz |
libnm: add nm_setting_verify_secrets() and nm_connection_verify_secrets()
for verifying the secrets, because it is not done in plain nm_setting_verify().
For simple verification of free-form string secrets,
_nm_setting_verify_secret_string() helper is used.
Diffstat (limited to 'libnm-core/nm-setting.h')
-rw-r--r-- | libnm-core/nm-setting.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libnm-core/nm-setting.h b/libnm-core/nm-setting.h index 7b1d87d576..3083ef6029 100644 --- a/libnm-core/nm-setting.h +++ b/libnm-core/nm-setting.h @@ -180,6 +180,10 @@ typedef struct { NMConnection *connection, GError **error); + gboolean (*verify_secrets) (NMSetting *setting, + NMConnection *connection, + GError **error); + GPtrArray *(*need_secrets) (NMSetting *setting); int (*update_one_secret) (NMSetting *setting, @@ -211,7 +215,7 @@ typedef struct { NMSettingCompareFlags flags); /*< private >*/ - gpointer padding[8]; + gpointer padding[7]; } NMSettingClass; /** @@ -242,6 +246,11 @@ gboolean nm_setting_verify (NMSetting *setting, NMConnection *connection, GError **error); +NM_AVAILABLE_IN_1_2 +gboolean nm_setting_verify_secrets (NMSetting *setting, + NMConnection *connection, + GError **error); + gboolean nm_setting_compare (NMSetting *a, NMSetting *b, NMSettingCompareFlags flags); |