History

avformat/tls_openssl: don't enable read_ahead in dtls mode

OpenSSL docs say: These functions have no impact when used with DTLS.

Timo Rothenpieler committed 1 year ago

Commit 49badc81 parent 31abcc11 file · +0 −3Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/tls_openssl.c+0−3
@@ -790,9 +790,6 @@ static int dtls_start(URLContext *h, const char *url, int flags, AVDictionary ** · 789 unmodified lines
790 if (!c->listen && !c->numerichost)790 if (!c->listen && !c->numerichost)
791 SSL_set_tlsext_host_name(p->ssl, c->host);791 SSL_set_tlsext_host_name(p->ssl, c->host);
792 792
793 /* Whether we should read as many input bytes as possible (for non-blocking reads) or not. */
794 SSL_CTX_set_read_ahead(p->ctx, 1);
795
796 /* Setup the SRTP context */793 /* Setup the SRTP context */
797 if (SSL_CTX_set_tlsext_use_srtp(p->ctx, profiles)) {794 if (SSL_CTX_set_tlsext_use_srtp(p->ctx, profiles)) {
798 av_log(p, AV_LOG_ERROR, "TLS: Init SSL_CTX_set_tlsext_use_srtp failed, profiles=%s, %s\n",795 av_log(p, AV_LOG_ERROR, "TLS: Init SSL_CTX_set_tlsext_use_srtp failed, profiles=%s, %s\n",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t