Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/ipsec-tools: hybrid config support
@ 2015-02-01  5:26 Doug Kehn
  2015-02-01 22:29 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Kehn @ 2015-02-01  5:26 UTC (permalink / raw)
  To: buildroot

Add config option for enabling hybrid mode.  Hybrid mode is required for
successful interoperability.

Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
---
 package/ipsec-tools/Config.in      | 6 ++++++
 package/ipsec-tools/ipsec-tools.mk | 7 ++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/package/ipsec-tools/Config.in b/package/ipsec-tools/Config.in
index a0d7600..4af4095 100644
--- a/package/ipsec-tools/Config.in
+++ b/package/ipsec-tools/Config.in
@@ -48,6 +48,12 @@ config BR2_PACKAGE_IPSEC_TOOLS_READLINE
 	select BR2_PACKAGE_READLINE
 	bool "Enable readline input support"
 
+config BR2_PACKAGE_IPSEC_TOOLS_HYBRID
+	bool "Enable hybrid, both mode-cfg and xauth support"
+	help
+	  Hybrid mode is required for successful interoperability
+	  (e.g. Cisco VPN Client).
+
 choice
 	prompt "Security context"
 	default BR2_PACKAGE_IPSEC_SECCTX_DISABLE
diff --git a/package/ipsec-tools/ipsec-tools.mk b/package/ipsec-tools/ipsec-tools.mk
index d916027..56e2bed 100644
--- a/package/ipsec-tools/ipsec-tools.mk
+++ b/package/ipsec-tools/ipsec-tools.mk
@@ -21,7 +21,6 @@ IPSEC_TOOLS_CONF_ENV += LIBS=-lz
 endif
 
 IPSEC_TOOLS_CONF_OPTS = \
-	  --disable-hybrid \
 	  --without-libpam \
 	  --disable-gssapi \
 	  --with-kernel-headers=$(STAGING_DIR)/usr/include
@@ -62,6 +61,12 @@ else
 IPSEC_DEPENDENCIES += readline
 endif
 
+ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_HYBRID), y)
+IPSEC_TOOLS_CONF_OPTS += --enable-hybrid
+else
+IPSEC_TOOLS_CONF_OPTS += --disable-hybrid
+endif
+
 ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_DISABLE),y)
 IPSEC_TOOLS_CONF_OPTS += --enable-security-context=no
 endif
-- 
2.2.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] package/ipsec-tools: hybrid config support
  2015-02-01  5:26 [Buildroot] [PATCH] package/ipsec-tools: hybrid config support Doug Kehn
@ 2015-02-01 22:29 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-02-01 22:29 UTC (permalink / raw)
  To: buildroot

Dear Doug Kehn,

On Sat, 31 Jan 2015 23:26:52 -0600, Doug Kehn wrote:
> Add config option for enabling hybrid mode.  Hybrid mode is required for
> successful interoperability.
> 
> Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
> ---
>  package/ipsec-tools/Config.in      | 6 ++++++
>  package/ipsec-tools/ipsec-tools.mk | 7 ++++++-
>  2 files changed, 12 insertions(+), 1 deletion(-)

Applied, thanks. I originally wondered if we shouldn't simply enable
this option by default, since it doesn't require any external
dependency. However, there are already several ipsec-tools options that
exist without having external dependencies, so the addition of this
new option continues in the same logic.

> +ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_HYBRID), y)

I've committed a follow-up patch to replace ', y' by ',y' which is what
we use everywhere in Buildroot.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-01 22:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-01  5:26 [Buildroot] [PATCH] package/ipsec-tools: hybrid config support Doug Kehn
2015-02-01 22:29 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox