aboutsummaryrefslogtreecommitdiff
path: root/package/netsnmp
diff options
context:
space:
mode:
authorGravatar Stefan Sørensen <stefan.sorensen@spectralink.com>2015-02-17 16:43:17 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-02-19 23:22:19 +0100
commit415d42e12f36d8b0ea48fcf415d80eca2a7a5cae (patch)
treeaaa40958aa2baecae5116ac93eacfc6cb4eb1f12 /package/netsnmp
parenta387ff3837efca695c5449e0d0be1b9a7c9d7ee2 (diff)
downloadbuildroot-415d42e12f36d8b0ea48fcf415d80eca2a7a5cae.tar.gz
buildroot-415d42e12f36d8b0ea48fcf415d80eca2a7a5cae.tar.bz2
netsnmp: Add option for using minimal internal SSL code
Add option for enabling a minimal internal copy of OpenSSL usable for USM security. It will not enable the usage of SNMP over (D)TLS. [Thomas: use 'else ifeq' to avoid having another nested ifeq ... endif block.] Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/netsnmp')
-rw-r--r--package/netsnmp/Config.in7
-rw-r--r--package/netsnmp/netsnmp.mk2
2 files changed, 9 insertions, 0 deletions
diff --git a/package/netsnmp/Config.in b/package/netsnmp/Config.in
index 589f720fa0..47a53d7ead 100644
--- a/package/netsnmp/Config.in
+++ b/package/netsnmp/Config.in
@@ -49,4 +49,11 @@ config BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING
support, including the ability to log with DEBUGMSG(),
DEBUGMSGTL() and companion macros.
+config BR2_PACKAGE_NETSNMP_OPENSSL_INTERNAL
+ bool "Enable minimal internal OpenSSL code"
+ depends on !BR2_PACKAGE_OPENSSL
+ help
+ Enable a minimal internal copy of OpenSSL usable for USM
+ security. It will not enable the usage of SNMP over (D)TLS.
+
endif
diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk
index 58b52ef6f2..655552c455 100644
--- a/package/netsnmp/netsnmp.mk
+++ b/package/netsnmp/netsnmp.mk
@@ -54,6 +54,8 @@ ifeq ($(BR2_STATIC_LIBS),y)
# openssl uses zlib, so we need to explicitly link with it when static
NETSNMP_CONF_ENV += LIBS=-lz
endif
+else ifeq ($(BR2_PACKAGE_NETSNMP_OPENSSL_INTERNAL),y)
+ NETSNMP_CONF_OPTS += --with-openssl=internal
else
NETSNMP_CONF_OPTS += --without-openssl
endif