diff options
author | Daiki Ueno <dueno@redhat.com> | 2017-03-31 14:36:46 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-05-29 08:23:33 +0200 |
commit | ce703b76b5526815fc58f055bde16347a0ae931e (patch) | |
tree | c639ee91fe2b5688267040a22be990a49568be34 /configure.ac | |
parent | e29327ac05a54bcd9085da5be4c5609f689ed08a (diff) | |
download | gnutls-ce703b76b5526815fc58f055bde16347a0ae931e.tar.gz |
build: import files from Nettle for RSA-PSS
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e4f963a31f..10d26204b2 100644 --- a/configure.ac +++ b/configure.ac @@ -509,6 +509,14 @@ if test "$enable_non_suiteb" = "yes";then fi AM_CONDITIONAL(ENABLE_NON_SUITEB_CURVES, test "$enable_non_suiteb" = "yes") +dnl nettle_rsa_pss_* are only available in the development version of nettle +AC_CHECK_LIB(hogweed, nettle_rsa_pss_sha256_verify_digest, have_nettle_rsa_pss=yes, have_nettle_rsa_pss=no, [$HOGWEED_LIBS]) + +if test "$have_nettle_rsa_pss" = "yes";then + AC_DEFINE([HAVE_NETTLE_RSA_PSS], 1, [Have nettle_rsa_pss_*]) +fi +AM_CONDITIONAL(HAVE_NETTLE_RSA_PSS, test "$have_nettle_rsa_pss" = "yes") + AC_MSG_CHECKING([whether to build libdane]) AC_ARG_ENABLE(libdane, AS_HELP_STRING([--disable-libdane], |