summaryrefslogtreecommitdiffstats
path: root/librdkafka-build.patch
blob: 0bae5b683be00693c219733006100f7083a0512c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 */
 
 /**