| Top |
gboolean nm_vpn_plugin_utils_read_vpn_details (int fd,GHashTable **out_data,GHashTable **out_secrets);
Parses key/value pairs from a file descriptor (normally stdin) passed by an applet when the applet calls the authentication dialog of the VPN plugin.
fd |
file descriptor to read from, usually stdin (0) |
|
out_data |
on successful return, a hash table (mapping char*:char*) containing the key/value pairs of VPN data items. |
[out][transfer full] |
out_secrets |
on successful return, a hash table (mapping char*:char*) containing the key/value pairsof VPN secrets. |
[out][transfer full] |
gboolean nm_vpn_plugin_utils_get_secret_flags (GHashTable *data,const char *secret_name,NMSettingSecretFlags *out_flags);
Given a VPN secret key name, attempts to find the corresponding flags data
item in data
. If found, converts the flags data item to
NMSettingSecretFlags and returns it.