mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 23:55:27 +00:00
Run rsabigexponent test only when OpenSSL is used as cryptography provider
This commit is contained in:
@@ -75,6 +75,8 @@ main(int argc, char **argv) {
|
|||||||
UNUSED(argc);
|
UNUSED(argc);
|
||||||
UNUSED(argv);
|
UNUSED(argv);
|
||||||
|
|
||||||
|
#if !USE_PKCS11
|
||||||
|
|
||||||
rsa = RSA_new();
|
rsa = RSA_new();
|
||||||
e = BN_new();
|
e = BN_new();
|
||||||
pkey = EVP_PKEY_new();
|
pkey = EVP_PKEY_new();
|
||||||
@@ -149,6 +151,9 @@ main(int argc, char **argv) {
|
|||||||
dns_name_destroy();
|
dns_name_destroy();
|
||||||
isc_mem_destroy(&mctx);
|
isc_mem_destroy(&mctx);
|
||||||
return (0);
|
return (0);
|
||||||
|
#else /* !USE_PKCS11 */
|
||||||
|
return (1);
|
||||||
|
#endif /* !USE_PKC11 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
@@ -16,7 +16,7 @@ if $BIGKEY > /dev/null 2>&1
|
|||||||
then
|
then
|
||||||
rm -f Kexample.*
|
rm -f Kexample.*
|
||||||
else
|
else
|
||||||
echo_i "This test requires cryptography" >&2
|
echo_i "This test requires OpenSSL cryptography provider" >&2
|
||||||
echo_i "configure with --with-openssl, or --with-pkcs11 and --enable-native-pkcs11" >&2
|
echo_i "configure with --with-openssl, and make sure you disable --with-pkcs11 and --enable-native-pkcs11" >&2
|
||||||
exit 255
|
exit 255
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user