Skip to content

Conversation

@jordikroon
Copy link
Contributor

Fixes #20920

Since some builds might still rely on ENGINE_cleanup (not sure though). I think it's best to check for its existence instead of removing the function call.

The check is only for LibreSSL, so maybe we don't need this fix for W32 build. However Libre states it also supports Win7 or later.

* @cvalue PKCS7_NOCRL
*/
const PKCS7_NOCRL = UNKNOWN;
#ifndef OPENSSL_NO_RMD160
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking for presence of RMD-160 is a bit strange in this context. Did you mean #ifndef PKCS7_NO_DUAL_CONTENT?

[[ENGINE_cleanup();]]
)],
[AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_ENGINE_CLEANUP], [1], [Define if ENGINE_cleanup is available])],
[AC_MSG_RESULT([no])]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will end up defining HAVE_ENGINE_CLEANUP for LibreSSL since it's still available. It's almost certainly the combination with OPENSSL_NO_ENGINE that's problematic: #20920 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build regression with PHP 8.5

2 participants