mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
android: Fix import of certificate request flag
This commit is contained in:
parent
a706058118
commit
81bace09a4
@ -470,7 +470,7 @@ public class VpnProfileImportActivity extends AppCompatActivity
|
|||||||
profile.setRemoteId(remote.optString("id", null));
|
profile.setRemoteId(remote.optString("id", null));
|
||||||
profile.Certificate = decodeBase64(remote.optString("cert", null));
|
profile.Certificate = decodeBase64(remote.optString("cert", null));
|
||||||
|
|
||||||
if (remote.optBoolean("certreq", false))
|
if (!remote.optBoolean("certreq", true))
|
||||||
{
|
{
|
||||||
flags |= VpnProfile.FLAGS_SUPPRESS_CERT_REQS;
|
flags |= VpnProfile.FLAGS_SUPPRESS_CERT_REQS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user