diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-03-11 20:15:07 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-03-12 00:20:31 +0100 |
commit | ba1a0fae3371baccaa24aed1f5fcdc12f6df82e1 (patch) | |
tree | 560f35017d91b2c56dc9ff6b709cfeb675f0f9b6 /m4 | |
parent | 161905abf20fb502c70b610f45789a917f3ed695 (diff) | |
download | gnutls-ba1a0fae3371baccaa24aed1f5fcdc12f6df82e1.tar.gz |
Added options to disable more key exchange mechanisms.
In that DHE was separated from ECDHE.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/hooks.m4 | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/m4/hooks.m4 b/m4/hooks.m4 index 35fa68b7ce..366006e229 100644 --- a/m4/hooks.m4 +++ b/m4/hooks.m4 @@ -211,7 +211,49 @@ fi AC_MSG_RESULT(yes) fi AM_CONDITIONAL(ENABLE_ANON, test "$ac_enable_anon" != "no") - + + AC_MSG_CHECKING([whether to disable DHE support]) + AC_ARG_ENABLE(dhe, + AS_HELP_STRING([--disable-dhe], + [disable the DHE support]), + ac_enable_dhe=$enableval, ac_enable_dhe=yes) + if test x$ac_enable_dhe != xno; then + AC_MSG_RESULT(no) + AC_DEFINE([ENABLE_DHE], 1, [enable DHE]) + else + ac_full=0 + AC_MSG_RESULT(yes) + fi + AM_CONDITIONAL(ENABLE_DHE, test "$ac_enable_dhe" != "no") + + AC_MSG_CHECKING([whether to disable ECDHE support]) + AC_ARG_ENABLE(ecdhe, + AS_HELP_STRING([--disable-ecdhe], + [disable the ECDHE support]), + ac_enable_ecdhe=$enableval, ac_enable_ecdhe=yes) + if test x$ac_enable_ecdhe != xno; then + AC_MSG_RESULT(no) + AC_DEFINE([ENABLE_ECDHE], 1, [enable DHE]) + else + ac_full=0 + AC_MSG_RESULT(yes) + fi + AM_CONDITIONAL(ENABLE_ECDHE, test "$ac_enable_ecdhe" != "no") + + AC_MSG_CHECKING([whether to disable RSA-EXPORT support]) + AC_ARG_ENABLE(rsa-export, + AS_HELP_STRING([--disable-rsa-export], + [disable the RSA-EXPORT support]), + ac_enable_rsa_export=$enableval, ac_enable_rsa_export=yes) + if test x$ac_enable_rsa_export != xno; then + AC_MSG_RESULT(no) + AC_DEFINE([ENABLE_RSA_EXPORT], 1, [enable RSA-EXPORT]) + else + ac_full=0 + AC_MSG_RESULT(yes) + fi + AM_CONDITIONAL(ENABLE_RSA_EXPORT, test "$ac_enable_rsa_export" != "no") + ac_enable_openpgp=yes AC_MSG_CHECKING([whether to disable OpenPGP Certificate authentication support]) AC_ARG_ENABLE(openpgp-authentication, |