19#ifndef ARI_INTERNAL_H_
20#define ARI_INTERNAL_H_
62#define ARI_AUTH_REALM_LEN 256
93#define ARI_PASSWORD_LEN 256
Support for Private Asterisk HTTP Servers.
struct ast_ari_conf * ast_ari_config_get(void)
Get the current ARI configuration.
int ast_ari_config_reload(void)
Reload the ARI configuration.
#define ARI_PASSWORD_LEN
User's password mx length.
int ast_ari_cli_register(void)
Register CLI commands for ARI.
int ast_ari_config_init(void)
Initialize the ARI configuration.
void ast_ari_cli_unregister(void)
Unregister CLI commands for ARI.
#define ARI_AUTH_REALM_LEN
struct ast_ari_conf_user * ast_ari_config_validate_user(const char *username, const char *password)
Validated a user's credentials.
void ast_ari_config_destroy(void)
Destroy the ARI configuration.
ast_ari_password_format
Password format.
@ ARI_PASSWORD_FORMAT_CRYPT
@ ARI_PASSWORD_FORMAT_PLAIN
Plaintext password.
Asterisk JSON abstraction layer.
ast_json_encoding_format
Encoding format type.
#define AST_DECLARE_STRING_FIELDS(field_list)
Declare the fields needed in a structure.
#define AST_STRING_FIELD(name)
Declare a string field.
Global configuration options for ARI.
char auth_realm[ARI_AUTH_REALM_LEN]
const ast_string_field allowed_origins
enum ast_json_encoding_format format
Per-user configuration options.
char password[ARI_PASSWORD_LEN]
enum ast_ari_password_format password_format
All configuration options for ARI.
struct ao2_container * users
struct ast_ari_conf_general * general