summaryrefslogtreecommitdiff
path: root/libavformat/tls_libtls.c
Commit message (Collapse)AuthorAge
* libavformat/tls_libtls: handle TLS_WANT_{POLLIN, POLLOUT} in read/write ↵Matthieu Bouron2022-06-08
| | | | | | | | | | | | | | | functions According to the tls documentation: tls_read() and tls_write() can return TLS_WANT_POLLIN and TLS_WANT_POLLOUT which indicates that the same operation must be repeated immediately. This commit prevents the libtls backend from failing when libtls returns TLS_WANT_POLLIN or TLS_WANT_POLLOUT with the following error: [tls @ 0x7f6e20005a00] (null) Signed-off-by: Marton Balint <cus@passwd.hu>
* tls: Hook up the url_get_short_seek function in the TLS backendsMartin Storsjö2020-11-05
| | | | | | | This makes sure that small seeks forward on https don't end up doing new requests. Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Replace ffurl_close() by ffurl_closep() where appropriateAndreas Rheinhardt2020-05-25
| | | | | | | | | | It avoids leaving dangling pointers behind in memory. Also remove redundant checks for whether the URLContext to be closed is already NULL. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* libavformat/tls_libtls: pass numeric hostnames to tls_connect_cbs()Stefan _2018-03-07
| | | | | | | Numeric hosts in certificates are not very common, but supported by LibreSSL. Forward the IP address to make verification work in this case. Fixes ticket #7029
* libavformat: LibreSSL (libtls) supportsfan52017-12-17
Signed-off-by: sfan5 <sfan5@live.de>