-
Notifications
You must be signed in to change notification settings - Fork 8k
Check if ENGINE_cleanup and PKCS7_NO_DUAL_CONTENT exist in OpenSSL build #20932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -383,6 +383,21 @@ AS_VAR_IF([php_cv_func_getifaddrs], [yes], | |
| [AC_DEFINE([HAVE_GETIFADDRS], [1], | ||
| [Define to 1 if you have the 'getifaddrs' function.])]) | ||
|
|
||
| dnl Check whether ENGINE_cleanup() exists in the OpenSSL/LibreSSL we build against | ||
| AC_CHECK_HEADERS([openssl/engine.h]) | ||
|
|
||
| AC_CHECK_FUNCS([ENGINE_cleanup], [], [ | ||
| AC_MSG_CHECKING([for ENGINE_cleanup in libcrypto]) | ||
| AC_LINK_IFELSE( | ||
| [AC_LANG_PROGRAM( | ||
| [[#include <openssl/engine.h>]], | ||
| [[ENGINE_cleanup();]] | ||
| )], | ||
| [AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_ENGINE_CLEANUP], [1], [Define if ENGINE_cleanup is available])], | ||
| [AC_MSG_RESULT([no])] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this will end up defining |
||
| ) | ||
| ]) | ||
|
|
||
| dnl | ||
| dnl Setup extension sources | ||
| dnl | ||
|
|
||
There was a problem hiding this comment.
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?