blob: c526a69ff96dcc62b9e4619dc2e670be3b35ac7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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");
}
}
|