/* define if OpenSSL supports Ed448 */
#undef HAVE_OPENSSL_ED448
+/* define if OpenSSL supports SipHash */
+#undef HAVE_OPENSSL_SIPHASH
+
/* Define to 1 if you have the `processor_bind' function. */
#undef HAVE_PROCESSOR_BIND
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SipHash support" >&5
+$as_echo_n "checking for SipHash support... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <openssl/evp.h>
+ #include <openssl/opensslv.h>
+int
+main ()
+{
+#if OPENSSL_VERSION_NUMBER < 0x10101010L
+ #error OpenSSL >= 1.1.1a required for working SipHash initialization
+ #endif
+ EVP_PKEY *key = EVP_PKEY_new_raw_private_key(
+ EVP_PKEY_SIPHASH, NULL, NULL, 0);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+$as_echo "#define HAVE_OPENSSL_SIPHASH 1" >>confdefs.h
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
#
# Check for OpenSSL SHA-1 support
#
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])])
+AC_MSG_CHECKING([for SipHash support])
+AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM([[#include <openssl/evp.h>
+ #include <openssl/opensslv.h>]],
+ [[#if OPENSSL_VERSION_NUMBER < 0x10101010L
+ #error OpenSSL >= 1.1.1a required for working SipHash initialization
+ #endif
+ EVP_PKEY *key = EVP_PKEY_new_raw_private_key(
+ EVP_PKEY_SIPHASH, NULL, NULL, 0);]])],
+ [AC_DEFINE([HAVE_OPENSSL_SIPHASH], [1], [define if OpenSSL supports SipHash])
+ AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])])
+
#
# Check for OpenSSL SHA-1 support
#