android: Register local certificate store provider when the app is initialized
authorTobias Brunner <tobias@strongswan.org>
Fri, 30 May 2014 11:45:31 +0000 (13:45 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 22 Jul 2014 08:41:49 +0000 (10:41 +0200)
src/frontends/android/src/org/strongswan/android/logic/StrongSwanApplication.java

index 0d146b7..d642b67 100644 (file)
 
 package org.strongswan.android.logic;
 
+import java.security.Security;
+
+import org.strongswan.android.security.LocalCertificateKeyStoreProvider;
+
 import android.app.Application;
 import android.content.Context;
 
@@ -22,6 +26,10 @@ public class StrongSwanApplication extends Application
 {
        private static Context mContext;
 
+       static {
+               Security.addProvider(new LocalCertificateKeyStoreProvider());
+       }
+
        @Override
        public void onCreate()
        {