]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/resolve/resolved-dnstls-gnutls.h
resolved: refactor GnuTLS specific code in separate source file
[thirdparty/systemd.git] / src / resolve / resolved-dnstls-gnutls.h
CommitLineData
6016fcb0
IT
1/* SPDX-License-Identifier: LGPL-2.1+ */
2#pragma once
3
4#if !ENABLE_DNS_OVER_TLS || !HAVE_GNUTLS
5#error This source file requires DNS-over-TLS to be enabled and GnuTLS to be available.
6#endif
7
8#include <stdbool.h>
9
10#include <gnutls/gnutls.h>
11
12struct DnsTlsServerData {
13 gnutls_certificate_credentials_t cert_cred;
14 gnutls_datum_t session_data;
15};
16
17struct DnsTlsStreamData {
18 gnutls_session_t session;
19 int handshake;
20 bool shutdown;
21};