[Buildroot] [PATCH] openvpn: add option for --enable-password-save

Wetzel Andreas Andreas.Wetzel at nanotronic.ch
Tue Sep 15 09:38:12 UTC 2015


Added configuration option BR2_PACKAGE_OPENVPN_PWSAVE that
adds --enable-password-save to OPENVPN_CONF_OPTS if selected.

Signed-off-by: Andreas Wetzel <andreas.wetzel at nanotronic.ch>
---
 package/openvpn/Config.in  | 6 ++++++
 package/openvpn/openvpn.mk | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/package/openvpn/Config.in b/package/openvpn/Config.in
index 5edb479..2b5962d 100644
--- a/package/openvpn/Config.in
+++ b/package/openvpn/Config.in
@@ -27,6 +27,12 @@ config BR2_PACKAGE_OPENVPN_SMALL
          You loose eurephia, debugging info, help messages and more.
          It saves around 100 KiB in binary file size.
 
+config BR2_PACKAGE_OPENVPN_PWSAVE
+    bool "Allow passwords in files"
+    help
+      Allow --askpass and --auth-user-pass passwords to be
+      read from a file.
+
 choice
        prompt "Crypto backend"
        default BR2_PACKAGE_OPENVPN_CRYPTO_OPENSSL
diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk
index 1caa9a0..cdae3f0 100644
--- a/package/openvpn/openvpn.mk
+++ b/package/openvpn/openvpn.mk
@@ -41,6 +41,10 @@ else
 OPENVPN_CONF_OPTS += --disable-lzo
 endif
 
+ifeq ($(BR2_PACKAGE_OPENVPN_PWSAVE),y)
+OPENVPN_CONF_OPTS += --enable-password-save
+endif
+
 ifeq ($(BR2_PACKAGE_OPENVPN_CRYPTO_OPENSSL),y)
 OPENVPN_CONF_OPTS += --with-crypto-library=openssl
 OPENVPN_DEPENDENCIES += openssl
-- 
2.1.4


More information about the buildroot mailing list