1:255.16-alt1
[systemd_ALT.git] / src / resolve / resolved-dnstls-openssl.h
bloba73b77bb581612562de8edf1b8c8b60c1d4a8167
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
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
8 #include <openssl/ssl.h>
9 #include <stdbool.h>
11 struct DnsTlsManagerData {
12 SSL_CTX *ctx;
15 struct DnsTlsServerData {
16 SSL_SESSION *session;
19 struct DnsTlsStreamData {
20 int handshake;
21 bool shutdown;
22 SSL *ssl;
23 BUF_MEM *write_buffer;
24 size_t buffer_offset;