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