summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-dnstls.h
diff options
context:
space:
mode:
authorIwan Timmer <irtimmer@gmail.com>2019-06-15 22:54:41 +0200
committerIwan Timmer <irtimmer@gmail.com>2019-06-18 19:16:36 +0200
commite22c5b20641e3ce6cd029cb40e3f4ed1330493bf (patch)
tree839b5da65aa36eb55a9d8921c91c276db072c907 /src/resolve/resolved-dnstls.h
parentfix(journal-gatewayd): use relative urls (not starting with '/') (diff)
downloadsystemd-e22c5b20641e3ce6cd029cb40e3f4ed1330493bf.tar.xz
systemd-e22c5b20641e3ce6cd029cb40e3f4ed1330493bf.zip
resolved: move TLS data shared by all servers to manager
Instead of having a context and/or trusted CA list per server this is now moved to the server. Ensures future TLS configuration options are global instead of per server.
Diffstat (limited to 'src/resolve/resolved-dnstls.h')
-rw-r--r--src/resolve/resolved-dnstls.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resolve/resolved-dnstls.h b/src/resolve/resolved-dnstls.h
index fdd85eece6..b01de2d9d2 100644
--- a/src/resolve/resolved-dnstls.h
+++ b/src/resolve/resolved-dnstls.h
@@ -5,6 +5,7 @@
#error This source file requires DNS-over-TLS to be enabled
#endif
+typedef struct DnsTlsManagerData DnsTlsManagerData;
typedef struct DnsTlsServerData DnsTlsServerData;
typedef struct DnsTlsStreamData DnsTlsStreamData;
@@ -28,5 +29,7 @@ int dnstls_stream_shutdown(DnsStream *stream, int error);
ssize_t dnstls_stream_write(DnsStream *stream, const char *buf, size_t count);
ssize_t dnstls_stream_read(DnsStream *stream, void *buf, size_t count);
-void dnstls_server_init(DnsServer *server);
void dnstls_server_free(DnsServer *server);
+
+void dnstls_manager_init(Manager *manager);
+void dnstls_manager_free(Manager *manager);