Asterisk - The Open Source Telephony Project GIT-master-4522eb1
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
verification.h
Go to the documentation of this file.
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 VERIFICATION_H_
20#define VERIFICATION_H_
21
22#include "common_config.h"
23
39 );
45 unsigned char *raw_key;
46 char expiration[32];
47 X509 *xcert;
48 STACK_OF(X509) *cert_chain;
50};
51
52/*!
53 * \brief Load the stir/shaken verification service
54 *
55 * \retval 0 on success
56 * \retval -1 on error
57 */
58int vs_load(void);
59
60/*!
61 * \brief Reload the stir/shaken verification service
62 *
63 * \retval 0 on success
64 * \retval -1 on error
65 */
66int vs_reload(void);
67
68/*!
69 * \brief Unload the stir/shaken verification service
70 *
71 * \retval 0 on success
72 * \retval -1 on error
73 */
74int vs_unload(void);
75
76#endif /* VERIFICATION_H_ */
ast_stir_shaken_vs_response_code
#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
Main Channel structure associated with a channel.
const ast_string_field public_url
Definition: verification.h:39
const ast_string_field orig_tn
Definition: verification.h:39
const ast_string_field hash
Definition: verification.h:39
const ast_string_field hash_family
Definition: verification.h:39
unsigned char * raw_key
Definition: verification.h:45
const ast_string_field attestation
Definition: verification.h:39
const ast_string_field tag
Definition: verification.h:39
const ast_string_field date_hdr
Definition: verification.h:39
struct profile_cfg * eprofile
Definition: verification.h:40
const ast_string_field identity_hdr
Definition: verification.h:39
struct ast_channel * chan
Definition: verification.h:41
const ast_string_field filename
Definition: verification.h:39
const ast_string_field url_family
Definition: verification.h:39
const ast_string_field caller_id
Definition: verification.h:39
STACK_OF(X509) *cert_chain
const ast_string_field cert_cn
Definition: verification.h:39
const ast_string_field cert_spc
Definition: verification.h:39
enum ast_stir_shaken_vs_response_code failure_reason
Definition: verification.h:49
Profile configuration for stir/shaken.
int vs_reload(void)
Reload the stir/shaken verification service.
int vs_load(void)
Load the stir/shaken verification service.
int vs_unload(void)
Unload the stir/shaken verification service.