v2 linux-next scripts/sign-file.c Fix LibreSSL support
authorCodarren Velvindron <codarren@hackers.mu>
Tue, 9 Feb 2016 16:40:45 +0000 (16:40 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 9 Feb 2016 16:40:45 +0000 (16:40 +0000)
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

Fix SSL headers so that the kernel can build with LibreSSL

Signed-off-by: Codarren Velvindron <codarren@hackers.mu>
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: David Howells <dhowells@redhat.com>
scripts/sign-file.c

index 250a7a6450331ae0805aaf3100da46af66dd4827..a0b806d2b31df41c4f4c60a1284087080d73b8e8 100755 (executable)
@@ -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
 #ifndef USE_PKCS7