Commit f8688017 authored by Felix Fietkau's avatar Felix Fietkau Committed by James Morris

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: default avatarJohn Crispin <john@phrozen.org>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarJames Morris <james.l.morris@oracle.com>
parent a2a15479
...@@ -41,7 +41,9 @@ ...@@ -41,7 +41,9 @@
* signing with anything other than SHA1 - so we're stuck with that if such is * signing with anything other than SHA1 - so we're stuck with that if such is
* the case. * the case.
*/ */
#if OPENSSL_VERSION_NUMBER < 0x10000000L || defined(OPENSSL_NO_CMS) #if defined(LIBRESSL_VERSION_NUMBER) || \
OPENSSL_VERSION_NUMBER < 0x10000000L || \
defined(OPENSSL_NO_CMS)
#define USE_PKCS7 #define USE_PKCS7
#endif #endif
#ifndef USE_PKCS7 #ifndef USE_PKCS7
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment