|  |  |  | libnm-glib Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
gboolean nm_vpn_plugin_utils_read_vpn_details (int fd,GHashTable **out_data,GHashTable **out_secrets); gboolean nm_vpn_plugin_utils_get_secret_flags (GHashTable *data,const char *secret_name,NMSettingSecretFlags *out_flags);
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.
| 
 | file descriptor to read from, usually stdin (0) | 
| 
 | on successful return, a hash table (mapping char*:char*) containing the key/value pairs of VPN data items. [out][transfer full] | 
| 
 | on successful return, a hash table (mapping char*:char*) containing the key/value pairsof VPN secrets. [out][transfer full] | 
| Returns : | TRUEif reading values was successful,FALSEif not | 
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.