[asterisk-commits] branch junky/check_md5 r8875 -
/team/junky/check_md5/funcs/func_md5.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Jan 31 14:20:34 MST 2006
Author: junky
Date: Sun Jan 29 18:24:35 2006
New Revision: 8875
URL: http://svn.digium.com/view/asterisk?rev=8875&view=rev
Log:
added the deprecated stuff for CHECK_MD5()
Modified:
team/junky/check_md5/funcs/func_md5.c
Modified: team/junky/check_md5/funcs/func_md5.c
URL: http://svn.digium.com/view/asterisk/team/junky/check_md5/funcs/func_md5.c?rev=8875&r1=8874&r2=8875&view=diff
==============================================================================
--- team/junky/check_md5/funcs/func_md5.c (original)
+++ team/junky/check_md5/funcs/func_md5.c Sun Jan 29 18:24:35 2006
@@ -57,6 +57,7 @@
{
char newmd5[33];
char *parse;
+ static int deprecated = 0;
AST_DECLARE_APP_ARGS(args,
AST_APP_ARG(digest);
AST_APP_ARG(data);
@@ -76,6 +77,12 @@
ast_log(LOG_WARNING, "Syntax: CHECK_MD5(<digest>,<data>) - missing argument!\n");
return NULL;
}
+
+ if (!deprecated) {
+ deprecated = 1;
+ ast_log(LOG_WARNING, "CHECK_MD5() is deprecated in Asterisk 1.4 or later.\n");
+ }
+
ast_md5_hash(newmd5, args.data);
More information about the asterisk-commits
mailing list