Asterisk - The Open Source Telephony Project  18.5.0
dns_tlsa.c
Go to the documentation of this file.
1 /*
2  * Asterisk -- An open source telephony toolkit.
3  *
4  * Copyright (C) 2015, Digium, Inc.
5  *
6  * Joshua Colp <[email protected]>
7  *
8  * See http://www.asterisk.org for more information about
9  * the Asterisk project. Please do not directly contact
10  * any of the maintainers of this project for assistance;
11  * the project provides a web site, mailing lists and IRC
12  * channels for your use.
13  *
14  * This program is free software, distributed under the terms of
15  * the GNU General Public License Version 2. See the LICENSE file
16  * at the top of the source tree.
17  */
18 
19 /*! \file
20  *
21  * \brief DNS TLSA Record Support
22  *
23  * \author Joshua Colp <[email protected]>
24  */
25 
26 /*** MODULEINFO
27  <support_level>core</support_level>
28  ***/
29 
30 #include "asterisk.h"
31 
32 #include "asterisk/dns_core.h"
33 #include "asterisk/dns_tlsa.h"
34 
35 unsigned int ast_dns_tlsa_get_usage(const struct ast_dns_record *record)
36 {
37  return 0;
38 }
39 
40 unsigned int ast_dns_tlsa_get_selector(const struct ast_dns_record *record)
41 {
42  return 0;
43 }
44 
45 unsigned int ast_dns_tlsa_get_matching_type(const struct ast_dns_record *record)
46 {
47  return 0;
48 }
49 
50 const char *ast_dns_tlsa_get_association_data(const struct ast_dns_record *record)
51 {
52  return NULL;
53 }
unsigned int ast_dns_tlsa_get_matching_type(const struct ast_dns_record *record)
Get the matching type field from a TLSA record.
Definition: dns_tlsa.c:45
unsigned int ast_dns_tlsa_get_usage(const struct ast_dns_record *record)
Get the certificate usage field from a TLSA record.
Definition: dns_tlsa.c:35
Asterisk main include file. File version handling, generic pbx functions.
For AST_LIST.
Definition: dns_internal.h:39
#define NULL
Definition: resample.c:96
DNS TLSA Record Parsing API.
const char * ast_dns_tlsa_get_association_data(const struct ast_dns_record *record)
Get the certificate association data from a TLSA record.
Definition: dns_tlsa.c:50
unsigned int ast_dns_tlsa_get_selector(const struct ast_dns_record *record)
Get the selector field from a TLSA record.
Definition: dns_tlsa.c:40
Core DNS API.