summary refs log tree commit diff
path: root/clients/common
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2016-05-11 17:08:25 +0200
committerMichael Biebl <biebl@debian.org>2016-05-11 17:08:25 +0200
commit73e152af6e3fb4f5848bfb8394484026ff119003 (patch)
treed5a8b37778d3a95c51511451b38b6a329b94cb41 /clients/common
parent78c3b8801ecf4975e5da1af3b10ae20dd2d876de (diff)
Imported Upstream version 1.2.2 upstream/1.2.2
Diffstat (limited to 'clients/common')
-rw-r--r--clients/common/nm-vpn-helpers.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/clients/common/nm-vpn-helpers.c b/clients/common/nm-vpn-helpers.c
index 1d2a6b0f..880b6ecd 100644
--- a/clients/common/nm-vpn-helpers.c
+++ b/clients/common/nm-vpn-helpers.c
@@ -99,6 +99,10 @@ nm_vpn_get_secret_names (const char *vpn_type)
 {
 	const char *type;
 	static VpnPasswordName generic_vpn_secrets[] = { {"password", N_("Password")}, {NULL, NULL} };
+	static VpnPasswordName openvpn_secrets[] = { {"password", N_("Password")},
+	                                             {"cert-pass", N_("Certificate password")},
+	                                             {"http-proxy-password", N_("HTTP proxy password")},
+	                                             {NULL, NULL} };
 	static VpnPasswordName vpnc_secrets[] = { {"Xauth password", N_("Password")},
 	                                          {"IPSec secret", N_("Group password")},
 	                                          {NULL, NULL} };
@@ -118,13 +122,14 @@ nm_vpn_get_secret_names (const char *vpn_type)
 	else
 		type = vpn_type;
 
-	if (   !g_strcmp0 (type, "openvpn")
-	    || !g_strcmp0 (type, "pptp")
+	if (   !g_strcmp0 (type, "pptp")
 	    || !g_strcmp0 (type, "iodine")
 	    || !g_strcmp0 (type, "ssh")
 	    || !g_strcmp0 (type, "l2tp")
 	    || !g_strcmp0 (type, "fortisslvpn"))
 		 return generic_vpn_secrets;
+	else if (!g_strcmp0 (type, "openvpn"))
+		return openvpn_secrets;
 	else if (!g_strcmp0 (type, "vpnc"))
 		return vpnc_secrets;
 	else if (   !g_strcmp0 (type, "openswan")