ffmpeg | branch: master | Marvin Scholz <epira...@gmail.com> | Wed Jun 25 
21:46:34 2025 +0200| [fb38d8759b00cd597a678e91518499a05acf6901] | committer: 
Marvin Scholz

avformat/tls_openssl: use TLS_[client|server]_method

SSLv23_*_method was just a define for these anyway since OpenSSL 1.1.0
and the old functions are deprecated.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb38d8759b00cd597a678e91518499a05acf6901
---

 libavformat/tls_openssl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c
index 18df55f9fc..3724de7283 100644
--- a/libavformat/tls_openssl.c
+++ b/libavformat/tls_openssl.c
@@ -890,10 +890,10 @@ static int tls_open(URLContext *h, const char *uri, int 
flags, AVDictionary **op
         goto fail;
 
     // We want to support all versions of TLS >= 1.0, but not the deprecated
-    // and insecure SSLv2 and SSLv3.  Despite the name, SSLv23_*_method()
+    // and insecure SSLv2 and SSLv3.  Despite the name, TLS_*_method()
     // enables support for all versions of SSL and TLS, and we then disable
     // support for the old protocols immediately after creating the context.
-    p->ctx = SSL_CTX_new(c->listen ? SSLv23_server_method() : 
SSLv23_client_method());
+    p->ctx = SSL_CTX_new(c->listen ? TLS_server_method() : 
TLS_client_method());
     if (!p->ctx) {
         av_log(h, AV_LOG_ERROR, "%s\n", openssl_get_error(p));
         ret = AVERROR(EIO);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to