blob: c74e5f2a3d63d04718ca9977fb371ac4375414f5 (
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
28
29
30
31
32
33
|
From cdb78422f717013dd483f972e4f5c112fe532696 Mon Sep 17 00:00:00 2001
From: Alexandr Ilenko <AIlenko@IBS.RU>
Date: Wed, 21 Sep 2022 10:35:12 +0300
Subject: [PATCH] Fix: Force add CURLOPT_TLS13_CIPHERS macro
---
plugins/curl/curl.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/plugins/curl/curl.c b/plugins/curl/curl.c
index 9a818bfa..e4fb3d65 100644
--- a/plugins/curl/curl.c
+++ b/plugins/curl/curl.c
@@ -560,6 +560,16 @@ curl_open (int readonly)
if (ssl_cipher_list)
curl_easy_setopt (h->c, CURLOPT_SSL_CIPHER_LIST, ssl_cipher_list);
if (tls13_ciphers) {
+// It looks that commit with "#ifdef CURLOPT_TLS13_CIPHERS" was incorrect.
+// Because curl provides "CURLOPT_TLS13_CIPHERS" as an enum constant,
+// not as a macro.
+// Let`s (re-)define the macro for new versions of BMC Virtual-Media`s
+// tuning options
+#ifdef CURLOPT_TLS13_CIPHERS
+# error Something goes wrong with CURLOPT_TLS13_CIPHERS again.
+#else
+# define CURLOPT_TLS13_CIPHERS (CURLOPT_TLS13_CIPHERS)
+#endif
#ifdef CURLOPT_TLS13_CIPHERS
curl_easy_setopt (h->c, CURLOPT_TLS13_CIPHERS, tls13_ciphers);
#else
--
2.35.1
|