diff --git a/src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnProfileImportActivity.java b/src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnProfileImportActivity.java index e923473cc..596926bc3 100644 --- a/src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnProfileImportActivity.java +++ b/src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnProfileImportActivity.java @@ -475,6 +475,23 @@ public class VpnProfileImportActivity extends AppCompatActivity flags |= VpnProfile.FLAGS_SUPPRESS_CERT_REQS; } + JSONObject revocation = remote.optJSONObject("revocation"); + if (revocation != null) + { + if (!revocation.optBoolean("crl", true)) + { + flags |= VpnProfile.FLAGS_DISABLE_CRL; + } + if (!revocation.optBoolean("ocsp", true)) + { + flags |= VpnProfile.FLAGS_DISABLE_OCSP; + } + if (revocation.optBoolean("strict", false)) + { + flags |= VpnProfile.FLAGS_STRICT_REVOCATION; + } + } + JSONObject local = obj.optJSONObject("local"); if (local != null) {