Patch for Tls Auth and Cipher properties



Hi,

if you take nm-openvpn revision 3632 you'll see that if you (in the
advanced -> TLS tab) choose TLS cipher or TLS auth and later deactivate
those boxes, that the changes where not accepted. I'm not sure if this
is still in the latest development files, but if so here is the patch:
You simply need to force remove those entries.

(This was one of the weirdnesses I mentioned earlier)

regards

christoph  
Index: properties/nm-openvpn.c
===================================================================
--- properties/nm-openvpn.c	(Revision 3632)
+++ properties/nm-openvpn.c	(Arbeitskopie)
@@ -306,6 +306,9 @@
 		if (cipher != NULL)
 			g_hash_table_insert (properties, g_strdup(NM_OPENVPN_KEY_CIPHER), str_to_gvalue (cipher));
 	}
+	else
+		g_hash_table_remove (properties, g_strdup(NM_OPENVPN_KEY_CIPHER));
+	
 	if (use_ta) {
 		const gchar* dir;
 
@@ -321,6 +324,8 @@
 
 		g_hash_table_insert (properties, g_strdup(NM_OPENVPN_KEY_TA_DIR), str_to_gvalue (dir));
 	}
+	else
+		g_hash_table_remove(properties, g_strdup(NM_OPENVPN_KEY_TA));
 }
 
 static void

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



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