From: <arc...@us...> - 2013-02-15 00:44:50
|
Revision: 639 http://sourceforge.net/p/sipp/code/639 Author: arcady-91 Date: 2013-02-15 00:44:47 +0000 (Fri, 15 Feb 2013) Log Message: ----------- Making auth_body const to remove warning Modified Paths: -------------- sipp/trunk/auth.c sipp/trunk/call.cpp sipp/trunk/call.hpp Modified: sipp/trunk/auth.c =================================================================== --- sipp/trunk/auth.c 2013-02-15 00:44:40 UTC (rev 638) +++ sipp/trunk/auth.c 2013-02-15 00:44:47 UTC (rev 639) @@ -78,13 +78,13 @@ int createAuthHeaderMD5(char * user, char * password, int password_len, char * method, - char * uri, char * msgbody, char * auth, + char * uri, const char * msgbody, char * auth, char * algo, char * result); int createAuthHeaderAKAv1MD5(char * user, char * OP, char * AMF, char * K, char * method, - char * uri, char * msgbody, char * auth, char *algo, + char * uri, const char * msgbody, char * auth, char *algo, char * result); @@ -140,7 +140,7 @@ } int createAuthHeader(char * user, char * password, char * method, - char * uri, char * msgbody, char * auth, + char * uri, const char * msgbody, char * auth, char * aka_OP, char * aka_AMF, char * aka_K, @@ -213,7 +213,7 @@ } int createAuthHeaderMD5(char * user, char * password, int password_len, char * method, - char * uri, char * msgbody, char * auth, + char * uri, const char * msgbody, char * auth, char * algo, char * result) { md5_byte_t ha1[MD5_HASH_SIZE], ha2[MD5_HASH_SIZE]; @@ -528,7 +528,7 @@ char * aka_AMF, char * aka_K, char * method, - char * uri, char * msgbody, char * auth, char *algo, + char * uri, const char * msgbody, char * auth, char *algo, char * result) { char tmp[MAX_HEADER_LEN]; Modified: sipp/trunk/call.cpp =================================================================== --- sipp/trunk/call.cpp 2013-02-15 00:44:40 UTC (rev 638) +++ sipp/trunk/call.cpp 2013-02-15 00:44:47 UTC (rev 639) @@ -2439,7 +2439,7 @@ } /* Need the body for length and auth-int calculation */ char *body; - char *auth_body = NULL; + const char *auth_body = NULL; if (length_marker || auth_marker) { body = strstr(msg_buffer, "\r\n\r\n"); if (body) { Modified: sipp/trunk/call.hpp =================================================================== --- sipp/trunk/call.hpp 2013-02-15 00:44:40 UTC (rev 638) +++ sipp/trunk/call.hpp 2013-02-15 00:44:47 UTC (rev 639) @@ -52,9 +52,9 @@ #define RTCHECK_LOOSE 2 #ifdef __HPUX - extern int createAuthHeader(char * user, char * password, char * method, char * uri, char * msgbody, char * auth, char * aka_OP, char * aka_AMF, char * aka_K, char * result); + extern int createAuthHeader(char * user, char * password, char * method, char * uri, const char * msgbody, char * auth, char * aka_OP, char * aka_AMF, char * aka_K, char * result); #else - extern "C" { extern int createAuthHeader(char * user, char * password, char * method, char * uri, char * msgbody, char * auth, char * aka_OP, char * aka_AMF, char * aka_K, char * result); } + extern "C" { extern int createAuthHeader(char * user, char * password, char * method, char * uri, const char * msgbody, char * auth, char * aka_OP, char * aka_AMF, char * aka_K, char * result); } extern "C" { int verifyAuthHeader(char * user, char * password, char * method, char * auth); } #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |