]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make dig advertise the "dot" ALPN token for DoT connections
authorArtem Boldariev <artem@boldariev.com>
Thu, 26 Aug 2021 13:36:36 +0000 (16:36 +0300)
committerArtem Boldariev <artem@boldariev.com>
Tue, 5 Oct 2021 08:23:47 +0000 (11:23 +0300)
This commit makes dig advertise the "dot" ALPN token to make it
possible for ALPN to happen.

bin/dig/dighost.c

index ead78f5bcb9fcccda91f3591f089df750e0dda0c..c40a1992f77e7ea502edb07912d8f7feb05a38cb 100644 (file)
@@ -2783,6 +2783,7 @@ start_tcp(dig_query_t *query) {
                if (query->lookup->tls_mode) {
                        result = isc_tlsctx_createclient(&query->tlsctx);
                        RUNTIME_CHECK(result == ISC_R_SUCCESS);
+                       isc_tlsctx_enable_dot_client_alpn(query->tlsctx);
                        isc_nm_tlsdnsconnect(netmgr, &localaddr,
                                             &query->sockaddr, tcp_connected,
                                             query, local_timeout, 0,