swift-server / swift-kafka-client

Apache License 2.0
83 stars 23 forks source link

Update to latest librdkafka & add a define for RAND_priv_bytes (#138) #148

Closed axelandersson closed 1 year ago

axelandersson commented 1 year ago

Would appreciate a PR for it. I think the solution should be as easy as doing something like this #define RAND_priv_bytes(x,sz) RAND_bytes((x),(sz)) in a C file where we shim boringssl to openssl.

Originally posted by @FranzBusch in https://github.com/swift-server/swift-kafka-client/issues/138#issuecomment-1822864000

As discussed. Let me know if there's a better place for the #define.

FranzBusch commented 1 year ago

To which commit did you checkout the rdkafka submodule?

axelandersson commented 1 year ago

To which commit did you checkout the rdkafka submodule?

To this:

diff --git Sources/Crdkafka/librdkafka Sources/Crdkafka/librdkafka
index c282ba2..95a542c 160000
--- Sources/Crdkafka/librdkafka
+++ Sources/Crdkafka/librdkafka
@@ -1 +1 @@
-Subproject commit c282ba2423b2694052393c8edb0399a5ef471b3f
+Subproject commit 95a542c87c61d2c45b445f91c73dd5442eb04f3c
FranzBusch commented 1 year ago

@swift-server-bot test this please

FranzBusch commented 1 year ago

@swift-server-bot test this please