android: Import local identity for all authentication types
This commit is contained in:
+2
-1
@@ -505,6 +505,8 @@ public class VpnProfileImportActivity extends AppCompatActivity
|
|||||||
JSONObject local = obj.optJSONObject("local");
|
JSONObject local = obj.optJSONObject("local");
|
||||||
if (local != null)
|
if (local != null)
|
||||||
{
|
{
|
||||||
|
profile.setLocalId(local.optString("id", null));
|
||||||
|
|
||||||
if (type.has(VpnTypeFeature.USER_PASS))
|
if (type.has(VpnTypeFeature.USER_PASS))
|
||||||
{
|
{
|
||||||
profile.setUsername(local.optString("eap_id", null));
|
profile.setUsername(local.optString("eap_id", null));
|
||||||
@@ -512,7 +514,6 @@ public class VpnProfileImportActivity extends AppCompatActivity
|
|||||||
|
|
||||||
if (type.has(VpnTypeFeature.CERTIFICATE))
|
if (type.has(VpnTypeFeature.CERTIFICATE))
|
||||||
{
|
{
|
||||||
profile.setLocalId(local.optString("id", null));
|
|
||||||
profile.PKCS12 = decodeBase64(local.optString("p12", null));
|
profile.PKCS12 = decodeBase64(local.optString("p12", null));
|
||||||
|
|
||||||
if (local.optBoolean("rsa-pss", false))
|
if (local.optBoolean("rsa-pss", false))
|
||||||
|
|||||||
Reference in New Issue
Block a user