android: Ensure that the certificates are loaded when accessing them via JNI
authorTobias Brunner <tobias@strongswan.org>
Wed, 7 Dec 2016 16:52:33 +0000 (17:52 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 8 Dec 2016 16:14:49 +0000 (17:14 +0100)
src/frontends/android/app/src/main/java/org/strongswan/android/logic/CharonVpnService.java

index d3077f7..0048a2d 100644 (file)
@@ -542,7 +542,7 @@ public class CharonVpnService extends VpnService implements Runnable, VpnStateSe
        private byte[][] getTrustedCertificates()
        {
                ArrayList<byte[]> certs = new ArrayList<byte[]>();
-               TrustedCertificateManager certman = TrustedCertificateManager.getInstance();
+               TrustedCertificateManager certman = TrustedCertificateManager.getInstance().load();
                try
                {
                        String alias = this.mCurrentCertificateAlias;