[Buildroot] [PATCH 1/1] openssh: add support for HW SSL engines

Gilad Ben-Yossef gilad at benyossef.com
Tue Apr 18 08:47:56 UTC 2017


Add support for OpenSSH to use a hardware SSL engine if cryptodev-linux is
included.

Signed-off-by: Gilad Ben-Yossef <gilad at benyossef.com>
---
 package/openssh/openssh.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index f971e99..4a6c516 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -28,6 +28,11 @@ endif
 
 OPENSSH_DEPENDENCIES = zlib openssl
 
+ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX), y)
+OPENSSH_DEPENDENCIES += cryptodev-linux
+OPENSSH_CONF_OPTS += --with-ssl-engine
+endif
+
 ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
 define OPENSSH_INSTALL_PAM_CONF
 	$(INSTALL) -D -m 644 $(@D)/contrib/sshd.pam.generic $(TARGET_DIR)/etc/pam.d/sshd
-- 
2.1.4




More information about the buildroot mailing list