Commit 03e9506a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '50550356'

* commit '50550356':
  tls: Do not abort on non-fatal TLS alerts with gnutls
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 09e06cd9 50550356
......@@ -73,7 +73,14 @@ static int do_tls_poll(URLContext *h, int ret)
TLSContext *c = h->priv_data;
struct pollfd p = { c->fd, 0, 0 };
#if CONFIG_GNUTLS
if (ret != GNUTLS_E_AGAIN && ret != GNUTLS_E_INTERRUPTED) {
switch (ret) {
case GNUTLS_E_AGAIN:
case GNUTLS_E_INTERRUPTED:
break;
case GNUTLS_E_WARNING_ALERT_RECEIVED:
av_log(h, AV_LOG_WARNING, "%s\n", gnutls_strerror(ret));
break;
default:
av_log(h, AV_LOG_ERROR, "%s\n", gnutls_strerror(ret));
return AVERROR(EIO);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment