Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941324AbcLVOeH (ORCPT ); Thu, 22 Dec 2016 09:34:07 -0500 Received: from nbd.name ([46.4.11.11]:38844 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933162AbcLVOeG (ORCPT ); Thu, 22 Dec 2016 09:34:06 -0500 From: John Crispin To: David Howells , David Woodhouse Cc: keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, Felix Fietkau , John Crispin Subject: [PATCH] sign-file: fix build error in sign-file.c with libressl Date: Thu, 22 Dec 2016 14:38:19 +0100 Message-Id: <1482413899-62353-1-git-send-email-john@phrozen.org> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 866 Lines: 29 From: Felix Fietkau The sign-file tool failed to build against libressl. Fix this by extending the PKCS7 check and thus making sign-file link against libressl without an error. Signed-off-by: John Crispin Signed-off-by: Felix Fietkau --- scripts/sign-file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/sign-file.c b/scripts/sign-file.c index 53af6dc..7307fd4 100755 --- a/scripts/sign-file.c +++ b/scripts/sign-file.c @@ -41,7 +41,9 @@ * signing with anything other than SHA1 - so we're stuck with that if such is * the case. */ -#if OPENSSL_VERSION_NUMBER < 0x10000000L || defined(OPENSSL_NO_CMS) +#if defined(LIBRESSL_VERSION_NUMBER) || \ + OPENSSL_VERSION_NUMBER < 0x10000000L || \ + defined(OPENSSL_NO_CMS) #define USE_PKCS7 #endif #ifndef USE_PKCS7 -- 1.7.10.4