adopt sign-file.c (test 9) for LibreSSL with enabled CMS

https://bugzilla.kernel.org/show_bug.cgi?id=202159
This commit is contained in:
Mikhail Novosyolov 2019-12-08 13:24:28 +03:00
parent 7cd02bd3a9
commit 72c6554478

View file

@ -41,9 +41,7 @@
* signing with anything other than SHA1 - so we're stuck with that if such is
* the case.
*/
#if defined(LIBRESSL_VERSION_NUMBER) || \
OPENSSL_VERSION_NUMBER < 0x10000000L || \
defined(OPENSSL_NO_CMS)
#if defined(OPENSSL_NO_CMS) || OPENSSL_VERSION_NUMBER < 0x10000000L
#define USE_PKCS7
#endif
#ifndef USE_PKCS7