Commit be45fed4 authored by Thomas Guillem's avatar Thomas Guillem

gnutls: require GnuTLS 3.5.0+ for gnutls_session_get_flags()

parent c3c3d670
......@@ -326,17 +326,15 @@ static int gnutls_ContinueHandshake(vlc_tls_creds_t *crd, vlc_tls_t *tls,
unsigned flags;
done:
#if (GNUTLS_VERSION_NUMBER >= 0x030500)
flags = gnutls_session_get_flags(session);
if (flags & GNUTLS_SFLAGS_SAFE_RENEGOTIATION)
msg_Dbg(crd, " - safe renegotiation (RFC5746) enabled");
#if (GNUTLS_VERSION_NUMBER >= 0x030400)
if (flags & GNUTLS_SFLAGS_EXT_MASTER_SECRET)
msg_Dbg(crd, " - extended master secret (RFC7627) enabled");
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
......
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