Skip to content

Commit

Permalink
net/turnserver: fix build with libressl 3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rozhuk-im committed Nov 9, 2021
1 parent 86a33bb commit 4d3b90e
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- src/apps/relay/ns_ioalib_engine_impl.c 2021-01-10 22:59:55.000000000 +0300
+++ src/apps/relay/ns_ioalib_engine_impl.c 2021-11-10 00:19:54.463428000 +0300
@@ -1833,7 +1833,7 @@
BIO* rbio = BIO_new_mem_buf(buffer, old_buffer_len);
BIO_set_mem_eof_return(rbio, -1);

-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined LIBRESSL_VERSION_NUMBER
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined LIBRESSL_VERSION_NUMBER && LIBRESSL_VERSION_NUMBER < 0x3040000fL)
ssl->rbio = rbio;
#else
SSL_set0_rbio(ssl,rbio);
@@ -1928,7 +1928,7 @@
if(ret>0) {
ioa_network_buffer_add_offset_size(nbh, (uint16_t)buf_size, 0, (size_t)ret);
}
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined LIBRESSL_VERSION_NUMBER
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined LIBRESSL_VERSION_NUMBER && LIBRESSL_VERSION_NUMBER < 0x3040000fL)
ssl->rbio = NULL;
BIO_free(rbio);
#else

0 comments on commit 4d3b90e

Please sign in to comment.