summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-05-14 10:28:49 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-05-14 10:35:38 +0200
commit89faab9e9e9123f39e8c0c6f8da1f67de423254a (patch)
treee9c1a3256d1b0cfa46ac094976435fec87586603 /m4
parentd5611fdb2d89d32ac4f217058e5b70f61407b907 (diff)
downloadgnutls-89faab9e9e9123f39e8c0c6f8da1f67de423254a.tar.gz
Allow for conditional compilation of SSL 3.0 protocol
This allows to completely remove SSL 3.0 support by calling configure with the '--disable-ssl3' option. Resolves #93
Diffstat (limited to '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 ca049fd012..9d057951d9 100644
--- a/m4/hooks.m4
+++ b/m4/hooks.m4
@@ -140,6 +140,21 @@ LIBTASN1_MINIMUM=4.3
AC_MSG_WARN([C99 macros not supported. This may affect compiling.])
])
+ ac_enable_ssl3=yes
+ AC_MSG_CHECKING([whether to disable the SSL 3.0 protocol])
+ AC_ARG_ENABLE(ssl3-support,
+ AS_HELP_STRING([--disable-ssl3-support],
+ [disable support for the SSL 3.0 protocol]),
+ ac_enable_ssl3=$enableval)
+ if test x$ac_enable_ssl3 != xno; then
+ AC_MSG_RESULT(no)
+ AC_DEFINE([ENABLE_SSL3], 1, [enable SSL3.0 support])
+ else
+ ac_full=0
+ AC_MSG_RESULT(yes)
+ fi
+ AM_CONDITIONAL(ENABLE_SSL3, test "$ac_enable_ssl3" != "no")
+
ac_enable_srtp=yes
AC_MSG_CHECKING([whether to disable DTLS-SRTP extension])
AC_ARG_ENABLE(dtls-srtp-support,