dns_tlsa.h

Go to the documentation of this file.
00001 /*
00002  * Asterisk -- An open source telephony toolkit.
00003  *
00004  * Copyright (C) 2015, Digium, Inc.
00005  *
00006  * Joshua Colp <jcolp@digium.com>
00007  *
00008  * See http://www.asterisk.org for more information about
00009  * the Asterisk project. Please do not directly contact
00010  * any of the maintainers of this project for assistance;
00011  * the project provides a web site, mailing lists and IRC
00012  * channels for your use.
00013  *
00014  * This program is free software, distributed under the terms of
00015  * the GNU General Public License Version 2. See the LICENSE file
00016  * at the top of the source tree.
00017  */
00018 
00019 /*! \file
00020  * \brief DNS TLSA Record Parsing API
00021  * \author Joshua Colp <jcolp@digium.com>
00022  */
00023 
00024 #ifndef _ASTERISK_DNS_TLSA_H
00025 #define _ASTERISK_DNS_TLSA_H
00026 
00027 #if defined(__cplusplus) || defined(c_plusplus)
00028 extern "C" {
00029 #endif
00030 
00031 /*!
00032  * \brief Get the certificate usage field from a TLSA record
00033  *
00034  * \param record The DNS record
00035  *
00036  * \return the certificate usage field
00037  */
00038 
00039 unsigned int ast_dns_tlsa_get_usage(const struct ast_dns_record *record);
00040 
00041 /*!
00042  * \brief Get the selector field from a TLSA record
00043  *
00044  * \param record The DNS record
00045  *
00046  * \return the selector field
00047  */
00048 unsigned int ast_dns_tlsa_get_selector(const struct ast_dns_record *record);
00049 
00050 /*!
00051  * \brief Get the matching type field from a TLSA record
00052  *
00053  * \param record The DNS record
00054  *
00055  * \return the matching type field
00056  */
00057 unsigned int ast_dns_tlsa_get_matching_type(const struct ast_dns_record *record);
00058 
00059 /*!
00060  * \brief Get the certificate association data from a TLSA record
00061  *
00062  * \param record The DNS record
00063  *
00064  * \return the certificate association data
00065  */
00066 const char *ast_dns_tlsa_get_association_data(const struct ast_dns_record *record);
00067 
00068 #if defined(__cplusplus) || defined(c_plusplus)
00069 }
00070 #endif
00071 
00072 #endif /* _ASTERISK_DNS_TLSA_H */

Generated on Thu Apr 16 06:27:33 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6