[PATCH] Add csd_wrapper gconf setting

Keith Moyer openconnect-devel at keithmoyer.com
Fri Nov 26 14:18:45 EST 2010


Signed-off-by: Keith Moyer <openconnect-devel at keithmoyer.com>
---
 nm-auth-dialog.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/nm-auth-dialog.c b/nm-auth-dialog.c
index 00917ce..d442f2f 100644
--- a/nm-auth-dialog.c
+++ b/nm-auth-dialog.c
@@ -892,6 +892,7 @@ static int get_config(char *vpn_uuid, struct openconnect_info *vpninfo)
 	char *hostname;
 	char *group;
 	char *csd;
+	char *csd_wrapper;
 	char *pem_passphrase_fsid;
 
 	gcl = gconf_client_get_default();
@@ -959,6 +960,12 @@ if (0) {
 		/* We're not running as root; we can't setuid(). */
 		vpninfo->uid_csd = getuid();
 		vpninfo->uid_csd_given = 2;
+
+		csd_wrapper = get_gconf_setting(gcl, config_path, "csd_wrapper");
+		if (csd_wrapper && csd_wrapper[0] )
+			vpninfo->csd_wrapper = csd_wrapper;
+		else
+			g_free(csd_wrapper);
 	}
 	g_free(csd);
 
-- 
1.7.0.4




More information about the openconnect-devel mailing list