[vlc-commits] gnutls: enable False Start (fixes #18042)

Rémi Denis-Courmont git at videolan.org
Thu Feb 23 21:41:35 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Feb 23 22:39:38 2017 +0200| [c0e59decbfefab74dbe313da695249ad1af0de80] | committer: Rémi Denis-Courmont

gnutls: enable False Start (fixes #18042)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c0e59decbfefab74dbe313da695249ad1af0de80
---

 modules/misc/gnutls.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index 70e1216..e262db9 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -260,6 +260,9 @@ static int gnutls_SessionOpen(vlc_tls_creds_t *creds, vlc_tls_t *tls, int type,
     int val;
 
     type |= GNUTLS_NONBLOCK;
+#if (GNUTLS_VERSION_NUMBER >= 0x030500)
+    type |= GNUTLS_ENABLE_FALSE_START;
+#endif
 
     val = gnutls_init(&session, type);
     if (val != 0)
@@ -381,6 +384,10 @@ done:
     if (flags & GNUTLS_SFLAGS_ETM)
         msg_Dbg(crd, " - encrypt then MAC (RFC7366) enabled");
 #endif
+#if (GNUTLS_VERSION_NUMBER >= 0x030500)
+    if (flags & GNUTLS_SFLAGS_FALSE_START)
+        msg_Dbg(crd, " - false start (RFC7918) enabled");
+#endif
 
     if (alp != NULL)
     {



More information about the vlc-commits mailing list