SHA1 digest related dialplan functions.
More...
Go to the source code of this file.
SHA1 digest related dialplan functions.
- Author
- Claude Patry cpatr.nosp@m.y@gm.nosp@m.ail.c.nosp@m.om
Definition in file func_sha1.c.
◆ __reg_module()
| static void __reg_module |
( |
void |
| ) |
|
|
static |
◆ __unreg_module()
| static void __unreg_module |
( |
void |
| ) |
|
|
static |
◆ AST_MODULE_SELF_SYM()
◆ load_module()
| static int load_module |
( |
void |
| ) |
|
|
static |
◆ sha1()
| static int sha1 |
( |
struct ast_channel * |
chan, |
|
|
const char * |
cmd, |
|
|
char * |
data, |
|
|
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
|
static |
Definition at line 60 of file func_sha1.c.
62{
64
67 return -1;
68 }
69
72 else {
74 "Insufficient space to produce SHA1 hash result (%d < 41)\n",
76 }
77
78 return 0;
79}
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
static force_inline int attribute_pure ast_strlen_zero(const char *s)
void ast_sha1_hash(char *output, const char *input)
Produces SHA1 hash based on input string.
References ast_log, ast_sha1_hash(), ast_strlen_zero(), buf, len(), LOG_ERROR, and LOG_WARNING.
◆ unload_module()
| static int unload_module |
( |
void |
| ) |
|
|
static |
◆ __mod_info
◆ ast_module_info
◆ sha1_function
Initial value:= {
.name = "SHA1",
.read_max = 42,
}
static int sha1(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
Definition at line 81 of file func_sha1.c.
81 {
82 .name = "SHA1",
84 .read_max = 42,
85};
Referenced by load_module(), and unload_module().