1 /*
2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, you can obtain one at https://mozilla.org/MPL/2.0/.
7  *
8  * See the COPYRIGHT file distributed with this work for additional
9  * information regarding copyright ownership.
10  */
11 
12 #pragma once
13 
14 /*! \file */
15 
16 #include <isc/lang.h>
17 #include <isc/types.h>
18 
19 #include <dns/transport.h>
20 
21 #include <isccfg/cfg.h>
22 
23 ISC_LANG_BEGINDECLS
24 
25 isc_result_t
26 named_transports_fromconfig(const cfg_obj_t *config, const cfg_obj_t *vconfig,
27 			    isc_mem_t *mctx, dns_transport_list_t **listp);
28 /*%<
29  * Create a list of transport objects (DoT or DoH) and configure them
30  * according to 'key-file', 'cert-file', 'ca-file' or 'hostname'
31  * statements.
32  *
33  *	Requires:
34  *	\li	'config' is not NULL.
35  *	\li	'vconfig' is not NULL.
36  *	\li	'mctx' is not NULL
37  *	\li	'listp' is not NULL, and '*listp' is NULL
38  *
39  */
40 
41 ISC_LANG_ENDDECLS
42