]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Drop USE_OPENSSL constraint from dh_test
authorMichal Nowak <mnowak@isc.org>
Tue, 26 Jan 2021 17:01:41 +0000 (18:01 +0100)
committerMichal Nowak <mnowak@isc.org>
Wed, 17 Feb 2021 11:21:41 +0000 (12:21 +0100)
The USE_OPENSSL constraint in dh_test does not seems to be necessary
anymore, the test runs with PKCS#11 as well.

lib/dns/tests/dh_test.c

index db7cac9b6ae2260316ac355ce7732d9fdf5e55ec..1f82fa57479236a0413eb04e9d3256eb43c77ff0 100644 (file)
@@ -34,7 +34,6 @@
 #include "../dst_internal.h"
 #include "dnstest.h"
 
-#if USE_OPENSSL
 static int
 _setup(void **state) {
        isc_result_t result;
@@ -87,21 +86,15 @@ dh_computesecret(void **state) {
 
        dst_key_free(&key);
 }
-#endif /* USE_OPENSSL */
 
 int
 main(void) {
-#if USE_OPENSSL
        const struct CMUnitTest tests[] = {
                cmocka_unit_test_setup_teardown(dh_computesecret, _setup,
                                                _teardown),
        };
 
        return (cmocka_run_group_tests(tests, NULL, NULL));
-#else  /* if USE_OPENSSL */
-       print_message("1..0 # Skipped: dh test broken with PKCS11");
-       return (SKIPPED_TEST_EXIT_CODE);
-#endif /* if USE_OPENSSL */
 }
 
 #else /* HAVE_CMOCKA */