Asterisk - The Open Source Telephony Project GIT-master-1f1c5bb
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;
49};
50
51/*!
52 * \brief Load the stir/shaken verification service
53 *
54 * \retval 0 on success
55 * \retval -1 on error
56 */
57int vs_load(void);
58
59/*!
60 * \brief Reload the stir/shaken verification service
61 *
62 * \retval 0 on success
63 * \retval -1 on error
64 */
65int vs_reload(void);
66
67/*!
68 * \brief Unload the stir/shaken verification service
69 *
70 * \retval 0 on success
71 * \retval -1 on error
72 */
73int vs_unload(void);
74
75#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
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:48
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.