1
0

211-sign-file-libressl.patch 482 B

12345678910111213141516
  1. LibreSSL disables the CMS subsystem, so sign-file.c needs to fall back to using
  2. PKCS#7 in that case.
  3. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  4. --- a/scripts/sign-file.c
  5. +++ b/scripts/sign-file.c
  6. @@ -39,7 +39,7 @@
  7. * signing with anything other than SHA1 - so we're stuck with that if such is
  8. * the case.
  9. */
  10. -#if OPENSSL_VERSION_NUMBER < 0x10000000L
  11. +#if defined(LIBRESSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10000000L
  12. #define USE_PKCS7
  13. #endif
  14. #ifndef USE_PKCS7