forked from Imagelibrary/rtems
libmd: Change MD5Update() prototype
This is in line with the FreeBSD and OpenSSL prototypes. It helps to avoid superfluous compiler warnings.
This commit is contained in:
@@ -125,12 +125,15 @@ void MD5Init (
|
||||
*/
|
||||
void MD5Update (
|
||||
MD5_CTX *mdContext,
|
||||
const unsigned char *inBuf,
|
||||
const void *inBufArg,
|
||||
unsigned int inLen )
|
||||
{
|
||||
UINT4 in[16];
|
||||
int mdi;
|
||||
unsigned int i, ii;
|
||||
const unsigned char *inBuf;
|
||||
|
||||
inBuf = inBufArg;
|
||||
|
||||
/* compute number of bytes mod 64 */
|
||||
mdi = (int)((mdContext->i[0] >> 3) & 0x3F);
|
||||
|
||||
@@ -60,7 +60,7 @@ typedef struct {
|
||||
} MD5_CTX;
|
||||
|
||||
void MD5Init (MD5_CTX *);
|
||||
void MD5Update (MD5_CTX *, const unsigned char *, unsigned int);
|
||||
void MD5Update (MD5_CTX *, const void *, unsigned int);
|
||||
void MD5Final (unsigned char [16], MD5_CTX *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user