Skip to content

crypt_openssl_mgt: define DISABLE_ENGINES after OPENSSL_NO_ENGINE

orbea requested to merge orbea/tor:libressl-3.8.1 into main

With LibreSSL-3.8.1 these engines are no long available causing a build failure, but LibreSSL correctly defines OPENSSL_NO_ENGINE as part of its opensslfeatures.h. However Tor includes crypto_openssl_mgt.h before any of the openssl includes which would define OPENSSL_NO_ENGINE and then fails to define DISABLE_ENGINES.

As the define is used in only a single .c file it is best to move it there.

Merge request reports

Loading