summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2016-03-04 15:53:59 +0100
committerArne Schwabe <arne@rfc2549.org>2016-03-07 09:10:57 +0100
commitff6064fe420c466a266711039fbada851b2832c7 (patch)
tree507d7b23899029e0480d07406d0d54d00b3baf50
parentacca89bea1dc611ab1d5e8441142360e7957c366 (diff)
Actually embed the crl file in the generated configuration
-rw-r--r--main/src/main/java/de/blinkt/openvpn/VpnProfile.java2
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
index 44de090f..11656ee3 100644
--- a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
+++ b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
@@ -383,7 +383,7 @@ public class VpnProfile implements Serializable, Cloneable {
}
if (!TextUtils.isEmpty(mCrlFilename))
- insertFileData("crl-verify",mCrlFilename);
+ cfg += insertFileData("crl-verify", mCrlFilename);
if (mUseLzo) {
cfg += "comp-lzo\n";
diff --git a/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java b/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java
index 7ef33107..d14e643e 100644
--- a/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java
+++ b/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java
@@ -293,7 +293,8 @@ public class ConfigParser {
{
{"setenv", "IV_GUI_VER"},
{"setenv", "IV_OPENVPN_GUI_VERSION"},
- {"engine", "dynamic"}
+ {"engine", "dynamic"},
+ {"setenv", "CLIENT_CERT"}
};
final String[] connectionOptions = {