Skip to contentSkip to conversation

netsnmp: Add option for using minimal internal SSL code

PATCH New Stefan Sørensen 2 participants 2 messages Feb 17, 2015 – Feb 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/netsnmp/Config.in  | 7 +++++++
 package/netsnmp/netsnmp.mk | 4 ++++
 2 files changed, 11 insertions(+)
package/netsnmp/Config.in +7 -0
index a93a7cc..9bf7c9c 100644
@@ -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
package/netsnmp/netsnmp.mk +4 -0
index b272da2..5619ef3 100644
@@ -55,8 +55,12 @@ ifeq ($(BR2_STATIC_LIBS),y)
 	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
+endif
 
 ifneq ($(BR2_PACKAGE_NETSNMP_ENABLE_MIBS),y)
 	NETSNMP_CONF_OPTS += --disable-mib-loading
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/1 netsnmp: Add option for using minimal internal SSL code

Dear Stefan S?rensen,

Quoted 8 lines · Stefan S?rensen

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.

---
 package/netsnmp/Config.in  | 7 +++++++
 package/netsnmp/netsnmp.mk | 4 ++++
 2 files changed, 11 insertions(+)

Thanks, applied to next, after doing a minor change:

[Thomas: use 'else ifeq' to avoid having another nested ifeq ... endif block.]

Thomas

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