From patchwork Tue Apr 18 13:03:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 751826 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w6lgQ6B6zz9s65 for ; Tue, 18 Apr 2017 23:03:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 401FA2F6E4; Tue, 18 Apr 2017 13:03:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2PndBIGyD6oJ; Tue, 18 Apr 2017 13:03:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 187AD2F0EB; Tue, 18 Apr 2017 13:03:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2106B1BFB1F for ; Tue, 18 Apr 2017 13:03:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 15DC486AF2 for ; Tue, 18 Apr 2017 13:03:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1AKK3jYBHHwH for ; Tue, 18 Apr 2017 13:03:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by whitealder.osuosl.org (Postfix) with ESMTP id 851EC8732F for ; Tue, 18 Apr 2017 13:03:21 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E7528B16; Tue, 18 Apr 2017 06:03:20 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.167]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0DC993F220; Tue, 18 Apr 2017 06:03:19 -0700 (PDT) From: Gilad Ben-Yossef To: buildroot@buildroot.org Date: Tue, 18 Apr 2017 16:03:03 +0300 Message-Id: <1492520583-13537-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 Subject: [Buildroot] [PATCH v2 1/1] openssh: add support for HW SSL engines X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 CC: Baruch Siach CC: Arnout Vandecappelle Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- Changes from v1: Incorporated style feedback from Baruch and Arnout. package/openssh/openssh.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk index f971e99..7e197b0 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