mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Drop USE_OPENSSL constraint from dh_test
The USE_OPENSSL constraint in dh_test does not seems to be necessary anymore, the test runs with PKCS#11 as well.
This commit is contained in:
@@ -34,7 +34,6 @@
|
|||||||
#include "../dst_internal.h"
|
#include "../dst_internal.h"
|
||||||
#include "dnstest.h"
|
#include "dnstest.h"
|
||||||
|
|
||||||
#if USE_OPENSSL
|
|
||||||
static int
|
static int
|
||||||
_setup(void **state) {
|
_setup(void **state) {
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
@@ -87,21 +86,15 @@ dh_computesecret(void **state) {
|
|||||||
|
|
||||||
dst_key_free(&key);
|
dst_key_free(&key);
|
||||||
}
|
}
|
||||||
#endif /* USE_OPENSSL */
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(void) {
|
main(void) {
|
||||||
#if USE_OPENSSL
|
|
||||||
const struct CMUnitTest tests[] = {
|
const struct CMUnitTest tests[] = {
|
||||||
cmocka_unit_test_setup_teardown(dh_computesecret, _setup,
|
cmocka_unit_test_setup_teardown(dh_computesecret, _setup,
|
||||||
_teardown),
|
_teardown),
|
||||||
};
|
};
|
||||||
|
|
||||||
return (cmocka_run_group_tests(tests, NULL, NULL));
|
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 */
|
#else /* HAVE_CMOCKA */
|
||||||
|
Reference in New Issue
Block a user