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