openssl: Disable PKCS#7/CMS when building against OpenSSL < 0.9.8g
Fixes #292.
This commit is contained in:
@@ -366,10 +366,12 @@ METHOD(plugin_t, get_features, int,
|
||||
PLUGIN_SDEPEND(PUBKEY, KEY_DSA),
|
||||
PLUGIN_REGISTER(CERT_DECODE, openssl_crl_load, TRUE),
|
||||
PLUGIN_PROVIDE(CERT_DECODE, CERT_X509_CRL),
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x0090807fL
|
||||
#ifndef OPENSSL_NO_CMS
|
||||
PLUGIN_REGISTER(CONTAINER_DECODE, openssl_pkcs7_load, TRUE),
|
||||
PLUGIN_PROVIDE(CONTAINER_DECODE, CONTAINER_PKCS7),
|
||||
#endif /* OPENSSL_NO_CMS */
|
||||
#endif /* OPENSSL_VERSION_NUMBER */
|
||||
#ifndef OPENSSL_NO_ECDH
|
||||
/* EC DH groups */
|
||||
PLUGIN_REGISTER(DH, openssl_ec_diffie_hellman_create),
|
||||
@@ -470,4 +472,3 @@ plugin_t *openssl_plugin_create()
|
||||
|
||||
return &this->public.plugin;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user