]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/resolve/resolved-dnstls-openssl.h
Merge pull request #9775 from yuwata/follow-up-9766
[thirdparty/systemd.git] / src / resolve / resolved-dnstls-openssl.h
CommitLineData
096cbdce
IT
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
12struct DnsTlsServerData {
13 SSL_CTX *ctx;
04c4d919 14 SSL_SESSION *session;
096cbdce
IT
15};
16
17struct DnsTlsStreamData {
18 int handshake;
19 bool shutdown;
20 SSL *ssl;
04c4d919 21 BUF_MEM *write_buffer;
096cbdce 22};