57 static int sha1(
struct ast_channel *chan,
const char *cmd,
char *data,
58 char *buf,
size_t len)
62 if (ast_strlen_zero(data)) {
63 ast_log(LOG_WARNING,
"Syntax: SHA1(<data>) - missing argument!\n");
71 "Insufficient space to produce SHA1 hash result (%d < 41)\n",
84 static int unload_module(
void)
89 static int load_module(
void)
94 AST_MODULE_INFO_STANDARD(
ASTERISK_GPL_KEY,
"SHA-1 computation dialplan function");
Main Channel structure associated with a channel.
Asterisk main include file. File version handling, generic pbx functions.
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.
Data structure associated with a custom dialplan function.
Core PBX routines and definitions.
void ast_sha1_hash(char *output, const char *input)
Produces SHA1 hash based on input string.
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
#define ast_custom_function_register(acf)
Register a custom function.