]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: Test for DnsStream (plain TCP DNS and DoT) 22132/head
authorJoan Bruguera <joanbrugueram@gmail.com>
Sun, 23 Jan 2022 16:08:12 +0000 (17:08 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 27 Jan 2022 05:33:56 +0000 (14:33 +0900)
commit726bcd81b965afa3c9cc71f6c7a81b1eefb4bcf5
treea4146e016c23e5cc28cecee9709f01e30aec8d4a
parent2aaf6bb6e99b0f2bd73e0c49bef9e11a2844bf1a
resolved: Test for DnsStream (plain TCP DNS and DoT)

Tests DnsStream event handling, both for plain TCP DNS and DNS over TLS.

The DoT test requires the "openssl s_server" command line tool to mock a simple
TLS server. Thus the test's TLS part is skipped if openssl it not available.
The test works for both DNS_OVER_TLS_USE_GNUTLS and DNS_OVER_TLS_USE_OPENSSL.

The DoT case fails due to a bug, which is fixed on the next commit.
src/resolve/meson.build
src/resolve/test-resolved-stream.c [new file with mode: 0644]
test/test-resolve/selfsigned.cert [new file with mode: 0644]
test/test-resolve/selfsigned.key [new file with mode: 0644]