* [Buildroot] [PATCH] openvpn: add option for --enable-password-save
@ 2015-09-15 9:38 Wetzel Andreas
2015-09-15 10:55 ` Vicente Olivert Riera
0 siblings, 1 reply; 2+ messages in thread
From: Wetzel Andreas @ 2015-09-15 9:38 UTC (permalink / raw)
To: buildroot
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@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] openvpn: add option for --enable-password-save
2015-09-15 9:38 [Buildroot] [PATCH] openvpn: add option for --enable-password-save Wetzel Andreas
@ 2015-09-15 10:55 ` Vicente Olivert Riera
0 siblings, 0 replies; 2+ messages in thread
From: Vicente Olivert Riera @ 2015-09-15 10:55 UTC (permalink / raw)
To: buildroot
Dear Wetzel Andreas,
your patch cannot be applied because your email client converted tabs to
spaces:
-----------------------
Applying: openvpn: add option for --enable-password-save
error: patch failed: package/openvpn/Config.in:27
error: package/openvpn/Config.in: patch does not apply
-----------------------
Please send your patches using "git send-email".
More comments below. Please scroll down.
On 09/15/2015 10:38 AM, Wetzel Andreas wrote:
> 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@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.
You can still put more words in the first line of this comment if your
plan is to cut it to 72 or 80 characters.
> +
> 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
Perhaps adding an else clause to explicitly disable password save just
in case upstream changes the default behavior in the future?
Regards,
Vincent.
> +
> ifeq ($(BR2_PACKAGE_OPENVPN_CRYPTO_OPENSSL),y)
> OPENVPN_CONF_OPTS += --with-crypto-library=openssl
> OPENVPN_DEPENDENCIES += openssl
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-15 10:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-15 9:38 [Buildroot] [PATCH] openvpn: add option for --enable-password-save Wetzel Andreas
2015-09-15 10:55 ` Vicente Olivert Riera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox