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