]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Fix import of certificate request flag
authorTobias Brunner <tobias@strongswan.org>
Wed, 20 Jun 2018 15:23:08 +0000 (17:23 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 3 Jul 2018 09:31:40 +0000 (11:31 +0200)
src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnProfileImportActivity.java

index d3b7bb471271d124b4ebf441fae1d7c1eb7e1913..e923473cc4c220b8b7f7870e2ccd6a4e74216989 100644 (file)
@@ -470,7 +470,7 @@ public class VpnProfileImportActivity extends AppCompatActivity
                profile.setRemoteId(remote.optString("id", null));
                profile.Certificate = decodeBase64(remote.optString("cert", null));
 
-               if (remote.optBoolean("certreq", false))
+               if (!remote.optBoolean("certreq", true))
                {
                        flags |= VpnProfile.FLAGS_SUPPRESS_CERT_REQS;
                }