kernel: Add support spi-nor, Eon EN25QH32
[openwrt/openwrt.git] / target / linux / generic / pending-4.4 / 211-sign-file-libressl.patch
1 LibreSSL disables the CMS subsystem, so sign-file.c needs to fall back to using
2 PKCS#7 in that case.
3
4 Signed-off-by: Felix Fietkau <nbd@nbd.name>
5
6 --- a/scripts/sign-file.c
7 +++ b/scripts/sign-file.c
8 @@ -39,7 +39,7 @@
9 * signing with anything other than SHA1 - so we're stuck with that if such is
10 * the case.
11 */
12 -#if OPENSSL_VERSION_NUMBER < 0x10000000L
13 +#if defined(LIBRESSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10000000L
14 #define USE_PKCS7
15 #endif
16 #ifndef USE_PKCS7