libressl.patch (1051B)
1 --- ffmpeg-8.0-orig/libavformat/tls_openssl.c 2 +++ ffmpeg-8.0/libavformat/tls_openssl.c 3 @@ -716,7 +716,7 @@ 4 } 5 6 /* Check whether the handshake is completed. */ 7 - if (SSL_is_init_finished(p->ssl) != TLS_ST_OK) 8 + if (!SSL_is_init_finished(p->ssl)) 9 goto end; 10 11 ret = 0; 12 @@ -869,7 +869,9 @@ 13 c->mtu = 1096; 14 SSL_set_options(p->ssl, SSL_OP_NO_QUERY_MTU); 15 SSL_set_mtu(p->ssl, c->mtu); 16 - DTLS_set_link_mtu(p->ssl, c->mtu); 17 + #ifndef LIBRESSL_VERSION_NUMBER 18 + DTLS_set_link_mtu(p->ssl, c->mtu); 19 + #endif 20 init_bio_method(h); 21 if (p->tls_shared.external_sock != 1) { 22 if ((ret = ff_tls_open_underlying(&p->tls_shared, h, url, options)) < 0) { 23 @@ -1009,7 +1011,9 @@ 24 uc->flags |= h->flags & AVIO_FLAG_NONBLOCK; 25 26 if (c->tls_shared.is_dtls) 27 - size = FFMIN(size, DTLS_get_data_mtu(c->ssl)); 28 + #ifndef LIBRESSL_VERSION_NUMBER 29 + size = FFMIN(size, DTLS_get_data_mtu(c->ssl)); 30 + #endif 31 32 ret = SSL_write(c->ssl, buf, size); 33 if (ret > 0)