]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/resolve/resolved-dns-stream.h
meson: make DNS-over-TLS support optional
[thirdparty/systemd.git] / src / resolve / resolved-dns-stream.h
index d194fb5a9d3cd55f99aa506c741f7d476c9b27e5..9a0da226d834e641631bd5960589236f90f16bc6 100644 (file)
@@ -9,7 +9,7 @@ typedef struct DnsStream DnsStream;
 #include "resolved-dns-transaction.h"
 #include "resolved-manager.h"
 
-#if HAVE_GNUTLS
+#if ENABLE_DNS_OVER_TLS
 #include <gnutls/gnutls.h>
 #endif
 
@@ -39,7 +39,7 @@ struct DnsStream {
         union sockaddr_union tfo_address;
         socklen_t tfo_salen;
 
-#if HAVE_GNUTLS
+#if ENABLE_DNS_OVER_TLS
         gnutls_session_t tls_session;
         int tls_handshake;
         bool tls_bye;
@@ -68,7 +68,7 @@ struct DnsStream {
 };
 
 int dns_stream_new(Manager *m, DnsStream **s, DnsProtocol protocol, int fd, const union sockaddr_union *tfo_address);
-#if HAVE_GNUTLS
+#if ENABLE_DNS_OVER_TLS
 int dns_stream_connect_tls(DnsStream *s, gnutls_session_t tls_session);
 #endif
 DnsStream *dns_stream_unref(DnsStream *s);