openwrtv3/package/libs/openssl
Matthias Schiffer dd9da51462
openssl: enable OPENSSL_WITH_DEPRECATED when OpenSSL is built as a build dep
Some package (e.g. libunbound) depend on OPENSSL_WITH_DEPRECATED. In some
situations it may happen that libunbound and openssl are only pulled in as
build dependencies, but are not enabled in .config.

In such cases, the defaults of symbols like OPENSSL_WITH_DEPRECATED are
ignored (as the whole symbol depends on PACKAGE_libopenssl), and config
symbol dependencies of libunbound aren't effective either (as libunbound
is not actually enabled).

This commit works around the issue by introducing a hidden negated symbol
OPENSSL_NO_DEPRECATED, which is always disabled when PACKAGE_libopenssl is
disabled, and ensures that OpenSSL is built with deprecated APIs in this
case. A user can still manage to break the build by explicitly enabling
libopenssl and disabling OPENSSL_WITH_DEPRECATED; the interaction between
build dependencies and config symbols will require further discussion.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2018-10-30 20:38:34 +01:00
..
include/crypto openssl: replace ocf-crypto-headers with a header file from cryptodev-linux 2016-05-12 19:35:32 +02:00
patches openssl: update to version 1.0.2p 2018-08-15 22:32:07 +02:00
Config.in openssl: enable OPENSSL_WITH_DEPRECATED when OpenSSL is built as a build dep 2018-10-30 20:38:34 +01:00
Makefile openssl: enable OPENSSL_WITH_DEPRECATED when OpenSSL is built as a build dep 2018-10-30 20:38:34 +01:00