diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-30 06:07:05 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-30 06:07:05 +0000 |
commit | f0b67955ad12c9c7ec6a8c54ef5d118681cb701f (patch) | |
tree | a21da80923e6c53cac704e87655faeaeaf5d77a1 /funcs/func_md5.c | |
parent | df81c56d1365a5d81d8c46aa4235ae7737d2dcc1 (diff) |
Bug 6378 - deprecate CHECK_MD5 function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8883 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_md5.c')
-rw-r--r-- | funcs/func_md5.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/funcs/func_md5.c b/funcs/func_md5.c index 467799d0c..996521bf7 100644 --- a/funcs/func_md5.c +++ b/funcs/func_md5.c @@ -57,6 +57,7 @@ static char *builtin_function_checkmd5(struct ast_channel *chan, char *cmd, char { char newmd5[33]; char *parse; + static int deprecated = 0; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(digest); AST_APP_ARG(data); @@ -77,6 +78,11 @@ static char *builtin_function_checkmd5(struct ast_channel *chan, char *cmd, char return NULL; } + if (!deprecated) { + deprecated = 1; + ast_log(LOG_WARNING, "CHECK_MD5() is deprecated in Asterisk 1.4 and later.\n"); + } + ast_md5_hash(newmd5, args.data); if (!strcasecmp(newmd5, args.digest) ) /* they match */ |