diff options
author | Tatsuyuki Ishi <ishitatsuyuki@gmail.com> | 2017-09-15 17:04:38 +0900 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-09-21 03:02:24 +0200 |
commit | 598e41684066feba701d19ca7443d24b9e5efa77 (patch) | |
tree | 2c7f9db049e4b56042dff58ed11e177497a1d23a /libavformat/tls_gnutls.c | |
parent | 5a3b602acda68fe5ca09082dc753179450a97a13 (diff) | |
download | ffmpeg-598e41684066feba701d19ca7443d24b9e5efa77.tar.gz |
GnuTLS: eat PREMATURE_TERMINATION error
GnuTLS is too strict on the SSL shutdown alert, and it's neither
mandatory in the spec or critical. As it's ignored in OpenSSL, we
should also suppress it in GnuTLS as well.
Ticket: #6667
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/tls_gnutls.c')
-rw-r--r-- | libavformat/tls_gnutls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/tls_gnutls.c b/libavformat/tls_gnutls.c index ecc80bfac3..38f8ea4804 100644 --- a/libavformat/tls_gnutls.c +++ b/libavformat/tls_gnutls.c @@ -72,6 +72,7 @@ static int print_tls_error(URLContext *h, int ret) switch (ret) { case GNUTLS_E_AGAIN: case GNUTLS_E_INTERRUPTED: + case GNUTLS_E_PREMATURE_TERMINATION: break; case GNUTLS_E_WARNING_ALERT_RECEIVED: av_log(h, AV_LOG_WARNING, "%s\n", gnutls_strerror(ret)); |