From: Martin Willi Date: Thu, 3 Jan 2013 10:05:49 +0000 (+0100) Subject: Don't build OpenSSL PKCS#7 code if OPENSSL_NO_CMS defined X-Git-Tag: 5.0.2dr4~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b9e597b54f1bdbb40974e29ab758fd64c574261;p=thirdparty%2Fstrongswan.git Don't build OpenSSL PKCS#7 code if OPENSSL_NO_CMS defined --- diff --git a/src/libstrongswan/plugins/openssl/openssl_pkcs7.c b/src/libstrongswan/plugins/openssl/openssl_pkcs7.c index 6cd243c614..2511742830 100644 --- a/src/libstrongswan/plugins/openssl/openssl_pkcs7.c +++ b/src/libstrongswan/plugins/openssl/openssl_pkcs7.c @@ -13,6 +13,8 @@ * for more details. */ +#ifndef OPENSSL_NO_CMS + #include "openssl_pkcs7.h" #include "openssl_util.h" @@ -782,3 +784,5 @@ pkcs7_t *openssl_pkcs7_load(container_type_t type, va_list args) } return NULL; } + +#endif /* OPENSSL_NO_CMS */