File tree Expand file tree Collapse file tree 4 files changed +23
-31
lines changed Expand file tree Collapse file tree 4 files changed +23
-31
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ systemd_resolved_sources += custom_target(
103103systemd_resolved_dependencies = [threads, libm] + [lib_openssl_or_gcrypt]
104104if conf.get(' ENABLE_DNS_OVER_TLS' ) == 1
105105 systemd_resolved_sources += files (
106- ' resolved-dnstls-openssl .c' ,
106+ ' resolved-dnstls.c' ,
107107 )
108108 systemd_resolved_dependencies += libopenssl
109109endif
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change 33
44#if ENABLE_DNS_OVER_TLS
55
6+ #if !HAVE_OPENSSL
7+ #error This source file requires OpenSSL to be available.
8+ #endif
9+
10+ #include <openssl/ssl.h>
11+ #include <stdbool.h>
612#include <stdint.h>
713#include <sys/uio.h>
814
9- #include "resolved-dnstls-openssl.h"
10-
1115typedef struct DnsServer DnsServer ;
1216typedef struct DnsStream DnsStream ;
13- typedef struct DnsTlsManagerData DnsTlsManagerData ;
14- typedef struct DnsTlsServerData DnsTlsServerData ;
15- typedef struct DnsTlsStreamData DnsTlsStreamData ;
1617typedef struct Manager Manager ;
1718
19+ typedef struct DnsTlsManagerData {
20+ SSL_CTX * ctx ;
21+ } DnsTlsManagerData ;
22+
23+ typedef struct DnsTlsServerData {
24+ SSL_SESSION * session ;
25+ } DnsTlsServerData ;
26+
27+ typedef struct DnsTlsStreamData {
28+ int handshake ;
29+ bool shutdown ;
30+ SSL * ssl ;
31+ BUF_MEM * write_buffer ;
32+ size_t buffer_offset ;
33+ } DnsTlsStreamData ;
34+
1835#define DNSTLS_STREAM_CLOSED 1
1936
2037int dnstls_stream_connect_tls (DnsStream * stream , DnsServer * server );
You can’t perform that action at this time.
0 commit comments