Commit 676afe5a 676afe5a53e238248013ed03c9fab503e1a7653e by Sergey Poznyakoff

Use md5.[ch]

1 parent becab5a2
......@@ -11,7 +11,7 @@ SUBDIRS = include testsuite
lib_LTLIBRARIES = libmailbox.la
EXTRA_DIST = mbx_mboxscan.c md5-rsa.h
EXTRA_DIST = mbx_mboxscan.c md5.h
libmailbox_la_SOURCES = \
address.c \
......@@ -43,7 +43,7 @@ mbx_imap.c \
mbx_mbox.c \
mbx_mh.c \
mbx_pop.c \
md5-rsa.c \
md5.c \
message.c \
memory_stream.c \
mime.c \
......
......@@ -38,7 +38,7 @@
# include <strings.h>
#endif
#include <md5-rsa.h>
#include <md5.h>
#include <mailutils/attribute.h>
#include <mailutils/auth.h>
......@@ -756,7 +756,7 @@ pop_get_message (mailbox_t mbox, size_t msgno, message_t *pmsg)
size_t i;
/* Sanity. */
if (pmsg == NULL || mpd == NULL)
if (pmsg == NULL || mpd == NULL || msgno > mpd->messages_count)
return EINVAL;
monitor_rdlock (mbox->monitor);
......
......@@ -30,7 +30,7 @@
#include <ctype.h>
#include <pwd.h>
#include "md5-rsa.h"
#include "md5.h"
#include <message0.h>
......