Asterisk - The Open Source Telephony Project  21.4.1
attestation.h
1 /*
2  * Asterisk -- An open source telephony toolkit.
3  *
4  * Copyright (C) 2023, Sangoma Technologies Corporation
5  *
6  * George Joseph <gjoseph@sangoma.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 #ifndef ATTESTATION_H_
20 #define ATTESTATION_H_
21 
22 #include "common_config.h"
23 
26  AST_STRING_FIELD(tag);
27  AST_STRING_FIELD(orig_tn);
28  AST_STRING_FIELD(dest_tn);
29  );
30  struct ast_channel *chan;
31  struct ast_vector_string fingerprints;
32  struct tn_cfg *etn;
33 };
34 
35 /*!
36  * \brief Load the stir/shaken attestation service
37  *
38  * \retval 0 on success
39  * \retval -1 on error
40  */
41 int as_load(void);
42 
43 /*!
44  * \brief Load the stir/shaken attestation service
45  *
46  * \retval 0 on success
47  * \retval -1 on error
48  */
49 int as_reload(void);
50 
51 /*!
52  * \brief Load the stir/shaken attestation service
53  *
54  * \retval 0 on success
55  * \retval -1 on error
56  */
57 int as_unload(void);
58 
59 #endif /* ATTESTATION_H_ */
Main Channel structure associated with a channel.
TN configuration for stir/shaken.
#define AST_DECLARE_STRING_FIELDS(field_list)
Declare the fields needed in a structure.
Definition: stringfields.h:341
#define AST_STRING_FIELD(name)
Declare a string field.
Definition: stringfields.h:303
String vector definitions.
Definition: vector.h:55