diff mbox

v2 linux-next scripts/sign-file.c Fix LibreSSL support

Message ID 92dc47c01a2dd7bd13c71b9febae317a.squirrel@email.powweb.com (mailing list archive)
State New, archived
Headers show

Commit Message

codarren@hackers.mu Jan. 13, 2016, 3:39 p.m. UTC
-Fix SSL headers so that the kernel can build with LibreSSL

In file included from scripts/sign-file.c:47:0:
/usr/include/openssl/cms.h:62:2: error: #error CMS is disabled.
 #error CMS is disabled.
  ^
scripts/Makefile.host:91: recipe for target 'scripts/sign-file' failed
make[1]: *** [scripts/sign-file] Error 1
Makefile:567: recipe for target 'scripts' failed
make: *** [scripts] Error 2


Signed-off-by: Codarren Velvindron <codarren@hackers.mu>
---
 scripts/sign-file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

 #ifndef USE_PKCS7
--
2.7.0


--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/scripts/sign-file.c b/scripts/sign-file.c
index 250a7a6..a0b806d 100755
--- a/scripts/sign-file.c
+++ b/scripts/sign-file.c
@@ -39,7 +39,7 @@ 
  * signing with anything other than SHA1 - so we're stuck with that if
such is
  * the case.
  */
-#if OPENSSL_VERSION_NUMBER < 0x10000000L
+#if (OPENSSL_VERSION_NUMBER < 0x10000000L || LIBRESSL_VERSION_NUMBER)
 #define USE_PKCS7
 #endif