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 |
} |