summaryrefslogtreecommitdiff
path: root/m4/hooks.m4
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-07-03 08:49:06 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-07-07 08:26:47 +0200
commit805f14d44805ec8070334e24ad87539d5f0b33dd (patch)
tree74b60c340298d902b0d3c97cf3629142feec5cf2 /m4/hooks.m4
parent6ca5787e2027a163eee5f85b36e8e0fe24fd6a53 (diff)
downloadgnutls-805f14d44805ec8070334e24ad87539d5f0b33dd.tar.gz
configure: added option --enable-tls13-support
The new option enables TLS1.3 draft-28 support unconditionally. Updated the test suite to run when TLS1.3 is enabled by default, and added a CI run with TLS1.3 enabled. Resolves #424 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'm4/hooks.m4')
-rw-r--r--m4/hooks.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/hooks.m4 b/m4/hooks.m4
index 8a7bcd6eef..e997e1d30c 100644
--- a/m4/hooks.m4
+++ b/m4/hooks.m4
@@ -172,6 +172,21 @@ LIBTASN1_MINIMUM=4.9
fi
AM_CONDITIONAL(ENABLE_SSL3, test "$ac_enable_ssl3" != "no")
+ ac_enable_tls13=no
+ AC_MSG_CHECKING([whether to enable the TLS 1.3 draft protocol])
+ AC_ARG_ENABLE(tls13-support,
+ AS_HELP_STRING([--enable-tls13-support],
+ [enable the TLS1.3 draft protocol by default]),
+ ac_enable_tls13=$enableval)
+ if test x$ac_enable_tls13 != xno; then
+ AC_MSG_RESULT(no)
+ AC_DEFINE([ENABLE_TLS13], 1, [enable TLS1.3 support])
+ else
+ ac_full=0
+ AC_MSG_RESULT(yes)
+ fi
+ AM_CONDITIONAL(ENABLE_TLS13, test "$ac_enable_tls13" != "no")
+
ac_enable_ssl2=yes
AC_MSG_CHECKING([whether to disable the SSL 2.0 client hello])
AC_ARG_ENABLE(ssl2-support,