resolved: don't require check when importing resolved-dnstls.h
This commit is contained in:
parent
71a681ae50
commit
aedf00a2bd
|
@ -35,11 +35,9 @@ typedef enum DnsServerFeatureLevel {
|
||||||
const char* dns_server_feature_level_to_string(int i) _const_;
|
const char* dns_server_feature_level_to_string(int i) _const_;
|
||||||
int dns_server_feature_level_from_string(const char *s) _pure_;
|
int dns_server_feature_level_from_string(const char *s) _pure_;
|
||||||
|
|
||||||
|
#include "resolved-dnstls.h"
|
||||||
#include "resolved-link.h"
|
#include "resolved-link.h"
|
||||||
#include "resolved-manager.h"
|
#include "resolved-manager.h"
|
||||||
#if ENABLE_DNS_OVER_TLS
|
|
||||||
#include "resolved-dnstls.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct DnsServer {
|
struct DnsServer {
|
||||||
Manager *manager;
|
Manager *manager;
|
||||||
|
|
|
@ -16,10 +16,8 @@ typedef enum DnsStreamType {
|
||||||
|
|
||||||
#include "resolved-dns-packet.h"
|
#include "resolved-dns-packet.h"
|
||||||
#include "resolved-dns-transaction.h"
|
#include "resolved-dns-transaction.h"
|
||||||
#include "resolved-manager.h"
|
|
||||||
#if ENABLE_DNS_OVER_TLS
|
|
||||||
#include "resolved-dnstls.h"
|
#include "resolved-dnstls.h"
|
||||||
#endif
|
#include "resolved-manager.h"
|
||||||
|
|
||||||
#define DNS_STREAM_WRITE_TLS_DATA 1
|
#define DNS_STREAM_WRITE_TLS_DATA 1
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,8 @@
|
||||||
#include "random-util.h"
|
#include "random-util.h"
|
||||||
#include "resolved-dns-cache.h"
|
#include "resolved-dns-cache.h"
|
||||||
#include "resolved-dns-transaction.h"
|
#include "resolved-dns-transaction.h"
|
||||||
#include "resolved-llmnr.h"
|
|
||||||
#if ENABLE_DNS_OVER_TLS
|
|
||||||
#include "resolved-dnstls.h"
|
#include "resolved-dnstls.h"
|
||||||
#endif
|
#include "resolved-llmnr.h"
|
||||||
#include "string-table.h"
|
#include "string-table.h"
|
||||||
|
|
||||||
#define TRANSACTIONS_MAX 4096
|
#define TRANSACTIONS_MAX 4096
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if !ENABLE_DNS_OVER_TLS
|
#if ENABLE_DNS_OVER_TLS
|
||||||
#error This source file requires DNS-over-TLS to be enabled
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct DnsTlsManagerData DnsTlsManagerData;
|
typedef struct DnsTlsManagerData DnsTlsManagerData;
|
||||||
typedef struct DnsTlsServerData DnsTlsServerData;
|
typedef struct DnsTlsServerData DnsTlsServerData;
|
||||||
|
@ -19,6 +17,7 @@ typedef struct DnsTlsStreamData DnsTlsStreamData;
|
||||||
|
|
||||||
#include "resolved-dns-stream.h"
|
#include "resolved-dns-stream.h"
|
||||||
#include "resolved-dns-transaction.h"
|
#include "resolved-dns-transaction.h"
|
||||||
|
#include "resolved-manager.h"
|
||||||
|
|
||||||
#define DNSTLS_STREAM_CLOSED 1
|
#define DNSTLS_STREAM_CLOSED 1
|
||||||
|
|
||||||
|
@ -33,3 +32,5 @@ void dnstls_server_free(DnsServer *server);
|
||||||
|
|
||||||
int dnstls_manager_init(Manager *manager);
|
int dnstls_manager_init(Manager *manager);
|
||||||
void dnstls_manager_free(Manager *manager);
|
void dnstls_manager_free(Manager *manager);
|
||||||
|
|
||||||
|
#endif /* ENABLE_DNS_OVER_TLS */
|
||||||
|
|
Loading…
Reference in a new issue