From: Felix Fietkau Date: Thu, 9 Feb 2017 17:17:45 +0000 (+0000) Subject: sign-file: fix build error in sign-file.c with libressl X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f86880175d0db2e3f2e27c24881dd9b395b0b920;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git sign-file: fix build error in sign-file.c with libressl 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 Signed-off-by: David Howells Signed-off-by: James Morris --- diff --git a/scripts/sign-file.c b/scripts/sign-file.c index 19ec468b1168..fbd34b8e8f57 100644 --- 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