diff options
author | Remi Collet <remi@remirepo.net> | 2024-11-21 09:38:03 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-11-21 09:38:03 +0100 |
commit | bdb2cdd76ff68ec2bd5c839f8b2f46c5d4b830e8 (patch) | |
tree | 48adbde1bbdb30597a403f4ef694c698bf258fcb /librdkafka-build.patch | |
parent | b24a69cb6bc8c458ec57e80054c0c15c9be34df0 (diff) |
fix build with OPENSSL_NO_ENGINE (EL-10) using patch from
https://github.com/confluentinc/librdkafka/pull/4911
Diffstat (limited to 'librdkafka-build.patch')
-rw-r--r-- | librdkafka-build.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/librdkafka-build.patch b/librdkafka-build.patch new file mode 100644 index 0000000..0bae5b6 --- /dev/null +++ b/librdkafka-build.patch @@ -0,0 +1,27 @@ +From e6839033360f46f001f4121e815a643468dfc079 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Thu, 21 Nov 2024 09:02:57 +0100 +Subject: [PATCH] use OPENSSL_NO_ENGINE from OpenSSL config + +--- + src/rdkafka_conf.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/rdkafka_conf.h b/src/rdkafka_conf.h +index 5c41513043..5d9f3ff843 100644 +--- a/src/rdkafka_conf.h ++++ b/src/rdkafka_conf.h +@@ -35,9 +35,13 @@ + + #if WITH_SSL && OPENSSL_VERSION_NUMBER >= 0x10100000 && \ + !defined(OPENSSL_IS_BORINGSSL) ++#ifdef OPENSSL_NO_ENGINE ++#include <openssl/rand.h> ++#else + #define WITH_SSL_ENGINE 1 + /* Deprecated in OpenSSL 3 */ + #include <openssl/engine.h> ++#endif + #endif /* WITH_SSL && OPENSSL_VERSION_NUMBER >= 0x10100000 */ + + /** |