Hello,
I was wondering what is the purpose of wrappers like this one:
/*! * \brief Small wrapper around MD5Update * * Small wrapper around MD5Update, because everybody uses this on 'str' types * \param context MD5 context * \param input input block * \param inputLen length of input block * \note please not use this in new code * \todo review and fix all wrong usage */ static inline void MD5Update (MD5_CTX *context, char *input, unsigned int inputLen) { return U_MD5Update(context, (unsigned char *)input, inputLen); }
And this is U_MD5Update:
void U_MD5Update (MD5_CTX *context, unsigned char *input, unsigned int inputLen)
Jan.
On Wednesday 25 February 2009, Jan Janak wrote:
I was wondering what is the purpose of wrappers like this one:
static inline void MD5Update (MD5_CTX *context, char *input, unsigned int [..]
Hi Jan,
it is a warning fix, because most people uses this on char* (from str type), and the function is defined with unsigned char*. The time is fixed this i don't want to add casts to every caller of this function.
In SER/ sip-router the md5 functions still uses this "PROTO_LIST" #define, which somehow mask this warning.
Cheers,
Henning