summaryrefslogtreecommitdiff
path: root/main/src/skeleton/java/de/blinkt/openvpn/core/ProfileEncryption.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/skeleton/java/de/blinkt/openvpn/core/ProfileEncryption.java')
-rw-r--r--main/src/skeleton/java/de/blinkt/openvpn/core/ProfileEncryption.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/main/src/skeleton/java/de/blinkt/openvpn/core/ProfileEncryption.java b/main/src/skeleton/java/de/blinkt/openvpn/core/ProfileEncryption.java
new file mode 100644
index 00000000..c526a69f
--- /dev/null
+++ b/main/src/skeleton/java/de/blinkt/openvpn/core/ProfileEncryption.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2012-2022 Arne Schwabe
+ * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
+ */
+
+package de.blinkt.openvpn.core;
+
+import android.content.Context;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.security.GeneralSecurityException;
+
+/* Dummy class that supports no encryption */
+class ProfileEncryption {
+ static void initMasterCryptAlias()
+ {
+
+ }
+
+ static boolean encryptionEnabled()
+ {
+ return false;
+ }
+
+ static FileInputStream getEncryptedVpInput(Context context, File file) throws GeneralSecurityException, IOException {
+ throw new GeneralSecurityException("encryption of file not supported in this build");
+ }
+
+ static FileOutputStream getEncryptedVpOutput(Context context, File file) throws GeneralSecurityException, IOException {
+ throw new GeneralSecurityException("encryption of file not supported in this build");
+ }
+
+
+}