Module: sip-router
Branch: master
Commit: 12a262d29bc428de8c432f6356acd59dae96d3e3
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=12a262d…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Tue Mar 10 23:46:05 2009 +0100
Kamailio compatibility: Rename MDStringArray to MD5StringArray
---
md5utils.c | 2 +-
md5utils.h | 2 +-
parser/msg_parser.h | 4 ++--
tags.h | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/md5utils.c b/md5utils.c
index 3718725..926da74 100644
--- a/md5utils.c
+++ b/md5utils.c
@@ -45,7 +45,7 @@ jku: added support to deal with vectors
/* Digests a string array and store the result in dst; assumes
32 bytes in dst
*/
-void MDStringArray (char *dst, str src[], int size)
+void MD5StringArray (char *dst, str src[], int size)
{
MD_CTX context;
unsigned char digest[16];
diff --git a/md5utils.h b/md5utils.h
index 142b17d..007dbbb 100644
--- a/md5utils.h
+++ b/md5utils.h
@@ -34,6 +34,6 @@
#define MD5_LEN 32
-void MDStringArray (char *dst, str src[], int size);
+void MD5StringArray (char *dst, str src[], int size);
#endif /* _MD5UTILS_H */
diff --git a/parser/msg_parser.h b/parser/msg_parser.h
index 636b10e..821f3a5 100644
--- a/parser/msg_parser.h
+++ b/parser/msg_parser.h
@@ -367,9 +367,9 @@ inline static int char_msg_val( struct sip_msg *msg, char *cv )
src[6]= msg->via1->port_str;
if (msg->via1->branch) {
src[7]= msg->via1->branch->value;
- MDStringArray ( cv, src, 8 );
+ MD5StringArray ( cv, src, 8 );
} else {
- MDStringArray( cv, src, 7 );
+ MD5StringArray( cv, src, 7 );
}
return 1;
}
diff --git a/tags.h b/tags.h
index ca0d1cb..72673a1 100644
--- a/tags.h
+++ b/tags.h
@@ -83,7 +83,7 @@ static void inline init_tags( char *tag, char **suffix,
src[2].s=si?si->port_no_str.s:"";
src[2].len=si?si->port_no_str.len:0;
- MDStringArray( tag, src, 3 );
+ MD5StringArray( tag, src, 3 );
tag[MD5_LEN]=separator;
*suffix=tag+MD5_LEN+1;