]> git.ipfire.org Git - thirdparty/bind9.git/commit
unit tests: include an OpenSSL header before including cmocka.h
authorAram Sargsyan <aram@isc.org>
Thu, 6 Apr 2023 13:18:04 +0000 (13:18 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Fri, 14 Apr 2023 12:11:52 +0000 (12:11 +0000)
commit87db9ea84cb72ef9be3779e94407ccee7f8f2a4a
tree48127ace85b8f458b4ab356291a257ab0de44bca
parent9e3f7f4d53e7eec09f994fead8d6d73d660a98c6
unit tests: include an OpenSSL header before including cmocka.h

OpenSSL 3.1.0 uses __attribute__(malloc), conflicting with a redefined
malloc in cmocka.h.

As a workaround, include an OpenSSL header file before including
cmocka.h in the unit tests where OpenSSL is used.
tests/dns/dst_test.c
tests/dns/rsa_test.c
tests/isc/doh_test.c
tests/isc/hmac_test.c
tests/isc/netmgr_common.c
tests/isc/tcp_test.c
tests/isc/tcpdns_test.c
tests/isc/tls_test.c
tests/isc/tlsdns_test.c
tests/isc/udp_test.c