* Following the example set in 634bdfb16d, the tlsdns netmgr
module now uses libuv and SSL primitives directly, rather than
opening a TLS socket which opens a TCP socket, as the previous
model was difficult to debug. Closes #2335.
* Remove the netmgr tls layer (we will have to re-add it for DoH)
* Add isc_tls API to wrap the OpenSSL SSL_CTX object into libisc
library; move the OpenSSL initialization/deinitialization from dstapi
needed for OpenSSL 1.0.x to the isc_tls_{initialize,destroy}()
* Add couple of new shims needed for OpenSSL 1.0.x
* When LibreSSL is used, require at least version 2.7.0 that
has the best OpenSSL 1.1.x compatibility and auto init/deinit
* Enforce OpenSSL 1.1.x usage on Windows
* Added a TLSDNS unit test and implemented a simple TLSDNS echo
server and client.
128 lines
1.8 KiB
Makefile
128 lines
1.8 KiB
Makefile
include $(top_srcdir)/Makefile.top
|
|
include $(top_srcdir)/Makefile.tests
|
|
|
|
AM_CPPFLAGS += \
|
|
$(LIBISC_CFLAGS)
|
|
|
|
LDADD += \
|
|
libisctest.la \
|
|
$(LIBISC_LIBS)
|
|
|
|
check_LTLIBRARIES = libisctest.la
|
|
libisctest_la_SOURCES = \
|
|
../unix/socket_p.h \
|
|
isctest.c \
|
|
isctest.h \
|
|
uv_wrap.h
|
|
|
|
TESTS = \
|
|
aes_test \
|
|
buffer_test \
|
|
counter_test \
|
|
crc64_test \
|
|
errno_test \
|
|
file_test \
|
|
hash_test \
|
|
heap_test \
|
|
hmac_test \
|
|
ht_test \
|
|
lex_test \
|
|
md_test \
|
|
mem_test \
|
|
netaddr_test \
|
|
parse_test \
|
|
pool_test \
|
|
quota_test \
|
|
radix_test \
|
|
random_test \
|
|
regex_test \
|
|
result_test \
|
|
safe_test \
|
|
siphash_test \
|
|
sockaddr_test \
|
|
socket_test \
|
|
symtab_test \
|
|
task_test \
|
|
taskpool_test \
|
|
tcp_test \
|
|
tcp_quota_test \
|
|
tcpdns_test \
|
|
tlsdns_test \
|
|
time_test \
|
|
timer_test \
|
|
udp_test
|
|
|
|
check_PROGRAMS = \
|
|
$(TESTS)
|
|
|
|
hmac_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(OPENSSL_CFLAGS)
|
|
|
|
hmac_test_LDADD = \
|
|
$(LDADD) \
|
|
$(OPENSSL_LIBS)
|
|
|
|
md_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(OPENSSL_CFLAGS)
|
|
|
|
md_test_LDADD = \
|
|
$(LDADD) \
|
|
$(OPENSSL_LIBS)
|
|
|
|
random_test_LDADD = \
|
|
$(LDADD) \
|
|
-lm
|
|
|
|
tcp_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(OPENSSL_CFLAGS) \
|
|
$(LIBUV_CFLAGS)
|
|
|
|
tcp_test_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBUV_LIBS)
|
|
|
|
tcp_quota_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(OPENSSL_CFLAGS) \
|
|
$(LIBUV_CFLAGS)
|
|
|
|
tcp_quota_test_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBUV_LIBS)
|
|
|
|
tcpdns_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(OPENSSL_CFLAGS) \
|
|
$(LIBUV_CFLAGS)
|
|
|
|
tcpdns_test_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBUV_LIBS)
|
|
|
|
tlsdns_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(OPENSSL_CFLAGS) \
|
|
$(LIBUV_CFLAGS)
|
|
|
|
tlsdns_test_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBUV_LIBS)
|
|
|
|
udp_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(OPENSSL_CFLAGS) \
|
|
$(LIBUV_CFLAGS)
|
|
|
|
udp_test_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBUV_LIBS)
|
|
|
|
unit-local: check
|
|
|
|
EXTRA_DIST = testdata
|
|
|
|
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|