]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/resolve/resolved-dnstls-openssl.h
resolved: TCP Fast Open and TLS Session Tickets for OpenSSL
[thirdparty/systemd.git] / src / resolve / resolved-dnstls-openssl.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #if !ENABLE_DNS_OVER_TLS || !DNS_OVER_TLS_USE_OPENSSL
5 #error This source file requires DNS-over-TLS to be enabled and OpenSSL to be available.
6 #endif
7
8 #include <stdbool.h>
9
10 #include <openssl/ssl.h>
11
12 struct DnsTlsServerData {
13 SSL_CTX *ctx;
14 SSL_SESSION *session;
15 };
16
17 struct DnsTlsStreamData {
18 int handshake;
19 bool shutdown;
20 SSL *ssl;
21 BUF_MEM *write_buffer;
22 };