sign-file: fix build with CMS support disabled
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Tue, 1 Mar 2016 08:53:00 +0000 (09:53 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 3 Mar 2016 10:50:46 +0000 (10:50 +0000)
commit41693d1c03212de3267bc77b1cb196294a438616
tree671bb43e94ccce50e5b73233342eacea46114a10
parent89053aa9c711bd455a68844b4ed37c8b72ef1daa
sign-file: fix build with CMS support disabled

Some versions of openssl might have the CMS feature disabled
LibreSSL disables this feature too
If the feature is disabled, fallback to PKCS7

In file included from scripts/sign-file.c:46:0:
/usr/x86_64-pc-linux-gnu/include/openssl/cms.h:62:2: error: #error CMS is disabled.
 #error CMS is disabled.

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Signed-off-by: David Howells <dhowells@redhat.com>
scripts/sign-file.c