summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dnstls.h
diff options
context:
space:
mode:
authorIwan Timmer <irtimmer@gmail.com>2018-07-26 22:47:50 +0100
committerIwan Timmer <irtimmer@gmail.com>2018-07-27 21:23:17 +0100
commit096cbdce13b811f34726533d1a569912adc7cbec (patch)
treecdd10ccc2032850c291198a6e660cc1ddbe0a225 /src/resolve/resolved-dnstls.h
parentba6aaf572774a49ec2ece32fff492ed814d60922 (diff)
downloadsystemd-096cbdce13b811f34726533d1a569912adc7cbec.tar.gz
resolved: basic OpenSSL support for DNS-over-TLS
This provides basic OpenSSL support without optimizations like TCP Fast Open and TLS Session Tickets. Notice only a single SSL library can be enabled at a time and therefore journald functions provided by GnuTLS will be disabled when using OpenSSL. Fixes #9531
Diffstat (limited to 'src/resolve/resolved-dnstls.h')
-rw-r--r--src/resolve/resolved-dnstls.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resolve/resolved-dnstls.h b/src/resolve/resolved-dnstls.h
index 32befc6414..52af3e9801 100644
--- a/src/resolve/resolved-dnstls.h
+++ b/src/resolve/resolved-dnstls.h
@@ -8,8 +8,12 @@
typedef struct DnsTlsServerData DnsTlsServerData;
typedef struct DnsTlsStreamData DnsTlsStreamData;
-#if HAVE_GNUTLS
+#if DNS_OVER_TLS_USE_GNUTLS
#include "resolved-dnstls-gnutls.h"
+#elif DNS_OVER_TLS_USE_OPENSSL
+#include "resolved-dnstls-openssl.h"
+#else
+#error Unknown dependency for supporting DNS-over-TLS
#endif
#include "resolved-dns-stream.h"