Skip to content

Commit f868801

Browse files
nbd168James Morris
authored and
James Morris
committed
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 <[email protected]> Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: David Howells <[email protected]> Signed-off-by: James Morris <[email protected]>
1 parent a2a1547 commit f868801

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: scripts/sign-file.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
* signing with anything other than SHA1 - so we're stuck with that if such is
4242
* the case.
4343
*/
44-
#if OPENSSL_VERSION_NUMBER < 0x10000000L || defined(OPENSSL_NO_CMS)
44+
#if defined(LIBRESSL_VERSION_NUMBER) || \
45+
OPENSSL_VERSION_NUMBER < 0x10000000L || \
46+
defined(OPENSSL_NO_CMS)
4547
#define USE_PKCS7
4648
#endif
4749
#ifndef USE_PKCS7

0 commit comments

Comments
 (0)