]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Run rsabigexponent test only when OpenSSL is used as cryptography provider
authorOndřej Surý <ondrej@sury.org>
Mon, 27 Aug 2018 09:24:32 +0000 (11:24 +0200)
committerOndřej Surý <ondrej@sury.org>
Mon, 27 Aug 2018 09:24:32 +0000 (11:24 +0200)
bin/tests/system/rsabigexponent/bigkey.c
bin/tests/system/rsabigexponent/prereq.sh

index e0a82abe4531a4aa7afeac4d8ef0fdb5def60015..f3358e0d54375c27ab2ba2770a0ddc6bcf4818ad 100644 (file)
@@ -75,6 +75,8 @@ main(int argc, char **argv) {
        UNUSED(argc);
        UNUSED(argv);
 
+#if !USE_PKCS11
+
        rsa = RSA_new();
        e = BN_new();
        pkey = EVP_PKEY_new();
@@ -149,6 +151,9 @@ main(int argc, char **argv) {
        dns_name_destroy();
        isc_mem_destroy(&mctx);
        return (0);
+#else /* !USE_PKCS11 */
+       return (1);
+#endif /* !USE_PKC11 */
 }
 
 /*! \file */
index aaca684d62f1c446faac2b35c5f95ad29fa4ee79..2ee132d669e14ab6ea126059eec75e435960d114 100644 (file)
@@ -16,7 +16,7 @@ if $BIGKEY > /dev/null 2>&1
 then
     rm -f Kexample.*
 else
-    echo_i "This test requires cryptography" >&2
-    echo_i "configure with --with-openssl, or --with-pkcs11 and --enable-native-pkcs11" >&2
+    echo_i "This test requires OpenSSL cryptography provider" >&2
+    echo_i "configure with --with-openssl, and make sure you disable --with-pkcs11 and --enable-native-pkcs11" >&2
     exit 255
 fi