aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_pkcs7.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-02-19 14:12:57 +0100
committerTobias Brunner <tobias@strongswan.org>2013-02-20 18:34:54 +0100
commit0d237763dc7c2e8be0e88d8cb945a3c39b1f10f6 (patch)
tree05e172000fe6209f77ce1e2c00a87a7d81baf485 /src/libstrongswan/plugins/openssl/openssl_pkcs7.c
parent7a93844f210023fabdd86601d3ffbb795cd8f5b4 (diff)
downloadstrongswan-0d237763dc7c2e8be0e88d8cb945a3c39b1f10f6.tar.bz2
strongswan-0d237763dc7c2e8be0e88d8cb945a3c39b1f10f6.tar.xz
openssl: Disable PKCS#7/CMS when building against OpenSSL < 0.9.8g
Fixes #292.
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_pkcs7.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_pkcs7.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_pkcs7.c b/src/libstrongswan/plugins/openssl/openssl_pkcs7.c
index ccc426235..9c3c4040c 100644
--- a/src/libstrongswan/plugins/openssl/openssl_pkcs7.c
+++ b/src/libstrongswan/plugins/openssl/openssl_pkcs7.c
@@ -13,8 +13,10 @@
* for more details.
*/
+#include <openssl/opensslv.h>
#include <openssl/opensslconf.h>
+#if OPENSSL_VERSION_NUMBER >= 0x0090807fL
#ifndef OPENSSL_NO_CMS
#include "openssl_pkcs7.h"
@@ -788,3 +790,4 @@ pkcs7_t *openssl_pkcs7_load(container_type_t type, va_list args)
}
#endif /* OPENSSL_NO_CMS */
+#endif /* OPENSSL_VERSION_NUMBER */