Asterisk - The Open Source Telephony Project GIT-master-f36a736
dns_tlsa.h
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 <jcolp@digium.com>
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 * \brief DNS TLSA Record Parsing API
21 * \author Joshua Colp <jcolp@digium.com>
22 */
23
24#ifndef _ASTERISK_DNS_TLSA_H
25#define _ASTERISK_DNS_TLSA_H
26
27#if defined(__cplusplus) || defined(c_plusplus)
28extern "C" {
29#endif
30
31/*!
32 * \brief Get the certificate usage field from a TLSA record
33 *
34 * \param record The DNS record
35 *
36 * \return the certificate usage field
37 */
38
39unsigned int ast_dns_tlsa_get_usage(const struct ast_dns_record *record);
40
41/*!
42 * \brief Get the selector field from a TLSA record
43 *
44 * \param record The DNS record
45 *
46 * \return the selector field
47 */
48unsigned int ast_dns_tlsa_get_selector(const struct ast_dns_record *record);
49
50/*!
51 * \brief Get the matching type field from a TLSA record
52 *
53 * \param record The DNS record
54 *
55 * \return the matching type field
56 */
57unsigned int ast_dns_tlsa_get_matching_type(const struct ast_dns_record *record);
58
59/*!
60 * \brief Get the certificate association data from a TLSA record
61 *
62 * \param record The DNS record
63 *
64 * \return the certificate association data
65 */
66const char *ast_dns_tlsa_get_association_data(const struct ast_dns_record *record);
67
68#if defined(__cplusplus) || defined(c_plusplus)
69}
70#endif
71
72#endif /* _ASTERISK_DNS_TLSA_H */
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
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
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
For AST_LIST.
Definition: dns_internal.h:39