diff options
Diffstat (limited to 'community/librdkafka/libressl.patch')
-rw-r--r-- | community/librdkafka/libressl.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/librdkafka/libressl.patch b/community/librdkafka/libressl.patch new file mode 100644 index 0000000000..834918fc6a --- /dev/null +++ b/community/librdkafka/libressl.patch @@ -0,0 +1,39 @@ +diff --git a/src/rdkafka_conf.c b/src/rdkafka_conf.c +index e0683f5..27c4e0b 100644 +--- a/src/rdkafka_conf.c ++++ b/src/rdkafka_conf.c +@@ -485,7 +485,7 @@ static const struct rd_kafka_property rd_kafka_properties[] = { + "protocol. See manual page for `ciphers(1)` and " + "`SSL_CTX_set_cipher_list(3)." + }, +-#if OPENSSL_VERSION_NUMBER >= 0x1000200fL ++#if OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER) + { _RK_GLOBAL, "ssl.curves.list", _RK_C_STR, + _RK(ssl.curves_list), + "The supported-curves extension in the TLS ClientHello message specifies " +diff --git a/src/rdkafka_conf.h b/src/rdkafka_conf.h +index 27e448d..9aec8be 100644 +--- a/src/rdkafka_conf.h ++++ b/src/rdkafka_conf.h +@@ -148,7 +148,7 @@ struct rd_kafka_conf_s { + struct { + SSL_CTX *ctx; + char *cipher_suites; +-#if OPENSSL_VERSION_NUMBER >= 0x1000200fL ++#if OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER) + char *curves_list; + char *sigalgs_list; + #endif +diff --git a/src/rdkafka_transport.c b/src/rdkafka_transport.c +index 815fb31..472a9ca 100644 +--- a/src/rdkafka_transport.c ++++ b/src/rdkafka_transport.c +@@ -872,7 +872,7 @@ int rd_kafka_transport_ssl_ctx_init (rd_kafka_t *rk, + } + } + +-#if OPENSSL_VERSION_NUMBER >= 0x1000200fL ++#if OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER) + /* Curves */ + if (rk->rk_conf.ssl.curves_list) { + rd_kafka_dbg(rk, SECURITY, "SSL", |