diff options
Diffstat (limited to 'meta-ibs/meta-cp2-5422/recipes-support/nbdkit/nbdkit/0001-Fix-Force-add-CURLOPT_TLS13_CIPHERS-macro.patch')
-rw-r--r-- | meta-ibs/meta-cp2-5422/recipes-support/nbdkit/nbdkit/0001-Fix-Force-add-CURLOPT_TLS13_CIPHERS-macro.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-ibs/meta-cp2-5422/recipes-support/nbdkit/nbdkit/0001-Fix-Force-add-CURLOPT_TLS13_CIPHERS-macro.patch b/meta-ibs/meta-cp2-5422/recipes-support/nbdkit/nbdkit/0001-Fix-Force-add-CURLOPT_TLS13_CIPHERS-macro.patch new file mode 100644 index 0000000000..c74e5f2a3d --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-support/nbdkit/nbdkit/0001-Fix-Force-add-CURLOPT_TLS13_CIPHERS-macro.patch @@ -0,0 +1,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 + |