]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/resolve/resolved-dnstls-openssl.h
resolved: add missing error code check when initializing DNS-over-TLS
[thirdparty/systemd.git] / src / resolve / resolved-dnstls-openssl.h
index c92d2b2354a4c80bbc3980af0a2867cce628aeb8..8100d2ba6b027bcf7e859bdca2c79bc548553591 100644 (file)
@@ -5,16 +5,21 @@
 #error This source file requires DNS-over-TLS to be enabled and OpenSSL to be available.
 #endif
 
+#include <openssl/ssl.h>
 #include <stdbool.h>
 
-#include <openssl/ssl.h>
+struct DnsTlsManagerData {
+        SSL_CTX *ctx;
+};
 
 struct DnsTlsServerData {
-        SSL_CTX *ctx;
+        SSL_SESSION *session;
 };
 
 struct DnsTlsStreamData {
         int handshake;
         bool shutdown;
         SSL *ssl;
+        BUF_MEM *write_buffer;
+        size_t buffer_offset;
 };