aboutsummaryrefslogtreecommitdiff
path: root/package/openssh
diff options
context:
space:
mode:
authorGravatar Gilad Ben-Yossef <gilad@benyossef.com>2017-04-18 16:03:03 +0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2017-05-03 23:07:57 +0200
commit634655b6281047f5fe2a2b09b95aa642144d23a1 (patch)
tree16cb27ae14019203b04bc3ff06b742d032d42ec4 /package/openssh
parent1f94f1aaab2e786542a83327358570a828d68f45 (diff)
downloadbuildroot-634655b6281047f5fe2a2b09b95aa642144d23a1.tar.gz
buildroot-634655b6281047f5fe2a2b09b95aa642144d23a1.tar.bz2
openssh: add support for HW SSL engines
Enable support for OpenSSH to use a hardware SSL engine if cryptodev-linux is included. Without this, OpenSSH uses only OpenSSL software crypto implementation. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> CC: Baruch Siach <baruch@tkos.co.il> CC: Arnout Vandecappelle <arnout@mind.be> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/openssh')
-rw-r--r--package/openssh/openssh.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index f971e99da6..7e197b018f 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -28,6 +28,13 @@ endif
OPENSSH_DEPENDENCIES = zlib openssl
+ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX),y)
+OPENSSH_DEPENDENCIES += cryptodev-linux
+OPENSSH_CONF_OPTS += --with-ssl-engine
+else
+OPENSSH_CONF_OPTS += --without-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