Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 317085
Collapse All | Expand All

(-)network-manager-openvpn-0.8~a~git.20091008t123607.7c184a9/src/nm-openvpn-service.c-orig (-2 / +3 lines)
Lines 1000-1007 Link Here
1000
	if (!nm_openvpn_properties_validate (s_vpn, error))
1000
	if (!nm_openvpn_properties_validate (s_vpn, error))
1001
		return FALSE;
1001
		return FALSE;
1002
1002
1003
	/* Static Key doesn't need secrets; the rest do */
1003
	/* Only PASSWORD_* connection types need secrets */
1004
	if (strcmp (connection_type, NM_OPENVPN_CONTYPE_STATIC_KEY)) {
1004
	if (   !strcmp (connection_type, NM_OPENVPN_CONTYPE_PASSWORD)
1005
		|| !strcmp (connection_type, NM_OPENVPN_CONTYPE_PASSWORD_TLS)) {
1005
		if (!nm_openvpn_secrets_validate (s_vpn, error))
1006
		if (!nm_openvpn_secrets_validate (s_vpn, error))
1006
			return FALSE;
1007
			return FALSE;
1007
	}
1008
	}

Return to bug 317085