android: Register local certificate store provider when the app is initialized
[strongswan.git] / 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()
        {