endif
SUBDIRS = tools intl m4 po \
- lib-lua lib-mime lib-lib lib-mx lib-hash lib-sys lib-ui \
+ lib-lua lib-mime lib-lib lib-mx lib-sys lib-ui \
pop imap $(NNTP_SUBDIR)
BUILT_SOURCES = keymap_defs.h charset.gperf
handler.c headers.c help.c hook.c main.c muttlib.c mutt_idna.c \
pager.c pattern.c postpone.c recvattach.c recvcmd.c score.c send.c \
sendlib.c send_smtp.c sort.c state.c thread.c account.c remailer.c \
- mutt_sasl.c
+ mutt_sasl.c md5.c
madmutt_LDADD = $(top_builddir)/lib-mime/libmime.a \
$(top_builddir)/lib-mx/libmx.a \
$(top_builddir)/imap/libimap.a \
$(top_builddir)/pop/libpop.a \
$(LIBNNTP) \
- $(top_builddir)/lib-hash/libhash.a \
$(top_builddir)/lib-sys/libsys.a \
$(top_builddir)/lib-ui/libui.a \
$(top_builddir)/lib-lua/liblua.a \
madmutt_DEPENDENCIES = $(top_builddir)/lib-lib/liblib.a \
$(top_builddir)/lib-mime/libmime.a \
- $(top_builddir)/lib-hash/libhash.a \
$(top_builddir)/lib-sys/libsys.a \
$(top_builddir)/lib-ui/libui.a \
$(top_builddir)/lib-lua/liblua.a \
static void MD5Transform (uint32_t[4], unsigned char[64]);
static void Encode (unsigned char *, uint32_t *, unsigned int);
static void Decode (uint32_t *, unsigned char *, unsigned int);
-static void MD5_memcpy (POINTER, POINTER, unsigned int);
-static void MD5_memset (POINTER, int, unsigned int);
+static void MD5_memcpy (unsigned char *, unsigned char *, unsigned int);
+static void MD5_memset (unsigned char *, int, unsigned int);
static unsigned char PADDING[64] = {
0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* Transform as many times as possible.
*/
if (inputLen >= partLen) {
- MD5_memcpy ((POINTER) & context->buffer[index], (POINTER) input, partLen);
+ MD5_memcpy ((unsigned char *) & context->buffer[index], (unsigned char *) input, partLen);
MD5Transform (context->state, context->buffer);
for (i = partLen; i + 63 < inputLen; i += 64)
/* Buffer remaining input */
MD5_memcpy
- ((POINTER) & context->buffer[index], (POINTER) & input[i], inputLen - i);
+ ((unsigned char *) & context->buffer[index], (unsigned char *) & input[i], inputLen - i);
}
/* MD5 finalization. Ends an MD5 message-digest operation, writing the
/* Zeroize sensitive information.
*/
- MD5_memset ((POINTER) context, 0, sizeof (*context));
+ MD5_memset ((unsigned char *) context, 0, sizeof (*context));
}
/* MD5 basic transformation. Transforms state based on block.
state[3] += d;
/* Zeroize sensitive information. */
- MD5_memset ((POINTER) x, 0, sizeof (x));
+ MD5_memset ((unsigned char *) x, 0, sizeof (x));
}
/* Encodes input (uint32_t) into output (unsigned char). Assumes len is
*/
static void MD5_memcpy (output, input, len)
- POINTER output;
- POINTER input;
+ unsigned char * output;
+ unsigned char * input;
unsigned int len;
{
unsigned int i;
/* Note: Replace "for loop" with standard memset if possible.
*/
static void MD5_memset (output, value, len)
- POINTER output;
+ unsigned char * output;
int value;
unsigned int len;
{