network-manager-openconnect r42 - in trunk: . src



Author: dcbw
Date: Tue Mar 31 03:26:55 2009
New Revision: 42
URL: http://svn.gnome.org/viewvc/network-manager-openconnect?rev=42&view=rev

Log:
2009-03-30 David Woodhouse <dwmw2 infradead org>

	* src/nm-openconnect-service.c
	  src/nm-openconnect-service.h
		- Add 'autoconnect' and 'lasthost' options to remember the last used
			host, and to automatically connect to that host if desired



Modified:
   trunk/ChangeLog
   trunk/src/nm-openconnect-service.c
   trunk/src/nm-openconnect-service.h

Modified: trunk/src/nm-openconnect-service.c
==============================================================================
--- trunk/src/nm-openconnect-service.c	(original)
+++ trunk/src/nm-openconnect-service.c	Tue Mar 31 03:26:55 2009
@@ -46,15 +46,17 @@
 } ValidProperty;
 
 static ValidProperty valid_properties[] = {
-	{ NM_OPENCONNECT_KEY_GATEWAY,   G_TYPE_STRING, 0, 0 },
-	{ NM_OPENCONNECT_KEY_CACERT,    G_TYPE_STRING, 0, 0 },
-	{ NM_OPENCONNECT_KEY_AUTHTYPE,  G_TYPE_STRING, 0, 0 },
-	{ NM_OPENCONNECT_KEY_USERCERT,  G_TYPE_STRING, 0, 0 },
-	{ NM_OPENCONNECT_KEY_USERNAME,  G_TYPE_STRING, 0, 0 },
-	{ NM_OPENCONNECT_KEY_XMLCONFIG, G_TYPE_STRING, 0, 0 },
-	{ NM_OPENCONNECT_KEY_PRIVKEY,   G_TYPE_STRING, 0, 0 },
-	{ NM_OPENCONNECT_KEY_CERTSIGS,  G_TYPE_STRING, 0, 0 },
-	{ NULL,                         G_TYPE_NONE, 0, 0 }
+	{ NM_OPENCONNECT_KEY_GATEWAY,     G_TYPE_STRING, 0, 0 },
+	{ NM_OPENCONNECT_KEY_CACERT,      G_TYPE_STRING, 0, 0 },
+	{ NM_OPENCONNECT_KEY_AUTHTYPE,    G_TYPE_STRING, 0, 0 },
+	{ NM_OPENCONNECT_KEY_USERCERT,    G_TYPE_STRING, 0, 0 },
+	{ NM_OPENCONNECT_KEY_USERNAME,    G_TYPE_STRING, 0, 0 },
+	{ NM_OPENCONNECT_KEY_XMLCONFIG,   G_TYPE_STRING, 0, 0 },
+	{ NM_OPENCONNECT_KEY_PRIVKEY,     G_TYPE_STRING, 0, 0 },
+	{ NM_OPENCONNECT_KEY_CERTSIGS,    G_TYPE_STRING, 0, 0 },
+	{ NM_OPENCONNECT_KEY_LASTHOST,    G_TYPE_STRING, 0, 0 },
+	{ NM_OPENCONNECT_KEY_AUTOCONNECT, G_TYPE_BOOLEAN, 0, 0 },
+	{ NULL,                           G_TYPE_NONE, 0, 0 }
 };
 
 static ValidProperty valid_secrets[] = {

Modified: trunk/src/nm-openconnect-service.h
==============================================================================
--- trunk/src/nm-openconnect-service.h	(original)
+++ trunk/src/nm-openconnect-service.h	Tue Mar 31 03:26:55 2009
@@ -27,6 +27,8 @@
 #define NM_OPENCONNECT_KEY_USERNAME "username"
 #define NM_OPENCONNECT_KEY_XMLCONFIG "xmlconfig"
 #define NM_OPENCONNECT_KEY_CERTSIGS "certsigs"
+#define NM_OPENCONNECT_KEY_LASTHOST "lasthost"
+#define NM_OPENCONNECT_KEY_AUTOCONNECT "autoconnect"
 
 #define NM_OPENCONNECT_AUTHTYPE_CERT "cert"
 #define NM_OPENCONNECT_AUTHTYPE_CERT_TPM "cert-tpm"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]