-# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
+# generated automatically by aclocal 1.16.2 -*- Autoconf -*-
-# Copyright (C) 1996-2018 Free Software Foundation, Inc.
+# Copyright (C) 1996-2020 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# AM_CONDITIONAL -*- Autoconf -*-
-# Copyright (C) 1997-2018 Free Software Foundation, Inc.
+# Copyright (C) 1997-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
# From Jim Meyering
-# Copyright (C) 1996-2018 Free Software Foundation, Inc.
+# Copyright (C) 1996-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
]
)
-# Copyright (C) 2006-2018 Free Software Foundation, Inc.
+# Copyright (C) 2006-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
1|5|7|8|10) # RSA algorithms
key1=$($KEYGEN -a "$alg" -b "1024" -n zone example 2> keygen.err || true)
;;
+ 15|16)
+ key1=$($KEYGEN -a "$alg" -b "1024" -n zone example 2> keygen.err || true)
+ # Soft-fail in case HSM doesn't support Edwards curves
+ if grep "not found" keygen.err > /dev/null && [ "$CRYPTO" = "pkcs11" ]; then
+ echo_i "Algorithm $alg not supported by HSM: skipping"
+ alg=$((alg+1))
+ continue
+ fi
+ ;;
*)
key1=$($KEYGEN -a "$alg" -n zone example 2> keygen.err || true)
esac
AC_SUBST([PKCS11_TEST])
AC_SUBST([PKCS11_TOOLS])
+AC_SUBST([CRYPTO])
AS_CASE([$CRYPTO],
[pkcs11],[AC_DEFINE([USE_PKCS11], [1], [define if PKCS11 is used for Public-Key Cryptography])],
[AC_DEFINE([USE_OPENSSL], [1], [define if OpenSSL is used for Public-Key Cryptography])])
my @substtest = ("CHECKDS",
"COVERAGE",
+ "CRYPTO",
"DNSTAP",
"FSTRM_CAPTURE",
"JSONSTATS",
if ($cryptolib eq "openssl") {
$configdefh{"USE_OPENSSL"} = 1;
+ $configtest{"CRYPTO"} = "OpenSSL";
} else {
$configdefh{"USE_PKCS11"} = 1;
+ $configtest{"CRYPTO"} = "pkcs11";
}
# check OpenSSL