android: Import local identity for all authentication types

This commit is contained in:
Tobias Brunner
2019-10-15 17:05:56 +02:00
parent 698a18e7a5
commit a82673346e
@@ -505,6 +505,8 @@ public class VpnProfileImportActivity extends AppCompatActivity
JSONObject local = obj.optJSONObject("local");
if (local != null)
{
profile.setLocalId(local.optString("id", null));
if (type.has(VpnTypeFeature.USER_PASS))
{
profile.setUsername(local.optString("eap_id", null));
@@ -512,7 +514,6 @@ public class VpnProfileImportActivity extends AppCompatActivity
if (type.has(VpnTypeFeature.CERTIFICATE))
{
profile.setLocalId(local.optString("id", null));
profile.PKCS12 = decodeBase64(local.optString("p12", null));
if (local.optBoolean("rsa-pss", false))