]>
Commit | Line | Data |
---|---|---|
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 | ||
096cbdce | 8 | #include <openssl/ssl.h> |
72938b93 | 9 | #include <stdbool.h> |
096cbdce IT |
10 | |
11 | struct DnsTlsServerData { | |
12 | SSL_CTX *ctx; | |
04c4d919 | 13 | SSL_SESSION *session; |
096cbdce IT |
14 | }; |
15 | ||
16 | struct DnsTlsStreamData { | |
17 | int handshake; | |
18 | bool shutdown; | |
19 | SSL *ssl; | |
04c4d919 | 20 | BUF_MEM *write_buffer; |
ab8cd6c9 | 21 | size_t buffer_offset; |
096cbdce | 22 | }; |