chiark / gitweb /
resolved: support for DNS-over-TLS
authorIwan Timmer <irtimmer@gmail.com>
Fri, 27 Apr 2018 15:50:38 +0000 (17:50 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
Add support for DNS-over-TLS using GnuTLS. To reduce latency also TLS False Start and TLS session resumption is supported.

meson.build
meson_options.txt

index df1dc4fca45e1b106897ad83e2bd7151b2005f0e..b7326427b549bcc66460b00d217dc4c93a1b9cc1 100644 (file)
@@ -1300,6 +1300,18 @@ conf.set10('HAVE_DBUS', have)
 #          'DNSSEC_' + default_dnssec.underscorify().to_upper())
 # substs.set('DEFAULT_DNSSEC_MODE', default_dnssec)
 # 
+# default_private_dns = get_option('default-private-dns')
+# if fuzzer_build
+#         default_private_dns = 'no'
+# endif
+# if default_private_dns != 'no' and conf.get('HAVE_GNUTLS') == 0
+#         message('default-private-dns cannot be set to strict or opportunistic when gnutls is disabled. Setting default-private-dns to no.')
+#         default_private_dns = 'no'
+# endif
+# conf.set('DEFAULT_PRIVATE_DNS_MODE',
+#          'PRIVATE_DNS_' + default_private_dns.underscorify().to_upper())
+# substs.set('DEFAULT_PRIVATE_DNS_MODE', default_private_dns)
+# 
 # want_importd = get_option('importd')
 # if want_importd != 'false'
 #         have = (conf.get('HAVE_LIBCURL') == 1 and
@@ -1796,6 +1808,7 @@ test_dlopen = executable(
 #                                 libbasic_gcrypt,
 #                                 libsystemd_resolve_core],
 #                    dependencies : [threads,
+#                                    libgnutls,
 #                                    libgpg_error,
 #                                    libm,
 #                                    libidn],
@@ -1931,6 +1944,7 @@ executable('elogind-user-runtime-dir',
 executable('elogind-user-runtime-dir',
 executable('elogind-user-runtime-dir',
 executable('elogind-user-runtime-dir',
+executable('elogind-user-runtime-dir',
 executable('elogind-user-runtime-dir',
            user_runtime_dir_sources,
            include_directories : includes,
@@ -3201,6 +3215,7 @@ status = [
 #         'symbolic gateway hostnames:        @0@'.format(', '.join(gateway_hostnames)),
 # 
 #         'default DNSSEC mode:               @0@'.format(default_dnssec),
+#         'default private DNS mode:          @0@'.format(default_private_dns),
 #         'default cgroup hierarchy:          @0@'.format(default_hierarchy),
 #endif // 0
         'default KillUserProcesses setting: @0@'.format(kill_user_processes)]
index 8e92488259d4281e66b76d8395e5b7ffbf49c94b..6fe7cf3da5ddd6fcc3c39adea346bc0f4db1e1f3 100644 (file)
@@ -247,6 +247,10 @@ option('gshadow', type : 'boolean',
 #        description : 'default DNSSEC mode',
 #        choices : ['yes', 'allow-downgrade', 'no'],
 #        value : 'allow-downgrade')
+# option('default-private-dns', type : 'combo',
+#        description : 'default private DNS mode',
+#        choices : ['opportunistic', 'no'],
+#        value : 'no')
 # option('dns-servers', type : 'string',
 #        description : 'space-separated list of default DNS servers',
 #        value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')