Commit 676afe5a 676afe5a53e238248013ed03c9fab503e1a7653e by Sergey Poznyakoff

Use md5.[ch]

1 parent becab5a2
...@@ -11,7 +11,7 @@ SUBDIRS = include testsuite ...@@ -11,7 +11,7 @@ SUBDIRS = include testsuite
11 11
12 lib_LTLIBRARIES = libmailbox.la 12 lib_LTLIBRARIES = libmailbox.la
13 13
14 EXTRA_DIST = mbx_mboxscan.c md5-rsa.h 14 EXTRA_DIST = mbx_mboxscan.c md5.h
15 15
16 libmailbox_la_SOURCES = \ 16 libmailbox_la_SOURCES = \
17 address.c \ 17 address.c \
...@@ -43,7 +43,7 @@ mbx_imap.c \ ...@@ -43,7 +43,7 @@ mbx_imap.c \
43 mbx_mbox.c \ 43 mbx_mbox.c \
44 mbx_mh.c \ 44 mbx_mh.c \
45 mbx_pop.c \ 45 mbx_pop.c \
46 md5-rsa.c \ 46 md5.c \
47 message.c \ 47 message.c \
48 memory_stream.c \ 48 memory_stream.c \
49 mime.c \ 49 mime.c \
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
38 # include <strings.h> 38 # include <strings.h>
39 #endif 39 #endif
40 40
41 #include <md5-rsa.h> 41 #include <md5.h>
42 42
43 #include <mailutils/attribute.h> 43 #include <mailutils/attribute.h>
44 #include <mailutils/auth.h> 44 #include <mailutils/auth.h>
...@@ -756,7 +756,7 @@ pop_get_message (mailbox_t mbox, size_t msgno, message_t *pmsg) ...@@ -756,7 +756,7 @@ pop_get_message (mailbox_t mbox, size_t msgno, message_t *pmsg)
756 size_t i; 756 size_t i;
757 757
758 /* Sanity. */ 758 /* Sanity. */
759 if (pmsg == NULL || mpd == NULL) 759 if (pmsg == NULL || mpd == NULL || msgno > mpd->messages_count)
760 return EINVAL; 760 return EINVAL;
761 761
762 monitor_rdlock (mbox->monitor); 762 monitor_rdlock (mbox->monitor);
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
30 #include <ctype.h> 30 #include <ctype.h>
31 #include <pwd.h> 31 #include <pwd.h>
32 32
33 #include "md5-rsa.h" 33 #include "md5.h"
34 34
35 #include <message0.h> 35 #include <message0.h>
36 36
......