2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Make the DNS over HTTPS support optional

This commit adds two new autoconf options `--enable-doh` (enabled by
default) and `--with-libnghttp2` (mandatory when DoH is enabled).

When DoH support is disabled the library is not linked-in and support
for http(s) protocol is disabled in the netmgr, named and dig.
This commit is contained in:
Ondřej Surý
2021-04-21 13:52:15 +02:00
parent 390a522366
commit 2bb454182b
25 changed files with 223 additions and 71 deletions

View File

@@ -10,7 +10,9 @@
*/
#include <inttypes.h>
#if HAVE_LIBNGHTTP2
#include <nghttp2/nghttp2.h>
#endif /* HAVE_LIBNGHTTP2 */
#include <openssl/bn.h>
#include <openssl/conf.h>
@@ -388,6 +390,7 @@ isc_tls_free(isc_tls_t **tlsp) {
*tlsp = NULL;
}
#if HAVE_LIBNGHTTP2
#ifndef OPENSSL_NO_NEXTPROTONEG
/*
* NPN TLS extension client callback.
@@ -480,3 +483,4 @@ isc_tls_get_http2_alpn(isc_tls_t *tls, const unsigned char **alpn,
}
#endif
}
#endif /* HAVE_LIBNGHTTP2 */