summaryrefslogtreecommitdiff
blob: defcd01d89e8e8f8b0c3499da802fa470b11e6e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
http://bugs.gentoo.org/show_bug.cgi?id=317085
https://bugs.launchpad.net/ubuntu/+source/network-manager-vpnc/+bug/360818
--- network-manager-openvpn-0.8~a~git.20091008t123607.7c184a9/src/nm-openvpn-service.c-orig	2009-12-20 13:34:48.000000000 -0300
+++ network-manager-openvpn-0.8~a~git.20091008t123607.7c184a9/src/nm-openvpn-service.c	2009-12-20 13:36:24.000000000 -0300
@@ -1000,8 +1000,9 @@
 	if (!nm_openvpn_properties_validate (s_vpn, error))
 		return FALSE;
 
-	/* Static Key doesn't need secrets; the rest do */
-	if (strcmp (connection_type, NM_OPENVPN_CONTYPE_STATIC_KEY)) {
+	/* Only PASSWORD_* connection types need secrets */
+	if (   !strcmp (connection_type, NM_OPENVPN_CONTYPE_PASSWORD)
+		|| !strcmp (connection_type, NM_OPENVPN_CONTYPE_PASSWORD_TLS)) {
 		if (!nm_openvpn_secrets_validate (s_vpn, error))
 			return FALSE;
 	}