[Kamailio-Devel] md5 wrappers

Jan Janak jan at iptel.org
Wed Feb 25 07:43:49 CET 2009


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.



More information about the Devel mailing list