[FFmpeg-cvslog] GnuTLS: eat PREMATURE_TERMINATION error

Tatsuyuki Ishi git at videolan.org
Thu Sep 21 04:11:20 EEST 2017


ffmpeg | branch: master | Tatsuyuki Ishi <ishitatsuyuki at gmail.com> | Fri Sep 15 17:04:38 2017 +0900| [598e41684066feba701d19ca7443d24b9e5efa77] | committer: Michael Niedermayer

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 at googlemail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavformat/tls_gnutls.c | 1 +
 1 file changed, 1 insertion(+)

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));



More information about the ffmpeg-cvslog mailing list