Browse code

Kamailio compatibility: Rename MDStringArray to MD5StringArray

Jan Janak authored on 10/03/2009 22:46:05
Showing 4 changed files
... ...
@@ -45,7 +45,7 @@ jku: added support to deal with vectors
45 45
 /* Digests a string array and store the result in dst; assumes
46 46
   32 bytes in dst
47 47
  */
48
-void MDStringArray (char *dst, str src[], int size)
48
+void MD5StringArray (char *dst, str src[], int size)
49 49
 {
50 50
 	MD_CTX context;
51 51
 	unsigned char digest[16];
... ...
@@ -34,6 +34,6 @@
34 34
 
35 35
 #define MD5_LEN	32
36 36
 
37
-void MDStringArray (char *dst, str src[], int size);
37
+void MD5StringArray (char *dst, str src[], int size);
38 38
 
39 39
 #endif /* _MD5UTILS_H */
... ...
@@ -367,9 +367,9 @@ inline static int char_msg_val( struct sip_msg *msg, char *cv )
367 367
 	src[6]= msg->via1->port_str;
368 368
 	if (msg->via1->branch) {
369 369
 		src[7]= msg->via1->branch->value;
370
-		MDStringArray ( cv, src, 8 );
370
+		MD5StringArray ( cv, src, 8 );
371 371
 	} else {
372
-		MDStringArray( cv, src, 7 );
372
+		MD5StringArray( cv, src, 7 );
373 373
 	}
374 374
 	return 1;
375 375
 }
... ...
@@ -83,7 +83,7 @@ static void inline init_tags( char *tag, char **suffix,
83 83
 	src[2].s=si?si->port_no_str.s:"";
84 84
 	src[2].len=si?si->port_no_str.len:0;
85 85
 
86
-	MDStringArray( tag, src, 3 );
86
+	MD5StringArray( tag, src, 3 );
87 87
 
88 88
 	tag[MD5_LEN]=separator;
89 89
 	*suffix=tag+MD5_LEN+1;